Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- yes. did not worked. --- Quote End --- Hi, removing the# 4 will solve the problem. Maybe you forgot to recompile the file ? You also have some naming problems between your model and the testbench. module test_addercs ; reg [1:0] ku,kd; wire [2:0] su,c; //addercs# 4 Report(.inu(ku), .ind(kd), .su(sum), .c(cy)); addercs report(.inu(ku), .ind(kd), .sum[/B](sum), .cy(cy));[/B]initial begin ku=0;kd=0;# 40 ; $monitor("%d = ns" , $time ,,,"inu=%d ind=%d sum=%d cy=%d" ,ku,kd,su,c); ku=2'b00;kd=2'b00;# 30 ; ku=2'b00;kd=2'b01;# 30 ; ku=2'b00;kd=2'b10;# 30 ; ku=2'b00;kd=2'b11;# 30 ; ku=2'b01;kd=2'b00;# 30 ; ku=2'b01;kd=2'b10;# 30 ; ku=2'b01;kd=2'b11;# 30 ; ku=2'b10;kd=2'b10;# 30 ; ku=2'b10;kd=2'b11;# 30 ; ku=2'b11;kd=2'b11; end endmodule Kind regards GPK