Hi,
I have to latch a clock in the module top based on the tri-state logic.The reference model/dut has a bidirectional clock.
So, I have introduced a variable called tri-state in my bfm, which becomes “1” during write to dut (using clk_bfm) and which becomes “0” during read from the dut( I want the dut clk).My dut is smbus slave model.
Depending on the tristate , in my top module:
clk = tri_state?1’z:clk_bfm; //clk_bfm is generated in the bfm
I’m not sure how to proceed. Please help?