mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
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 <[email protected]>
This commit is contained in:
+38
-10
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user