dexter_ex_2ks
Member level 1
inout verilog testbench
Hello, a have a problem in Verilog.
I must do a testbench of a Asynchronous read write RAM.
The file is located at https://www.asic-world.com/examples....html#Single_Port_RAM_Asynchronous_Read/Write ,it's a tutorial.
Well my problem is : bit_vector data is inout,and my question is in the testbench how do I declare data (if i declare reg [DATA_WIDTH-1:0] data,I can't read/write data in the simulation,I know it is bi-directional,but I don't know how to declare it the testbench).I set we = 1, cs = 1 for writing ,and we = 0, oe = 1, cs = 1 , and I had changed the address and data (and the clock is ticking) but the data will not change.
So if I don't bother you,could you help me with the testbench,(I have no ideea how to work with bi-directional ports).
Thank you very much,and have a nice day.
Hello, a have a problem in Verilog.
I must do a testbench of a Asynchronous read write RAM.
The file is located at https://www.asic-world.com/examples....html#Single_Port_RAM_Asynchronous_Read/Write ,it's a tutorial.
Well my problem is : bit_vector data is inout,and my question is in the testbench how do I declare data (if i declare reg [DATA_WIDTH-1:0] data,I can't read/write data in the simulation,I know it is bi-directional,but I don't know how to declare it the testbench).I set we = 1, cs = 1 for writing ,and we = 0, oe = 1, cs = 1 , and I had changed the address and data (and the clock is ticking) but the data will not change.
So if I don't bother you,could you help me with the testbench,(I have no ideea how to work with bi-directional ports).
Thank you very much,and have a nice day.