ice40: Fix missing clock pin types (#1380)

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
myrtle 2024-10-04 08:07:13 +02:00 committed by GitHub
parent 75d2ce6a92
commit 854549a5ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -521,6 +521,10 @@ bool is_clock_port(const BaseCtx *ctx, const PortRef &port)
return port.port == id_CLK; return port.port == id_CLK;
if (is_sb_spram(ctx, port.cell) || port.cell->type == id_ICESTORM_SPRAM) if (is_sb_spram(ctx, port.cell) || port.cell->type == id_ICESTORM_SPRAM)
return port.port == id_CLOCK; return port.port == id_CLOCK;
if (is_sb_i2c(ctx, port.cell) || is_sb_spi(ctx, port.cell))
return port.port == id_SBCLKI;
if (is_sb_ledda_ip(ctx, port.cell))
return port.port == id_LEDDCLK;
if (is_sb_io(ctx, port.cell)) if (is_sb_io(ctx, port.cell))
return port.port.in(id_INPUT_CLK, id_OUTPUT_CLK); return port.port.in(id_INPUT_CLK, id_OUTPUT_CLK);
return false; return false;