Fix "make vgtest" so it runs to the end (but now it fails ;)

Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
This commit is contained in:
Claire Xenia Wolf 2021-09-22 17:34:20 +02:00
parent 3931b3a03f
commit 15fb0107dc
40 changed files with 79 additions and 79 deletions

View File

@ -1,4 +1,4 @@
module bar(clk, rst, inp, out); module attrib01_bar(clk, rst, inp, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire inp; input wire inp;
@ -10,12 +10,12 @@ module bar(clk, rst, inp, out);
endmodule endmodule
module foo(clk, rst, inp, out); module attrib01_foo(clk, rst, inp, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire inp; input wire inp;
output wire out; output wire out;
bar bar_instance (clk, rst, inp, out); attrib01_bar bar_instance (clk, rst, inp, out);
endmodule endmodule

View File

@ -1,4 +1,4 @@
module bar(clk, rst, inp, out); module attrib02_bar(clk, rst, inp, out);
(* this_is_clock = 1 *) (* this_is_clock = 1 *)
input wire clk; input wire clk;
(* this_is_reset = 1 *) (* this_is_reset = 1 *)
@ -13,13 +13,13 @@ module bar(clk, rst, inp, out);
endmodule endmodule
module foo(clk, rst, inp, out); module attrib02_foo(clk, rst, inp, out);
(* this_is_the_master_clock *) (* this_is_the_master_clock *)
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire inp; input wire inp;
output wire out; output wire out;
bar bar_instance (clk, rst, inp, out); attrib02_bar bar_instance (clk, rst, inp, out);
endmodule endmodule

View File

@ -1,4 +1,4 @@
module bar(clk, rst, inp, out); module attrib03_bar(clk, rst, inp, out);
(* bus_width *) (* bus_width *)
parameter WIDTH = 2; parameter WIDTH = 2;
@ -17,12 +17,12 @@ module bar(clk, rst, inp, out);
endmodule endmodule
module foo(clk, rst, inp, out); module attrib03_foo(clk, rst, inp, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire [7:0] inp; input wire [7:0] inp;
output wire [7:0] out; output wire [7:0] out;
bar # (.WIDTH(8)) bar_instance (clk, rst, inp, out); attrib03_bar # (.WIDTH(8)) bar_instance (clk, rst, inp, out);
endmodule endmodule

View File

@ -1,4 +1,4 @@
module bar(clk, rst, inp, out); module attrib04_bar(clk, rst, inp, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire inp; input wire inp;
@ -21,12 +21,12 @@ module bar(clk, rst, inp, out);
endmodule endmodule
module foo(clk, rst, inp, out); module attrib04_foo(clk, rst, inp, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire inp; input wire inp;
output wire out; output wire out;
bar bar_instance (clk, rst, inp, out); attrib04_bar bar_instance (clk, rst, inp, out);
endmodule endmodule

View File

@ -1,4 +1,4 @@
module bar(clk, rst, inp, out); module attrib05_bar(clk, rst, inp, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire inp; input wire inp;
@ -10,12 +10,12 @@ module bar(clk, rst, inp, out);
endmodule endmodule
module foo(clk, rst, inp, out); module attrib05_foo(clk, rst, inp, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire inp; input wire inp;
output wire out; output wire out;
bar bar_instance ( (* clock_connected *) clk, rst, (* this_is_the_input *) inp, out); attrib05_bar bar_instance ( (* clock_connected *) clk, rst, (* this_is_the_input *) inp, out);
endmodule endmodule

View File

@ -1,4 +1,4 @@
module bar(clk, rst, inp_a, inp_b, out); module attrib06_bar(clk, rst, inp_a, inp_b, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire [7:0] inp_a; input wire [7:0] inp_a;
@ -11,13 +11,13 @@ module bar(clk, rst, inp_a, inp_b, out);
endmodule endmodule
module foo(clk, rst, inp_a, inp_b, out); module attrib06_foo(clk, rst, inp_a, inp_b, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire [7:0] inp_a; input wire [7:0] inp_a;
input wire [7:0] inp_b; input wire [7:0] inp_b;
output wire [7:0] out; output wire [7:0] out;
bar bar_instance (clk, rst, inp_a, inp_b, out); attrib06_bar bar_instance (clk, rst, inp_a, inp_b, out);
endmodule endmodule

View File

@ -1,4 +1,4 @@
function [7:0] do_add; function [7:0] attrib07_do_add;
input [7:0] inp_a; input [7:0] inp_a;
input [7:0] inp_b; input [7:0] inp_b;
@ -6,7 +6,7 @@ function [7:0] do_add;
endfunction endfunction
module foo(clk, rst, inp_a, inp_b, out); module attri07_foo(clk, rst, inp_a, inp_b, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire [7:0] inp_a; input wire [7:0] inp_a;
@ -15,7 +15,7 @@ module foo(clk, rst, inp_a, inp_b, out);
always @(posedge clk) always @(posedge clk)
if (rst) out <= 0; if (rst) out <= 0;
else out <= do_add (* combinational_adder *) (inp_a, inp_b); else out <= attrib07_do_add (* combinational_adder *) (inp_a, inp_b);
endmodule endmodule

View File

@ -1,4 +1,4 @@
module bar(clk, rst, inp, out); module attrib08_bar(clk, rst, inp, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire inp; input wire inp;
@ -10,13 +10,13 @@ module bar(clk, rst, inp, out);
endmodule endmodule
module foo(clk, rst, inp, out); module attrib08_foo(clk, rst, inp, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire inp; input wire inp;
output wire out; output wire out;
(* my_module_instance = 99 *) (* my_module_instance = 99 *)
bar bar_instance (clk, rst, inp, out); attrib08_bar bar_instance (clk, rst, inp, out);
endmodule endmodule

View File

@ -1,4 +1,4 @@
module bar(clk, rst, inp, out); module attrib09_bar(clk, rst, inp, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire [1:0] inp; input wire [1:0] inp;
@ -15,12 +15,12 @@ module bar(clk, rst, inp, out);
endmodule endmodule
module foo(clk, rst, inp, out); module attrib09_foo(clk, rst, inp, out);
input wire clk; input wire clk;
input wire rst; input wire rst;
input wire [1:0] inp; input wire [1:0] inp;
output wire [1:0] out; output wire [1:0] out;
bar bar_instance (clk, rst, inp, out); attrib09_bar bar_instance (clk, rst, inp, out);
endmodule endmodule

View File

@ -1,6 +1,6 @@
// Note: case_expr_{,non_}const.v should be modified in tandem to ensure both // Note: case_expr_{,non_}const.v should be modified in tandem to ensure both
// the constant and non-constant case evaluation logic is covered // the constant and non-constant case evaluation logic is covered
module top( module case_expr_const_top(
// expected to output all 1s // expected to output all 1s
output reg a, b, c, d, e, f, g, h output reg a, b, c, d, e, f, g, h
); );

View File

@ -1,6 +1,6 @@
// Note: case_expr_{,non_}const.v should be modified in tandem to ensure both // Note: case_expr_{,non_}const.v should be modified in tandem to ensure both
// the constant and non-constant case evaluation logic is covered // the constant and non-constant case evaluation logic is covered
module top( module case_expr_non_const_top(
// expected to output all 1s // expected to output all 1s
output reg a, b, c, d, e, f, g, h output reg a, b, c, d, e, f, g, h
); );

View File

@ -1,4 +1,4 @@
module top ( module case_lage_top (
input wire [127:0] x, input wire [127:0] x,
output reg [31:0] y output reg [31:0] y
); );

View File

@ -4,7 +4,7 @@
$finish; \ $finish; \
end end
module top; module case_branch_finish_top;
parameter WIDTH = 32; parameter WIDTH = 32;
integer j; integer j;
initial begin initial begin

View File

@ -1,4 +1,4 @@
module top( module const_fold_func_top(
input wire [3:0] inp, input wire [3:0] inp,
output wire [3:0] out1, out2, out3, out4, out5, output wire [3:0] out1, out2, out3, out4, out5,
output reg [3:0] out6 output reg [3:0] out6

View File

@ -1,4 +1,4 @@
module top(w, x, y, z); module const_func_shadow_top(w, x, y, z);
function [11:0] func; function [11:0] func;
input reg [2:0] x; input reg [2:0] x;
input reg [2:0] y; input reg [2:0] y;

View File

@ -1,4 +1,4 @@
module top(input clock, input [3:0] delta, output [3:0] cnt1, cnt2); module defvalue_top(input clock, input [3:0] delta, output [3:0] cnt1, cnt2);
cnt #(1) foo (.clock, .cnt(cnt1), .delta); cnt #(1) foo (.clock, .cnt(cnt1), .delta);
cnt #(2) bar (.clock, .cnt(cnt2)); cnt #(2) bar (.clock, .cnt(cnt2));
endmodule endmodule

View File

@ -1,6 +1,6 @@
`default_nettype none `default_nettype none
module top(inp, out1, out2, out3); module func_block_top(inp, out1, out2, out3);
input wire [31:0] inp; input wire [31:0] inp;
function automatic [31:0] func1; function automatic [31:0] func1;

View File

@ -1,4 +1,4 @@
module top( module func_recurse_top(
input wire [3:0] inp, input wire [3:0] inp,
output wire [3:0] out1, out2 output wire [3:0] out1, out2
); );

View File

@ -1,4 +1,4 @@
module top(inp, out1, out2); module func_width_scope_top(inp, out1, out2);
input wire signed inp; input wire signed inp;
localparam WIDTH_A = 5; localparam WIDTH_A = 5;

View File

@ -1,6 +1,6 @@
`default_nettype none `default_nettype none
module top1; module genblock_collide_top1;
generate generate
if (1) begin : foo if (1) begin : foo
if (1) begin : bar if (1) begin : bar
@ -12,7 +12,7 @@ module top1;
endgenerate endgenerate
endmodule endmodule
module top2; module genblock_collide_top2;
genvar i; genvar i;
generate generate
if (1) begin : foo if (1) begin : foo

View File

@ -1,5 +1,5 @@
`default_nettype none `default_nettype none
module top(output wire x); module genblk_dive_top(output wire x);
generate generate
if (1) begin : Z if (1) begin : Z
if (1) begin : A if (1) begin : A

View File

@ -1,5 +1,5 @@
`default_nettype none `default_nettype none
module top( module genblk_order_top(
output wire out1, output wire out1,
output wire out2 output wire out2
); );

View File

@ -1,4 +1,4 @@
module top(x); module genblock_port_shadow_top(x);
generate generate
if (1) begin : blk if (1) begin : blk
wire x; wire x;

View File

@ -1,6 +1,6 @@
(* top *) (* top *)
module top(a, b, y1, y2, y3, y4); module hierarchy_top(a, b, y1, y2, y3, y4);
input [3:0] a; input [3:0] a;
input signed [3:0] b; input signed [3:0] b;
output [7:0] y1, y2, y3, y4; output [7:0] y1, y2, y3, y4;

View File

@ -1,4 +1,4 @@
module top(o1, o2, o3, o4); module ifdef_1_top(o1, o2, o3, o4);
`define FAIL input wire not_a_port; `define FAIL input wire not_a_port;

View File

@ -1,4 +1,4 @@
module top(o1, o2, o3); module ifdef_2_top(o1, o2, o3);
output wire o1; output wire o1;

View File

@ -1,4 +1,4 @@
module top(out); module local_loop_top(out);
output integer out; output integer out;
initial begin initial begin
integer i; integer i;

View File

@ -1,4 +1,4 @@
module top( module loop_prefix_case_top(
input wire x, input wire x,
output reg y output reg y
); );

View File

@ -1,4 +1,4 @@
module top(out); module loop_var_shadow_top(out);
genvar i; genvar i;
generate generate
for (i = 0; i < 2; i = i + 1) begin : loop for (i = 0; i < 2; i = i + 1) begin : loop

View File

@ -1,4 +1,4 @@
module top( module macro_arg_spaces_top(
input wire [31:0] i, input wire [31:0] i,
output wire [31:0] x, y, z output wire [31:0] x, y, z
); );

View File

@ -1,4 +1,4 @@
module top( module macr_arg_surrounding_spaces_top(
IDENT_V_, IDENT_V_,
IDENT_W_, IDENT_W_,
IDENT_X_, IDENT_X_,

View File

@ -1,4 +1,4 @@
module top( module matching_end_labels_top(
output reg [7:0] output reg [7:0]
out1, out2, out3, out4 out1, out2, out3, out4
); );

View File

@ -1,4 +1,4 @@
module top( module mem2reg_bounds_term_top(
input clk, input clk,
input wire [1:0] sel, input wire [1:0] sel,
input wire [7:0] base, input wire [7:0] base,

View File

@ -1,29 +1,29 @@
`default_nettype none `default_nettype none
module Example(o1, o2); module module_scope_Example(o1, o2);
parameter [31:0] v1 = 10; parameter [31:0] v1 = 10;
parameter [31:0] v2 = 20; parameter [31:0] v2 = 20;
output [31:0] o1, o2; output [31:0] o1, o2;
assign Example.o1 = Example.v1; assign module_scope_Example.o1 = module_scope_Example.v1;
assign Example.o2 = Example.v2; assign module_scope_Example.o2 = module_scope_Example.v2;
endmodule endmodule
module ExampleLong(o1, o2); module module_scope_ExampleLong(o1, o2);
parameter [31:0] ThisIsAnExtremelyLongParameterNameToTriggerTheSHA1Checksum1 = 10; parameter [31:0] ThisIsAnExtremelyLongParameterNameToTriggerTheSHA1Checksum1 = 10;
parameter [31:0] ThisIsAnExtremelyLongParameterNameToTriggerTheSHA1Checksum2 = 20; parameter [31:0] ThisIsAnExtremelyLongParameterNameToTriggerTheSHA1Checksum2 = 20;
output [31:0] o1, o2; output [31:0] o1, o2;
assign ExampleLong.o1 = ExampleLong.ThisIsAnExtremelyLongParameterNameToTriggerTheSHA1Checksum1; assign module_scope_ExampleLong.o1 = module_scope_ExampleLong.ThisIsAnExtremelyLongParameterNameToTriggerTheSHA1Checksum1;
assign ExampleLong.o2 = ExampleLong.ThisIsAnExtremelyLongParameterNameToTriggerTheSHA1Checksum2; assign module_scope_ExampleLong.o2 = module_scope_ExampleLong.ThisIsAnExtremelyLongParameterNameToTriggerTheSHA1Checksum2;
endmodule endmodule
module top( module module_scope_top(
output [31:0] a1, a2, b1, b2, c1, c2, output [31:0] a1, a2, b1, b2, c1, c2,
output [31:0] d1, d2, e1, e2, f1, f2 output [31:0] d1, d2, e1, e2, f1, f2
); );
Example a(a1, a2); module_scope_Example a(a1, a2);
Example #(1) b(b1, b2); module_scope_Example #(1) b(b1, b2);
Example #(1, 2) c(c1, c2); module_scope_Example #(1, 2) c(c1, c2);
ExampleLong d(d1, d2); module_scope_ExampleLong d(d1, d2);
ExampleLong #(1) e(e1, e2); module_scope_ExampleLong #(1) e(e1, e2);
ExampleLong #(1, 2) f(f1, f2); module_scope_ExampleLong #(1, 2) f(f1, f2);
endmodule endmodule

View File

@ -1,11 +1,11 @@
module top( module module_scope_case_top(
input wire x, input wire x,
output reg y output reg y
); );
always @* begin always @* begin
case (top.x) case (module_scope_case_top.x)
1: top.y = 0; 1: module_scope_case_top.y = 0;
0: top.y = 1; 0: module_scope_case_top.y = 1;
endcase endcase
end end
endmodule endmodule

View File

@ -1,5 +1,5 @@
`default_nettype none `default_nettype none
module top; module named_genblk_top;
generate generate
if (1) begin if (1) begin
wire t; wire t;

View File

@ -1,5 +1,5 @@
`default_nettype none `default_nettype none
module top; module nested_genblk_resolve_top;
generate generate
if (1) begin if (1) begin
wire x; wire x;

View File

@ -1,4 +1,4 @@
module top; module string_format_top;
parameter STR = "something interesting"; parameter STR = "something interesting";
initial begin initial begin
$display("A: %s", STR); $display("A: %s", STR);

View File

@ -1,4 +1,4 @@
module top(z); module unnamed_block_decl(z);
output integer z; output integer z;
initial begin initial begin
integer x; integer x;

View File

@ -5,9 +5,9 @@ module wandwor_test0 (A, B, C, D, X, Y, Z);
output Z; output Z;
assign X = A, X = B, Y = C, Y = D; assign X = A, X = B, Y = C, Y = D;
foo foo_0 (C, D, X); wandwor_foo foo_0 (C, D, X);
foo foo_1 (A, B, Y); wandwor_foo foo_1 (A, B, Y);
foo foo_2 (X, Y, Z); wandwor_foo foo_2 (X, Y, Z);
endmodule endmodule
module wandwor_test1 (A, B, C, D, X, Y, Z); module wandwor_test1 (A, B, C, D, X, Y, Z);
@ -16,7 +16,7 @@ module wandwor_test1 (A, B, C, D, X, Y, Z);
output wand [3:0] Y; output wand [3:0] Y;
output Z; output Z;
bar bar_inst ( wandwor_bar bar_inst (
.I0({A, B}), .I0({A, B}),
.I1({B, A}), .I1({B, A}),
.O({X, Y}) .O({X, Y})
@ -27,10 +27,10 @@ module wandwor_test1 (A, B, C, D, X, Y, Z);
assign Z = ^{X,Y}; assign Z = ^{X,Y};
endmodule endmodule
module foo(input I0, I1, output O); module wandwor_foo(input I0, I1, output O);
assign O = I0 ^ I1; assign O = I0 ^ I1;
endmodule endmodule
module bar(input [7:0] I0, I1, output [7:0] O); module wandwor_bar(input [7:0] I0, I1, output [7:0] O);
assign O = I0 + I1; assign O = I0 + I1;
endmodule endmodule