data/full_repos/permissive/179980995/Lab2/alu_tb.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/179980995/Lab2/alu_tb.v:30: Unsupported: Ignoring delay on this delayed statement.\n#10;\n^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/179980995/Lab2/alu_tb.v:37: Unsupported: Ignoring delay on this delayed statement.\n#10;\n^\n%Warning-STMTDLY: data/full_repos/permissive/179980995/Lab2/alu_tb.v:44: Unsupported: Ignoring delay on this delayed statement.\n#10;\n^\n%Warning-STMTDLY: data/full_repos/permissive/179980995/Lab2/alu_tb.v:51: Unsupported: Ignoring delay on this delayed statement.\n#10;\n^\n%Error: data/full_repos/permissive/179980995/Lab2/alu_tb.v:13: Cannot find file containing module: \'alu_4b\'\nalu_4b UUT(\n^~~~~~\n        ... Looked in:\n             data/full_repos/permissive/179980995/Lab2,data/full_repos/permissive/179980995/alu_4b\n             data/full_repos/permissive/179980995/Lab2,data/full_repos/permissive/179980995/alu_4b.v\n             data/full_repos/permissive/179980995/Lab2,data/full_repos/permissive/179980995/alu_4b.sv\n             alu_4b\n             alu_4b.v\n             alu_4b.sv\n             obj_dir/alu_4b\n             obj_dir/alu_4b.v\n             obj_dir/alu_4b.sv\n%Error: Exiting due to 1 error(s), 4 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module alu_tb();

reg [3:0] a, b;
reg cin;
reg [1:0] s;
reg m;


wire [3:0] f;
wire cout;


alu_4b UUT(
.a(a),
.b(b),
.cin(cin),
.m(m),
.s(s),
.f(f),
.cout(cout)
);

initial begin

s = 2'b00;
m = 1'b0;
a = 4'h00;
b = 4'h00;
cin = 1'b0;
#10;

s = 2'b10;
m = 1'b1;
a = 4'h05;
b = 4'h08;
cin = 1'b1;
#10;

s = 2'b01;
m = 1'b0;
a = 4'h07;
b = 4'h05;
cin = 1'b1;
#10;

s = 2'b01;
m = 1'b1;
a = 4'h05;
b = 4'h08;
cin = 1'b0;
#10;
end
endmodule
module alu_tb();


reg [3:0] a, b;
reg cin;
reg [1:0] s;
reg m;


wire [3:0] f;
wire cout;


alu_4b UUT(
.a(a),
.b(b),
.cin(cin),
.m(m),
.s(s),
.f(f),
.cout(cout)
);

initial begin

s = 2'b00;
m = 1'b0;
a = 4'h00;
b = 4'h00;
cin = 1'b0;
#10;

s = 2'b10;
m = 1'b1;
a = 4'h05;
b = 4'h08;
cin = 1'b1;
#10;

s = 2'b01;
m = 1'b0;
a = 4'h07;
b = 4'h05;
cin = 1'b1;
#10;

s = 2'b01;
m = 1'b1;
a = 4'h05;
b = 4'h08;
cin = 1'b0;
#10;
end
endmodule