diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-11-06 17:02:16 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-11-06 17:02:16 +0100 |
commit | 3ad742056ba46e5c0edeca827cdf0b4011090d61 (patch) | |
tree | 326b16186eb87e4535909157f701645aa84f2e8f /techlibs/ice40 | |
parent | f401eeb0cf43f8b0e9431a02b3dd0780dcbceb32 (diff) | |
download | yosys-3ad742056ba46e5c0edeca827cdf0b4011090d61.tar.gz yosys-3ad742056ba46e5c0edeca827cdf0b4011090d61.tar.bz2 yosys-3ad742056ba46e5c0edeca827cdf0b4011090d61.zip |
Fixed iCE40 SB_IO OUTPUT_ENABLE vs. outena_q handling
Diffstat (limited to 'techlibs/ice40')
-rw-r--r-- | techlibs/ice40/cells_sim.v | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/techlibs/ice40/cells_sim.v b/techlibs/ice40/cells_sim.v index 998ad3a1d..4d792c856 100644 --- a/techlibs/ice40/cells_sim.v +++ b/techlibs/ice40/cells_sim.v @@ -58,8 +58,8 @@ module SB_IO ( generate if (PIN_TYPE[5:4] == 2'b01) assign PACKAGE_PIN = dout; - if (PIN_TYPE[5:4] == 2'b10) assign PACKAGE_PIN = outena_q ? dout : 1'bz; - if (PIN_TYPE[5:4] == 2'b11) assign PACKAGE_PIN = OUTPUT_ENABLE ? dout : 1'bz; + if (PIN_TYPE[5:4] == 2'b10) assign PACKAGE_PIN = OUTPUT_ENABLE ? dout : 1'bz; + if (PIN_TYPE[5:4] == 2'b11) assign PACKAGE_PIN = outena_q ? dout : 1'bz; endgenerate `endif endmodule |