1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-28 04:54:43 +00:00

ice40: Fix SPRAM and IO globals

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah
2018-11-04 14:13:53 +00:00
parent 429db5c7e7
commit 8df72a1f34

View File

@@ -383,6 +383,10 @@ bool is_clock_port(const BaseCtx *ctx, const PortRef &port)
port.port == ctx->id("WCLKN");
if (is_sb_mac16(ctx, port.cell) || port.cell->type == ctx->id("ICESTORM_DSP"))
return port.port == ctx->id("CLK");
if (is_sb_spram(ctx, port.cell) || port.cell->type == ctx->id("ICESTORM_SPRAM"))
return port.port == id_CLOCK;
if (is_sb_io(ctx, port.cell))
return port.port == id_INPUT_CLK || port.port == id_OUTPUT_CLK;
return false;
}