Altera_Forum
Honored Contributor
16 years agowhy the simulation result is differenct between fork join and begin end?
this is the testbench in an495.
why can not use begin ... end. initial begin arst <= 1'b0; // resetting the contoller initially # 250 arst <= 1'b1; iderst <= 1'b0; ideen <= 1'b1; pioiordyen <= 1'b1; piorqst <= 1'b1; pioaddr <= 4'b0111; piodatain <= 16'b1111111100000000; piowe <= 1'b1; # 600 piowe <= 1'b0; ddi <= 16'b0000000011111111; iordy <= 1'b1; intrq <= 1'b1; flag <= 1'b0; //if error occured in the test procedure,then asserted # 5000 $stop; end use the fork join,the result is right fork arst = 1'b0; // resetting the contoller initially # 250 arst = 1'b1; iderst = 1'b0; ideen = 1'b1; pioiordyen = 1'b1; piorqst = 1'b1; pioaddr = 4'b0111; piodatain = 16'b1111111100000000; piowe = 1'b1; # 600 piowe = 1'b0; ddi = 16'b0000000011111111; iordy = 1'b1; intrq = 1'b1; flag = 1'b0; //if error occured in the test procedure,then asserted # 5000 $stop; join