From c72ea15472680ea155d7be4520cba8640d074b50 Mon Sep 17 00:00:00 2001
From: YRabbit <rabbit@yrabbit.cyou>
Date: Thu, 7 Oct 2021 18:38:33 +1000
Subject: gowin: add support for wide LUTs.

  * A hardwired MUX within each logical cell is used.
  * The delay is equal 0.
  * No user placement constraints.
  * The output route contains dummy PIPs. They are ignored by gowin_pack, but it may be worth removing them.

Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
---
 gowin/constids.inc | 13 +++++++++++++
 1 file changed, 13 insertions(+)

(limited to 'gowin/constids.inc')

diff --git a/gowin/constids.inc b/gowin/constids.inc
index bf26e9ca..e2482e39 100644
--- a/gowin/constids.inc
+++ b/gowin/constids.inc
@@ -358,6 +358,16 @@ X(IOBH)
 X(IOBI)
 X(IOBJ)
 
+// Wide LUTs
+X(MUX2_LUT5)
+X(MUX2_LUT6)
+X(MUX2_LUT7)
+X(MUX2_LUT8)
+X(GW_MUX2_LUT5)
+X(GW_MUX2_LUT6)
+X(GW_MUX2_LUT7)
+X(GW_MUX2_LUT8)
+
 // DFF types
 X(DFF)
 X(DFFE)
@@ -409,6 +419,9 @@ X(I1)
 X(I2)
 X(I3)
 X(OEN)
+X(S0)
+X(SEL)
+X(OF)
 
 // timing
 X(X0)
-- 
cgit v1.2.3