From ddd94edfe0af32a33e5b71b9768c706f8b37d61b Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 18 Jul 2018 14:01:19 +0200 Subject: ice40: Fixes for inverted clocks Signed-off-by: David Shah --- ice40/pack.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ice40/pack.cc') diff --git a/ice40/pack.cc b/ice40/pack.cc index 6a6bdfaf..76e36151 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -277,6 +277,10 @@ static void pack_ram(Context *ctx) if (bpos != std::string::npos) { newname = newname.substr(0, bpos) + "_" + newname.substr(bpos + 1, (newname.size() - bpos) - 2); } + if (pi.name == ctx->id("RCLKN")) + newname = "RCLK"; + else if (pi.name == ctx->id("WCLKN")) + newname = "WCLK"; replace_port(ci, ctx->id(pi.name.c_str(ctx)), packed.get(), ctx->id(newname)); } new_cells.push_back(std::move(packed)); -- cgit v1.2.3