From: Clifford Wolf Date: Fri, 6 Nov 2015 16:02:16 +0000 (+0100) Subject: Fixed iCE40 SB_IO OUTPUT_ENABLE vs. outena_q handling X-Git-Tag: yosys-0.6~73 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ad742056ba46e5c0edeca827cdf0b4011090d61;p=yosys.git Fixed iCE40 SB_IO OUTPUT_ENABLE vs. outena_q handling --- 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