Skip to content

Commit

Permalink
ice40: Fix missing clock pin types (#1380)
Browse files Browse the repository at this point in the history
Signed-off-by: gatecat <gatecat@ds0.me>
  • Loading branch information
gatecat authored Oct 4, 2024
1 parent 75d2ce6 commit 854549a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ice40/cells.cc
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,10 @@ bool is_clock_port(const BaseCtx *ctx, const PortRef &port)
return port.port == id_CLK;
if (is_sb_spram(ctx, port.cell) || port.cell->type == id_ICESTORM_SPRAM)
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))
return port.port.in(id_INPUT_CLK, id_OUTPUT_CLK);
return false;
Expand Down

0 comments on commit 854549a

Please sign in to comment.