aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index 0f81bfea..fddfabfd 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -915,7 +915,7 @@ TimingPortClass Arch::getPortTimingClass(const CellInfo *cell, IdString port, Id
}
} else if (cell->type == id_icestorm_ram || cell->type == id("ICESTORM_DSP") ||
cell->type == id("ICESTORM_SPRAM")) {
- if (port == id_clk)
+ if (port == id_clk || port == id_rclk || port == id_wclk)
return TMG_CLOCK_INPUT;
else if (cell->ports.at(port).type == PORT_OUT)
return TMG_REGISTER_OUTPUT;
@@ -925,7 +925,7 @@ TimingPortClass Arch::getPortTimingClass(const CellInfo *cell, IdString port, Id
if (port == id("D_IN_0") || port == id("D_IN_1"))
return TMG_STARTPOINT;
if (port == id("D_OUT_0") || port == id("D_OUT_1"))
- return TMG_STARTPOINT;
+ return TMG_ENDPOINT;
return TMG_IGNORE;
} else if (cell->type == id("ICESTORM_PLL")) {
if (port == id("PLLOUT_A") || port == id("PLLOUT_B"))