aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/chip.h
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-13 11:40:28 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-13 11:40:28 +0200
commit696aaee24c3e859283e79f9a753e8402524d8f2b (patch)
treeed2149a21705159fe1a9c796274f4efd9a29f9e7 /ice40/chip.h
parent94eea289ae0fb4d262276d17c474ade3ef21634b (diff)
downloadnextpnr-696aaee24c3e859283e79f9a753e8402524d8f2b.tar.gz
nextpnr-696aaee24c3e859283e79f9a753e8402524d8f2b.tar.bz2
nextpnr-696aaee24c3e859283e79f9a753e8402524d8f2b.zip
ice40: Add package pins to database
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/chip.h')
-rw-r--r--ice40/chip.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/ice40/chip.h b/ice40/chip.h
index f8946610..e1fc09a6 100644
--- a/ice40/chip.h
+++ b/ice40/chip.h
@@ -113,6 +113,19 @@ struct WireInfoPOD
float x, y;
};
+struct PackagePinPOD
+{
+ const char *name;
+ int32_t bel_index;
+};
+
+struct PackageInfoPOD
+{
+ const char *name;
+ int num_pins;
+ PackagePinPOD *pins;
+};
+
enum TileType
{
TILE_NONE = 0,
@@ -168,12 +181,13 @@ struct ChipInfoPOD
{
int width, height;
int num_bels, num_wires, num_pips;
- int num_switches;
+ int num_switches, num_packages;
BelInfoPOD *bel_data;
WireInfoPOD *wire_data;
PipInfoPOD *pip_data;
TileType *tile_grid;
BitstreamInfoPOD *bits_info;
+ PackageInfoPOD *packages_data;
};
extern ChipInfoPOD chip_info_384;
@@ -412,6 +426,7 @@ struct ChipArgs
HX8K,
UP5K
} type = NONE;
+ std::string package;
};
struct Chip