diff options
Diffstat (limited to 'ice40/chip.cc')
-rw-r--r-- | ice40/chip.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ice40/chip.cc b/ice40/chip.cc index d1226b3a..d3388bc9 100644 --- a/ice40/chip.cc +++ b/ice40/chip.cc @@ -277,6 +277,12 @@ PortPin PortPinFromId(IdString id) Chip::Chip(ChipArgs args) { +#ifdef ICE40_HX1K_ONLY + if (args.type == ChipArgs::HX1K) { + chip_info = chip_info_1k; + return; + } +#else if (args.type == ChipArgs::LP384) { chip_info = chip_info_384; return; @@ -293,6 +299,7 @@ Chip::Chip(ChipArgs args) fprintf(stderr, "Unsupported chip type\n"); exit(EXIT_FAILURE); } +#endif abort(); } |