aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Riesenberger <stefan.riesenberger@gmail.com>2022-11-05 10:05:08 +0100
committermyrtle <gatecat@ds0.me>2023-03-10 10:48:05 +0100
commitbaa3659ea54aed3a714ed2fcb8b5242f5332ef37 (patch)
treee94d17bf3b6d09628d87c54caa82aca4b2431b80
parentb58664d441764b4de1d01c4efcdd45094ba71535 (diff)
downloadyosys-baa3659ea54aed3a714ed2fcb8b5242f5332ef37.tar.gz
yosys-baa3659ea54aed3a714ed2fcb8b5242f5332ef37.tar.bz2
yosys-baa3659ea54aed3a714ed2fcb8b5242f5332ef37.zip
ice40: Fix path delay definitions
Parallel connections do not allow matching different bit widths. A full connection has to be used instead. Allows iverilog to parse the simulation library with hardware path delays enabled.
-rw-r--r--techlibs/ice40/cells_sim.v28
1 files changed, 14 insertions, 14 deletions
diff --git a/techlibs/ice40/cells_sim.v b/techlibs/ice40/cells_sim.v
index 52e8e2e3a..8943815bf 100644
--- a/techlibs/ice40/cells_sim.v
+++ b/techlibs/ice40/cells_sim.v
@@ -1674,7 +1674,7 @@ module SB_RAM40_4K (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_hx1k.txt#L400
$setup(WE, posedge WCLK, 133);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_hx1k.txt#L401
- (posedge RCLK => (RDATA : 16'bx)) = 2146;
+ (posedge RCLK *> (RDATA : 16'bx)) = 2146;
endspecify
`endif
`ifdef ICE40_LP
@@ -1696,7 +1696,7 @@ module SB_RAM40_4K (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_lp1k.txt#L400
$setup(WE, posedge WCLK, 196);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_lp1k.txt#L401
- (posedge RCLK => (RDATA : 16'bx)) = 3163;
+ (posedge RCLK *> (RDATA : 16'bx)) = 3163;
endspecify
`endif
`ifdef ICE40_U
@@ -1718,7 +1718,7 @@ module SB_RAM40_4K (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_up5k.txt#L13025
$setup(WE, posedge WCLK, 252);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_up5k.txt#L13026
- (posedge RCLK => (RDATA : 16'bx)) = 1179;
+ (posedge RCLK *> (RDATA : 16'bx)) = 1179;
endspecify
`endif
endmodule
@@ -1810,7 +1810,7 @@ module SB_RAM40_4KNR (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_hx1k.txt#L400
$setup(WE, posedge WCLK, 133);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_hx1k.txt#L401
- (posedge RCLKN => (RDATA : 16'bx)) = 2146;
+ (posedge RCLKN *> (RDATA : 16'bx)) = 2146;
endspecify
`endif
`ifdef ICE40_LP
@@ -1832,7 +1832,7 @@ module SB_RAM40_4KNR (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_lp1k.txt#L400
$setup(WE, posedge WCLK, 196);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_lp1k.txt#L401
- (posedge RCLKN => (RDATA : 16'bx)) = 3163;
+ (posedge RCLKN *> (RDATA : 16'bx)) = 3163;
endspecify
`endif
`ifdef ICE40_U
@@ -1854,7 +1854,7 @@ module SB_RAM40_4KNR (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_up5k.txt#L13025
$setup(WE, posedge WCLK, 252);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_up5k.txt#L13026
- (posedge RCLKN => (RDATA : 16'bx)) = 1179;
+ (posedge RCLKN *> (RDATA : 16'bx)) = 1179;
endspecify
`endif
endmodule
@@ -1946,7 +1946,7 @@ module SB_RAM40_4KNW (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_hx1k.txt#L400
$setup(WE, posedge WCLKN, 133);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_hx1k.txt#L401
- (posedge RCLK => (RDATA : 16'bx)) = 2146;
+ (posedge RCLK *> (RDATA : 16'bx)) = 2146;
endspecify
`endif
`ifdef ICE40_LP
@@ -1968,7 +1968,7 @@ module SB_RAM40_4KNW (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_lp1k.txt#L400
$setup(WE, posedge WCLKN, 196);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_lp1k.txt#L401
- (posedge RCLK => (RDATA : 16'bx)) = 3163;
+ (posedge RCLK *> (RDATA : 16'bx)) = 3163;
endspecify
`endif
`ifdef ICE40_U
@@ -1990,7 +1990,7 @@ module SB_RAM40_4KNW (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_up5k.txt#L13025
$setup(WE, posedge WCLKN, 252);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_up5k.txt#L13026
- (posedge RCLK => (RDATA : 16'bx)) = 1179;
+ (posedge RCLK *> (RDATA : 16'bx)) = 1179;
endspecify
`endif
endmodule
@@ -2082,7 +2082,7 @@ module SB_RAM40_4KNRNW (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_hx1k.txt#L400
$setup(WE, posedge WCLKN, 133);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_hx1k.txt#L401
- (posedge RCLKN => (RDATA : 16'bx)) = 2146;
+ (posedge RCLKN *> (RDATA : 16'bx)) = 2146;
endspecify
`endif
`ifdef ICE40_LP
@@ -2104,7 +2104,7 @@ module SB_RAM40_4KNRNW (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_lp1k.txt#L400
$setup(WE, posedge WCLKN, 196);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_lp1k.txt#L401
- (posedge RCLKN => (RDATA : 16'bx)) = 3163;
+ (posedge RCLKN *> (RDATA : 16'bx)) = 3163;
endspecify
`endif
`ifdef ICE40_U
@@ -2126,7 +2126,7 @@ module SB_RAM40_4KNRNW (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_up5k.txt#L13025
$setup(WE, posedge WCLKN, 252);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_up5k.txt#L13026
- (posedge RCLKN => (RDATA : 16'bx)) = 1179;
+ (posedge RCLKN *> (RDATA : 16'bx)) = 1179;
endspecify
`endif
endmodule
@@ -2653,9 +2653,9 @@ module SB_SPRAM256KA (
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_up5k.txt#L13206
$setup(WREN, posedge CLOCK, 289);
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_up5k.txt#L13207-L13222
- (posedge CLOCK => (DATAOUT : 16'bx)) = 1821;
+ (posedge CLOCK *> (DATAOUT : 16'bx)) = 1821;
// https://github.com/YosysHQ/icestorm/blob/95949315364f8d9b0c693386aefadf44b28e2cf6/icefuzz/timings_up5k.txt#L13223-L13238
- (posedge SLEEP => (DATAOUT : 16'b0)) = 1099;
+ (posedge SLEEP *> (DATAOUT : 16'b0)) = 1099;
endspecify
`endif
endmodule