cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
280 Views
Registered: ‎12-17-2019

Bi-directional Data_Bus

inout [23:0] data_bus;

assign data_bus=(!ms0)?((addr_bus==24'h000063)?data_reg_4:data_bus):24'bzzzzzzzzzzzzzzzzzzzz;

If ms0==0 and addr_bus==24'h000063 ,data_reg will assign to data_bus,after this  ms0==0 and if I get a different address ,will data_bus overwrites old data or will it assign new data which comes on data_bus? 

0 Kudos
1 Reply
Highlighted
Xilinx Employee
Xilinx Employee
153 Views
Registered: ‎05-14-2008

I would suggest you run a simulation to get the answer.

-vivian

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------