aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/chip.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-02 15:00:33 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-02 15:00:33 +0200
commit20d7cd019434a2a4213b5babc80b9c8c0e507211 (patch)
treea6253e9f19c03c4e3836f14998b4cef750bbbd5d /ice40/chip.h
parentd85f5d22859ce3b75b7caa0e3625f1a632ddb0ea (diff)
downloadnextpnr-20d7cd019434a2a4213b5babc80b9c8c0e507211.tar.gz
nextpnr-20d7cd019434a2a4213b5babc80b9c8c0e507211.tar.bz2
nextpnr-20d7cd019434a2a4213b5babc80b9c8c0e507211.zip
Add ice40 ICESTORM_LC bels
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/chip.h')
-rw-r--r--ice40/chip.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/ice40/chip.h b/ice40/chip.h
index 99fd5e25..a5fc7021 100644
--- a/ice40/chip.h
+++ b/ice40/chip.h
@@ -35,7 +35,7 @@ struct DelayInfo
enum BelType
{
TYPE_NIL,
- TYPE_A
+ TYPE_ICESTORM_LC
};
IdString belTypeToId(BelType type);
@@ -44,8 +44,17 @@ BelType belTypeFromId(IdString id);
enum PortPin
{
PIN_NIL,
- PIN_FOO = 1,
- PIN_BAR = 2
+ PIN_IN_0,
+ PIN_IN_1,
+ PIN_IN_2,
+ PIN_IN_3,
+ PIN_O,
+ PIN_LO,
+ PIN_CIN,
+ PIN_COUT,
+ PIN_CEN,
+ PIN_CLK,
+ PIN_SR
};
IdString PortPinToId(PortPin type);
@@ -83,6 +92,16 @@ struct WireInfoPOD
BelPortPOD *bels_downhill;
};
+extern int num_bels_384;
+extern int num_bels_1k;
+extern int num_bels_5k;
+extern int num_bels_8k;
+
+extern BelInfoPOD bel_data_384[];
+extern BelInfoPOD bel_data_1k[];
+extern BelInfoPOD bel_data_5k[];
+extern BelInfoPOD bel_data_8k[];
+
extern int num_wires_384;
extern int num_wires_1k;
extern int num_wires_5k;