From 89d5280bf6cfa0a5f35ce674c456a14e68372908 Mon Sep 17 00:00:00 2001 From: David Shah Date: Sun, 10 Jun 2018 11:14:50 +0200 Subject: ice40: Adding non-routing config bits to database Signed-off-by: David Shah --- ice40/chip.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ice40/chip.h') diff --git a/ice40/chip.h b/ice40/chip.h index 97421e48..1e80cc47 100644 --- a/ice40/chip.h +++ b/ice40/chip.h @@ -109,11 +109,11 @@ struct WireInfoPOD enum TileType { - TILE_NONE, - TILE_LOGIC, - TILE_IO, - TILE_RAMB, - TILE_RAMT, + TILE_NONE = 0, + TILE_LOGIC = 1, + TILE_IO = 2, + TILE_RAMB = 3, + TILE_RAMT = 4, }; struct ConfigBitPOD @@ -128,9 +128,9 @@ struct ConfigEntryPOD ConfigBitPOD *bits; }; -struct TileBitsPOD +struct TileInfoPOD { - int8_t width, height; + int8_t cols, rows; int num_config_entries; ConfigEntryPOD *entries; }; @@ -147,7 +147,7 @@ struct SwitchInfoPOD struct BitstreamInfoPOD { int num_switches; - TileBitsPOD *tiles_nonrouting; + TileInfoPOD *tiles_nonrouting; SwitchInfoPOD *switches; }; -- cgit v1.2.3