FPGA/HDLBits
Sim/circuit3
장영현
2023. 6. 20. 20:00
728x90
This is a combinational circuit. Read the simulation waveforms to determine what the circuit does, then implement it.
포트 | 35 ~ 40 | 40 ~ 45 | 45 ~ 50 | 55 ~ 60 | 60 ~ 65 | 65 ~ 70 | 75 ~ 80 | 80 ~ 90 |
a | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 |
b | 1 | 1 | 1 | 0 | 0 | 0 | ||
c | 0 | 1 | 1 | 0 | 1 | 1 | ||
d | 1 | 0 | 1 | 1 | 0 | 1 | ||
q | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
출력이 1인 상태와 0인 상태를 비교해보면 a와 b, c와 d가 or연산이 되고, 그 결과값끼리 and연산이 되는것을 확인할 수 있다.
module top_module (
input a,
input b,
input c,
input d,
output q );//
assign q = (a | b) & (c | d); // Fix me
endmodule