Fixed iCE40 SB_IO OUTPUT_ENABLE vs. outena_q handling

This commit is contained in:
Clifford Wolf 2015-11-06 17:02:16 +01:00
parent f401eeb0cf
commit 3ad742056b
1 changed files with 2 additions and 2 deletions

View File

@ -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