Exams/m2014 q4a

2023. 6. 18. 15:07FPGA/HDLBits

728x90

Problem Statement

Implement the following circuit:

Note that this is a latch, so a Quartus warning about having inferred a latch is expected.

module top_module (
    input d, 
    input ena,
    output q);
	
    assign q = (ena ? d : q);
endmodule

 


게이트형 D 래치 

게이트형 D 래치 회로도

ena는 D래치에서 enable단자의 역할을 한다.

  1. ena = 0이면 S=R=0으로 Q가 이전값을 유지하게 된다.
  2. ena = 1이면 q = d

 

'FPGA > HDLBits' 카테고리의 다른 글

Exams/m2014 q4d  (0) 2023.06.18
Exams/m2014 q4c  (0) 2023.06.18
Dff16e  (0) 2023.06.18
Bugs mux2  (0) 2023.06.15
Kmap4  (0) 2023.06.15