aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/ice40
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2022-05-18 14:53:46 -0400
committerSean Anderson <seanga2@gmail.com>2022-08-09 23:42:24 -0400
commit8c05f14b58fd0d4d6409342a172cd73202e507ae (patch)
treecd73d205f48c802af02890373596007e786dbdba /techlibs/ice40
parent035d99f3a82812669b801fb27aeee30876d61049 (diff)
downloadyosys-8c05f14b58fd0d4d6409342a172cd73202e507ae.tar.gz
yosys-8c05f14b58fd0d4d6409342a172cd73202e507ae.tar.bz2
yosys-8c05f14b58fd0d4d6409342a172cd73202e507ae.zip
Order ports with default assignments first
Although the current style is allowed by the standard, Icarus verilog doesn't parse default assignments using an implicit net type: techlibs/ice40/cells_sim.v:305: syntax error techlibs/ice40/cells_sim.v:1: Errors in port declarations. Fix this by making sure that ports with default assignments first on their line. Fixes: 46d3f03d2 ("Add default assignments to other SB_* simulation models") Signed-off-by: Sean Anderson <seanga2@gmail.com>
Diffstat (limited to 'techlibs/ice40')
-rw-r--r--techlibs/ice40/cells_sim.v48
1 files changed, 38 insertions, 10 deletions
diff --git a/techlibs/ice40/cells_sim.v b/techlibs/ice40/cells_sim.v
index 2e1c6807a..52e8e2e3a 100644
--- a/techlibs/ice40/cells_sim.v
+++ b/techlibs/ice40/cells_sim.v
@@ -302,7 +302,9 @@ endmodule
(* abc9_flop, lib_whitebox *)
module SB_DFFE (
output reg Q,
- input C, E `ICE40_DEFAULT_ASSIGNMENT_1, D
+ input C,
+ input E `ICE40_DEFAULT_ASSIGNMENT_1,
+ input D
);
`SB_DFF_INIT
@@ -589,7 +591,10 @@ endmodule
(* abc9_flop, lib_whitebox *)
module SB_DFFESR (
output reg Q,
- input C, E `ICE40_DEFAULT_ASSIGNMENT_1, R, D
+ input C,
+ input E `ICE40_DEFAULT_ASSIGNMENT_1,
+ input R,
+ input D
);
`SB_DFF_INIT
@@ -647,7 +652,10 @@ endmodule
(* abc9_box, lib_whitebox *)
module SB_DFFER (
output reg Q,
- input C, E `ICE40_DEFAULT_ASSIGNMENT_1, R, D
+ input C,
+ input E `ICE40_DEFAULT_ASSIGNMENT_1,
+ input R,
+ input D
);
`SB_DFF_INIT
@@ -724,7 +732,10 @@ endmodule
(* abc9_flop, lib_whitebox *)
module SB_DFFESS (
output reg Q,
- input C, E `ICE40_DEFAULT_ASSIGNMENT_1, S, D
+ input C,
+ input E `ICE40_DEFAULT_ASSIGNMENT_1,
+ input S,
+ input D
);
`SB_DFF_INIT
@@ -782,7 +793,10 @@ endmodule
(* abc9_box, lib_whitebox *)
module SB_DFFES (
output reg Q,
- input C, E `ICE40_DEFAULT_ASSIGNMENT_1, S, D
+ input C,
+ input E `ICE40_DEFAULT_ASSIGNMENT_1,
+ input S,
+ input D
);
`SB_DFF_INIT
@@ -899,7 +913,9 @@ endmodule
(* abc9_flop, lib_whitebox *)
module SB_DFFNE (
output reg Q,
- input C, E `ICE40_DEFAULT_ASSIGNMENT_1, D
+ input C,
+ input E `ICE40_DEFAULT_ASSIGNMENT_1,
+ input D
);
`SB_DFF_INIT
@@ -1186,7 +1202,10 @@ endmodule
(* abc9_flop, lib_whitebox *)
module SB_DFFNESR (
output reg Q,
- input C, E `ICE40_DEFAULT_ASSIGNMENT_1, R, D
+ input C,
+ input E `ICE40_DEFAULT_ASSIGNMENT_1,
+ input R,
+ input D
);
`SB_DFF_INIT
@@ -1244,7 +1263,10 @@ endmodule
(* abc9_box, lib_whitebox *)
module SB_DFFNER (
output reg Q,
- input C, E `ICE40_DEFAULT_ASSIGNMENT_1, R, D
+ input C,
+ input E `ICE40_DEFAULT_ASSIGNMENT_1,
+ input R,
+ input D
);
`SB_DFF_INIT
@@ -1321,7 +1343,10 @@ endmodule
(* abc9_flop, lib_whitebox *)
module SB_DFFNESS (
output reg Q,
- input C, E `ICE40_DEFAULT_ASSIGNMENT_1, S, D
+ input C,
+ input E `ICE40_DEFAULT_ASSIGNMENT_1,
+ input S,
+ input D
);
`SB_DFF_INIT
@@ -1379,7 +1404,10 @@ endmodule
(* abc9_box, lib_whitebox *)
module SB_DFFNES (
output reg Q,
- input C, E `ICE40_DEFAULT_ASSIGNMENT_1, S, D
+ input C,
+ input E `ICE40_DEFAULT_ASSIGNMENT_1,
+ input S,
+ input D
);
`SB_DFF_INIT