aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-30 16:59:30 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-30 16:59:30 +0200
commitb09183db3bf5b08c1a1151e044f9df5f6dc445d8 (patch)
tree811784ef879ba5fa31616c8b29e6e84a9885f106 /ice40/arch.cc
parent66a5b99f02b41c415911a7f2e045d167699cd82f (diff)
downloadnextpnr-b09183db3bf5b08c1a1151e044f9df5f6dc445d8.tar.gz
nextpnr-b09183db3bf5b08c1a1151e044f9df5f6dc445d8.tar.bz2
nextpnr-b09183db3bf5b08c1a1151e044f9df5f6dc445d8.zip
Use DelayInfo for cell timing instead of delay_t
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index 93a49dde..8162098c 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -775,29 +775,29 @@ std::vector<GraphicElement> Arch::getDecalGraphics(DecalId decal) const
// -----------------------------------------------------------------------
-bool Arch::getCellDelay(const CellInfo *cell, IdString fromPort, IdString toPort, delay_t &delay) const
+bool Arch::getCellDelay(const CellInfo *cell, IdString fromPort, IdString toPort, DelayInfo &delay) const
{
if (cell->type == id_icestorm_lc) {
if ((fromPort == id_i0 || fromPort == id_i1 || fromPort == id_i2 || fromPort == id_i3) &&
(toPort == id_o || toPort == id_lo)) {
- delay = 450;
+ delay.delay = 450;
return true;
} else if (fromPort == id_cin && toPort == id_cout) {
- delay = 120;
+ delay.delay = 120;
return true;
} else if (fromPort == id_i1 && toPort == id_cout) {
- delay = 260;
+ delay.delay = 260;
return true;
} else if (fromPort == id_i2 && toPort == id_cout) {
- delay = 230;
+ delay.delay = 230;
return true;
} else if (fromPort == id_clk && toPort == id_o) {
- delay = 540;
+ delay.delay = 540;
return true;
}
} else if (cell->type == id_icestorm_ram) {
if (fromPort == id_rclk) {
- delay = 2140;
+ delay.delay = 2140;
return true;
}
}