cafukarfoo
Full Member level 3
Help needed in Modelsim
Hi Sir/Madam,
I am using the modelsim example to run the modelsim.
I double click the test_counter file from the "library" tab. Within the "sim" tab, the counter_kf is not instantiated. That mean within the test_counter sim, it cannot see the "counter_kf" module. So this not allow me to simulate the "counter_kf" module.
Do you know why this happen? Thanks.
module test_counter;
reg clk, rst;
wire [7:0] count;
counter_kf dut(count,clk,rst);
initial // Clock generator
begin
clk = 0;
#10 forever #10 clk = !clk;
end
initial // Test stimulus
begin
rst = 0;
#5 rst = 1;
#4 rst = 0;
#50000 $stop;
end
initial
$monitor($stime,, rst,, clk,,, count);
endmodule
Regards,
Chong kar foo
Hi Sir/Madam,
I am using the modelsim example to run the modelsim.
I double click the test_counter file from the "library" tab. Within the "sim" tab, the counter_kf is not instantiated. That mean within the test_counter sim, it cannot see the "counter_kf" module. So this not allow me to simulate the "counter_kf" module.
Do you know why this happen? Thanks.
module test_counter;
reg clk, rst;
wire [7:0] count;
counter_kf dut(count,clk,rst);
initial // Clock generator
begin
clk = 0;
#10 forever #10 clk = !clk;
end
initial // Test stimulus
begin
rst = 0;
#5 rst = 1;
#4 rst = 0;
#50000 $stop;
end
initial
$monitor($stime,, rst,, clk,,, count);
endmodule
Regards,
Chong kar foo