sujithchakra
Junior Member level 1
Hi,
I am writing a testbench for a bootup controller which controls a CPU and single port SRAM in verilog. The bootup controller first writes data into SRAM and then triggers Microcontroller to start reading data from SRAM. I have "address_boot" register in bootup controller which gives out the memory address of SRAM to write into and in CPU I have "address_cpu" register which generates memory addresses of SRAM to read from. My question is how do I instatiate these two registers with a single SRAM address register in a testbench? Can anyone please help?
Thanks,
Sujith Chakra
I am writing a testbench for a bootup controller which controls a CPU and single port SRAM in verilog. The bootup controller first writes data into SRAM and then triggers Microcontroller to start reading data from SRAM. I have "address_boot" register in bootup controller which gives out the memory address of SRAM to write into and in CPU I have "address_cpu" register which generates memory addresses of SRAM to read from. My question is how do I instatiate these two registers with a single SRAM address register in a testbench? Can anyone please help?
Thanks,
Sujith Chakra