data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:19: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:21: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:23: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:25: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:27: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:29: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:31: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:34: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:40: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:42: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:44: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:46: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:48: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:50: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:52: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Error: data/full_repos/permissive/458134463/Modules/alu_32bit_tb.v:57: Unsupported or unknown PLI call: $monitor\n$monitor("Time  : %1d - Select: %3b\\nvalue1: %32b \\nvalue2: %32b \\nresult: %32b \\n",\n^~~~~~~~\n%Error: Exiting due to 1 error(s), 15 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module alu_32bit_tb();

reg [2:0]  select;
reg signed [31:0] value1;
reg signed [31:0] value2;

wire signed [31:0] result;


alu_32bit alu32(value1, value2, select, result);

initial begin

value1 = 32'b00000000000000000000000000110011;
value2 = 32'b00000000000000000000000000101001;

select = 3'b000;
#`DELAY
select = 3'b001;
#`DELAY
select = 3'b010;
#`DELAY
select = 3'b011;
#`DELAY
select = 3'b100;
#`DELAY
select = 3'b101;
#`DELAY
select = 3'b110;
#`DELAY
select = 3'b111;

#`DELAY

value1 = 32'hAAAAAAAA;
value2 = 32'h33333333;

select = 3'b000;
#`DELAY
select = 3'b001;
#`DELAY
select = 3'b010;
#`DELAY
select = 3'b011;
#`DELAY
select = 3'b100;
#`DELAY
select = 3'b101;
#`DELAY
select = 3'b110;
#`DELAY
select = 3'b111;
end

initial begin
$monitor("Time  : %1d - Select: %3b\nvalue1: %32b \nvalue2: %32b \nresult: %32b \n",
			$time,
			select,
			value1,
			value2,
			result	);
end


endmodule
module alu_32bit_tb();


reg [2:0]  select;
reg signed [31:0] value1;
reg signed [31:0] value2;

wire signed [31:0] result;


alu_32bit alu32(value1, value2, select, result);

initial begin

value1 = 32'b00000000000000000000000000110011;
value2 = 32'b00000000000000000000000000101001;

select = 3'b000;
#`DELAY
select = 3'b001;
#`DELAY
select = 3'b010;
#`DELAY
select = 3'b011;
#`DELAY
select = 3'b100;
#`DELAY
select = 3'b101;
#`DELAY
select = 3'b110;
#`DELAY
select = 3'b111;

#`DELAY

value1 = 32'hAAAAAAAA;
value2 = 32'h33333333;

select = 3'b000;
#`DELAY
select = 3'b001;
#`DELAY
select = 3'b010;
#`DELAY
select = 3'b011;
#`DELAY
select = 3'b100;
#`DELAY
select = 3'b101;
#`DELAY
select = 3'b110;
#`DELAY
select = 3'b111;
end

initial begin
$monitor("Time  : %1d - Select: %3b\nvalue1: %32b \nvalue2: %32b \nresult: %32b \n",
			$time,
			select,
			value1,
			value2,
			result	);
end


endmodule