Elnegm
Member level 1
Hi
I'm abeginner with verilog and i use FPGA advantage and modelSim
when i want to simulate the following code output counte give me unknown
Is there is setting in ModelSim i have to set in order to simulate correctly?
I'm abeginner with verilog and i use FPGA advantage and modelSim
when i want to simulate the following code output counte give me unknown
Is there is setting in ModelSim i have to set in order to simulate correctly?
Code:
module firstseq (clk, reset, enable, count);
input clk, reset, enable;
output [3:0] count;
reg [3:0] count;
always @ (negedge clk)
if (reset == 1'b1)
count <= 0;
else if ( enable == 1'b1)
count <= count + 1;
endmodule