ragulto516
Newbie level 2

Hi,
Would like to ask how to transfer a value of an output from DUT to test bench?
I have the following code:
But it does not work.
Would like to ask how to transfer a value of an output from DUT to test bench?
I have the following code:
Code Verilog - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 module my_mod(a, b); input a; output b; assign b = a; endmodule module my_mod_tst(); reg x; wire y; reg z; my_mod_tst mmt(x, y); initial begin x = 1; z = y; if (z == 1) display$("Value of z is %d", z); end endmodule
But it does not work.
Last edited by a moderator: