Merge pull request #415 from smunaut/fix_iob_oe_reg

ice40: Fix output register timing analysis for registered output enable
This commit is contained in:
David Shah 2020-03-29 09:53:06 +01:00 committed by GitHub
commit 3d3b222e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1037,7 +1037,7 @@ TimingPortClass Arch::getPortTimingClass(const CellInfo *cell, IdString port, in
} }
} }
if (port == id_OUTPUT_ENABLE) { if (port == id_OUTPUT_ENABLE) {
if ((cell->ioInfo.pintype & 0x18) == 0x18) { if ((cell->ioInfo.pintype & 0x30) == 0x30) {
return TMG_REGISTER_INPUT; return TMG_REGISTER_INPUT;
} else { } else {
return TMG_ENDPOINT; return TMG_ENDPOINT;