Commit 984a011d by Miodrag Milanovic

proper falsify

parent 41b5c224
...@@ -17,10 +17,10 @@ module tristate (en, i, io, o); ...@@ -17,10 +17,10 @@ module tristate (en, i, io, o);
assign o = (en)? io : 2'bZZ; assign o = (en)? io : 2'bZZ;
`else `else
always @(en or i) always @(en or i)
io_buf[0] <= (!en)? ~i : 1'bZ; io_buf[0] <= (en)? ~i : 1'bZ;
always @(en or i) always @(en or i)
io_buf[1] <= (!i)? ~en : 1'bZ; io_buf[1] <= (i)? ~en : 1'bZ;
assign o = (en)? ~io : 2'bZZ; assign o = (en)? ~io : 2'bZZ;
`endif `endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment