diff options
author | gatecat <gatecat@ds0.me> | 2021-10-22 16:08:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 16:08:35 +0100 |
commit | 80a14592a0c4632462c61d1bd46835f2159f5ae9 (patch) | |
tree | 9109b245081bb7c33bc96a4f5e121f4fefe1447b /gowin/cells.h | |
parent | 013f3e0b390e5aa594af92f1da973ed18777a155 (diff) | |
parent | e9f3946d584ed98660e7a6289181645a9249f19f (diff) | |
download | nextpnr-80a14592a0c4632462c61d1bd46835f2159f5ae9.tar.gz nextpnr-80a14592a0c4632462c61d1bd46835f2159f5ae9.tar.bz2 nextpnr-80a14592a0c4632462c61d1bd46835f2159f5ae9.zip |
Merge pull request #852 from yrabbit/pr-gowin-alu
gowin: Add ALU support.
Diffstat (limited to 'gowin/cells.h')
-rw-r--r-- | gowin/cells.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gowin/cells.h b/gowin/cells.h index cb1c7aba..8f0636b8 100644 --- a/gowin/cells.h +++ b/gowin/cells.h @@ -57,6 +57,8 @@ inline bool is_widelut(const BaseCtx *ctx, const CellInfo *cell) } } +inline bool is_alu(const BaseCtx *ctx, const CellInfo *cell) { return (cell->type.index == ID_ALU); } + // is MUX2_LUT5 inline bool is_mux2_lut5(const BaseCtx *ctx, const CellInfo *cell) { return (cell->type.index == ID_MUX2_LUT5); } |