dff.v (176B)
1 module dff(d, clk, rst, q); 2 input d; 3 input clk; 4 input rst; 5 output reg q; 6 7 always @ (posedge clk or posedge rst) begin 8 if (rst) 9 q = 0; 10 else 11 q = d; 12 end 13 endmodule
![]() | uniUniversity stuff |
git clone git://git.margiolis.net/uni.git | |
Log | Files | Refs | README | LICENSE |