1. 문제 및 설명
- 하나의 D 플립플롭을 만드시

2. 모듈 정의
module top_module (
input clk, // Clocks are used in sequential circuits
input d,
output reg q );
3. 답
module top_module (
input clk, // Clocks are used in sequential circuits
input d,
output reg q );//
// Use a clocked always block
// copy d to q at every positive edge of clk
// Clocked always blocks should use non-blocking assignments
always@(posedge clk)
begin
q <= d;
end
endmodule
'Verilog > HDLbits' 카테고리의 다른 글
| [HDLBits] Dff8r (0) | 2025.12.20 |
|---|---|
| [HDLBits] Dff8 (0) | 2025.12.20 |
| [HDLBits] Exams/ece241 2014 q3 (0) | 2025.12.20 |
| [HDLBits] Exams/2012 q1g (0) | 2025.12.16 |
| [HDLBits] Exams/m2014 q3 (0) | 2025.12.16 |