![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FYRJYp%2FbtrliMB0Bwl%2F0k7uphOjKHrGAfoR6Anwc0%2Fimg.png)
Major Study/Digital Logic Circuit
[디지털 논리회로] Sequential Logic/upcount, downcount, updowncount 회로 설계 과정
기존 Combinational Logic과는 다르게 Sequential Logic은 메모리 요소를 더하였다는 특징이 있다. 이때의 메모리 요소가 D-FF이 사용되는 것이고, FlipFlop에는 CLock이 사용된다. 먼저 주어진 Upcount 코드에서 Testbench를 작성해보았다 module upcount(Resetn, Clock, E, Q); input Resetn, Clock, E; output reg[3:0] Q; always @(negedge Resetn or posedge Clock) // 여기에 왜 begin 없음? if(!Resetn) begin Q