srinpraveen
Member level 2
Hi!
I have a perplexing problem and its very irritating. I tried simulating a simple counter in modelsim pe student edition 10.0a. Yesterday the simulation worked and I was able to see the waves in the modelsim wave window after adding the signals to the wave. But today morning after I rebooted my laptop and tried opening modelsim and repeating the same process, I am not able to see any waveform on the wave window.
Here is a checklist of the procedure I followed.
1) I started modelsim.
2) I added counter.v and counter_tb.v to a project.
3) I clicked "Start simulation" in the "Simulate menu"
4) The I clicked my testbench module name under the work directory.
5) Then I clicked on the "Objects" tab and selected all the signals, right clicked, wave, add to wave all the signals in the design.
6) Now when I move to wave tab and click run icon i don't see any of the green waveforms.
This procedure worked yesterday and is not working today. I have enclosed a screenshot of my wave window. Modelsim was installed only 3 weeks back and I don't think there is anything to do with licensing because I tried uninstalling modelsim, reinstalling and repeating the same process but again that was to no effect.
Here is my counter code.
module mod4_counter(clk, reset, start_count, count_value);
input clk, reset, start_count;
output wire [1:0] count_value;
reg [1:0] pre_count_value;
always @ (posedge clk or posedge reset)
begin
if (reset == 1'b1)
pre_count_value <= 2'b00;
else if (start_count == 1'b1)
pre_count_value <= pre_count_value + 1'b1;
else pre_count_value <= pre_count_value;
end
assign count_value = pre_count_value;
endmodule
Here is my counter testbench.
module testbench1;
reg clk, reset, start_count;
wire [1:0] count_value;
mod4_counter mod4_cnt(clk, reset, start_count, count_value);
initial
begin
clk = 0;
start_count = 1'b0;
#10 reset = 1'b1;
#10 reset = 1'b0;
#10 start_count = 1'b1;
#520 reset = 1'b1;
#50 reset = 1'b0;
end
always
begin
#50 clk = ~clk;
end
endmodule
As you can see in the screenshot, the signals have been added on the wave window and run icon clicked. Yet the waveforms do not turn up. Mind boggling indeed and very stressful as I have some deadlines to meet. PLS help.
I have a perplexing problem and its very irritating. I tried simulating a simple counter in modelsim pe student edition 10.0a. Yesterday the simulation worked and I was able to see the waves in the modelsim wave window after adding the signals to the wave. But today morning after I rebooted my laptop and tried opening modelsim and repeating the same process, I am not able to see any waveform on the wave window.
Here is a checklist of the procedure I followed.
1) I started modelsim.
2) I added counter.v and counter_tb.v to a project.
3) I clicked "Start simulation" in the "Simulate menu"
4) The I clicked my testbench module name under the work directory.
5) Then I clicked on the "Objects" tab and selected all the signals, right clicked, wave, add to wave all the signals in the design.
6) Now when I move to wave tab and click run icon i don't see any of the green waveforms.
This procedure worked yesterday and is not working today. I have enclosed a screenshot of my wave window. Modelsim was installed only 3 weeks back and I don't think there is anything to do with licensing because I tried uninstalling modelsim, reinstalling and repeating the same process but again that was to no effect.
Here is my counter code.
module mod4_counter(clk, reset, start_count, count_value);
input clk, reset, start_count;
output wire [1:0] count_value;
reg [1:0] pre_count_value;
always @ (posedge clk or posedge reset)
begin
if (reset == 1'b1)
pre_count_value <= 2'b00;
else if (start_count == 1'b1)
pre_count_value <= pre_count_value + 1'b1;
else pre_count_value <= pre_count_value;
end
assign count_value = pre_count_value;
endmodule
Here is my counter testbench.
module testbench1;
reg clk, reset, start_count;
wire [1:0] count_value;
mod4_counter mod4_cnt(clk, reset, start_count, count_value);
initial
begin
clk = 0;
start_count = 1'b0;
#10 reset = 1'b1;
#10 reset = 1'b0;
#10 start_count = 1'b1;
#520 reset = 1'b1;
#50 reset = 1'b0;
end
always
begin
#50 clk = ~clk;
end
endmodule
As you can see in the screenshot, the signals have been added on the wave window and run icon clicked. Yet the waveforms do not turn up. Mind boggling indeed and very stressful as I have some deadlines to meet. PLS help.