aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/cells.h
diff options
context:
space:
mode:
authorYRabbit <rabbit@yrabbit.cyou>2022-12-04 15:06:44 +1000
committerYRabbit <rabbit@yrabbit.cyou>2022-12-04 15:06:44 +1000
commit2e68962a025999ec85276f6362540c13ccfcd752 (patch)
treee1c0d9538a33bce405a5d14ca67baa6ccd1297b9 /gowin/cells.h
parentf07d9a18356ec8df74d9c42693f7b9307e390a7f (diff)
downloadnextpnr-2e68962a025999ec85276f6362540c13ccfcd752.tar.gz
nextpnr-2e68962a025999ec85276f6362540c13ccfcd752.tar.bz2
nextpnr-2e68962a025999ec85276f6362540c13ccfcd752.zip
gowin: add PLL pins processing
Uses the information of the special input pins for the PLL in the current chip. If such pins are involved, no routing is performed and information about the use of implicit wires is passed to the packer. The RESET and RESET_P inputs are now also disabled if they are connected to VSS/VCC. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Diffstat (limited to 'gowin/cells.h')
-rw-r--r--gowin/cells.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gowin/cells.h b/gowin/cells.h
index 227206c8..ae475b77 100644
--- a/gowin/cells.h
+++ b/gowin/cells.h
@@ -105,6 +105,8 @@ inline bool is_lc(const BaseCtx *ctx, const CellInfo *cell) { return cell->type
inline bool is_sram(const BaseCtx *ctx, const CellInfo *cell) { return cell->type == id_RAM16SDP4; }
+inline bool is_iob(const Context *ctx, const CellInfo *cell) { return (cell->type.index == ID_IOB); }
+
// Convert a LUT primitive to (part of) an GENERIC_SLICE, swapping ports
// as needed. Set no_dff if a DFF is not being used, so that the output
// can be reconnected