Verilog: 4 Bit Counter Behavioral Modelling using If Else Statement
Verilog Code for 4 Bit Counter Behavioral Modelling using If Else Statement
module 4_bit_Count(
input clock, reset,
output [3:0]dout
);reg [3:0]dout;initial dout = 0;
always @ (posedge (clock))beginif (reset)dout <= 0;elsedout <= dout + 1;end
endmodule
Xillinx Output:
4 Bit Counter Behavioral Modelling Response |
Also See:
How can I build a dog age calculator like this?
ReplyDeleteak47
ReplyDeletear 15
garand m1
m16
steyr aug
glock 17 gen 4
glock 17
glock 19
glock 19x