diff options
Diffstat (limited to 'ice40/chip.h')
-rw-r--r-- | ice40/chip.h | 25 |
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; |