aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/cells.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-08-01 09:45:08 +0200
committerDavid Shah <davey1576@gmail.com>2018-08-01 09:45:08 +0200
commit0414c93403a75c8d5d14feb70f3ccf7a9a127c47 (patch)
tree395cbec1e66410fa39b7ea771843a6b2ac5c1b93 /ice40/cells.cc
parentbbd2ecf558f8b60bbe3fc836b64819b5c4af51fe (diff)
downloadnextpnr-0414c93403a75c8d5d14feb70f3ccf7a9a127c47.tar.gz
nextpnr-0414c93403a75c8d5d14feb70f3ccf7a9a127c47.tar.bz2
nextpnr-0414c93403a75c8d5d14feb70f3ccf7a9a127c47.zip
ice40: Add HFOSC support, force fabric routing on oscillators for now
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/cells.cc')
-rw-r--r--ice40/cells.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/cells.cc b/ice40/cells.cc
index 610bf85e..5bdc7990 100644
--- a/ice40/cells.cc
+++ b/ice40/cells.cc
@@ -113,8 +113,8 @@ std::unique_ptr<CellInfo> create_ice_cell(Context *ctx, IdString type, std::stri
add_port(ctx, new_cell.get(), "CLKLF", PORT_OUT);
add_port(ctx, new_cell.get(), "CLKLF_FABRIC", PORT_OUT);
} else if (type == ctx->id("ICESTORM_HFOSC")) {
- new_cell->params[ctx->id("CLKHF_DIV")] = "0";
- new_cell->params[ctx->id("TRIM_EN")] = "0";
+ new_cell->params[ctx->id("CLKHF_DIV")] = "0b00";
+ new_cell->params[ctx->id("TRIM_EN")] = "0b0";
add_port(ctx, new_cell.get(), "CLKHFEN", PORT_IN);
add_port(ctx, new_cell.get(), "CLKHFPU", PORT_IN);