Merge pull request #1075 from cr1901/sb_io-pin_input

Set LatticeiCE40SDROutputImpl to `PIN_INPUT` mode.
This commit is contained in:
enjoy-digital 2021-10-22 09:05:26 +02:00 committed by GitHub
commit 14c39c0f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -446,7 +446,10 @@ class LatticeiCE40DDRInput:
class LatticeiCE40SDROutputImpl(Module):
def __init__(self, i, o, clk):
self.specials += Instance("SB_IO",
p_PIN_TYPE = C(0b010100, 6), # PIN_OUTPUT_REGISTERED
# i_INPUT_CLK must match between two SB_IOs in the same tile.
# In PIN_INPUT mode, this restriction is relaxed; an unconnected
# i_INPUT_CLK also works.
p_PIN_TYPE = C(0b010101, 6), # PIN_OUTPUT_REGISTERED + PIN_INPUT
p_IO_STANDARD = "SB_LVCMOS",
io_PACKAGE_PIN = o,
i_CLOCK_ENABLE = 1,