简体   繁体   中英

how to write test bench for slave module in which it assign input values from master module?

I have written two Verilog modules so called master.v and slave.v in which master.v module provides output values and slave module is going to use these master's output values. Can you please advise me on how to write testbench for assigning Slave's input as master's output values?

Take instance of Master.v and Slave.v in Testbench.v and connect respective wires(signals) and then drive necessary inputs like reset and clock to both master and slave instance if any. See below basic diagram.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM