data/full_repos/permissive/458134463/Modules/mux8x1_tb.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/mux8x1_tb.v:30: 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/mux8x1_tb.v:32: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/mux8x1_tb.v:34: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/mux8x1_tb.v:36: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/mux8x1_tb.v:38: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/mux8x1_tb.v:40: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Warning-STMTDLY: data/full_repos/permissive/458134463/Modules/mux8x1_tb.v:42: Unsupported: Ignoring delay on this delayed statement.\n#20\n^\n%Error: data/full_repos/permissive/458134463/Modules/mux8x1_tb.v:47: Unsupported or unknown PLI call: $monitor\n$monitor("\\nTime  : %1d\\ninput0: %1b - input1: %1b - input2: %1b - input3: %1b - input4: %1b - input5: %1b - input6: %1b - input7: %1b\\nselect: %3b\\nresult: %1b",\n^~~~~~~~\n%Error: Exiting due to 1 error(s), 7 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module mux8x1_tb();

reg [2:0] select;
reg input1;
reg input2;
reg input3;
reg input4;
reg input5;
reg input6;
reg input7;
reg input8;

wire result;


mux8x1 mux(input1, input2, input3, input4, input5, input6, input7, input8, select, result);

initial begin
input1 = 1'b1; 
input2 = 1'b1;
input3 = 1'b1;
input4 = 1'b0;
input5 = 1'b0;
input6 = 1'b1;
input7 = 1'b0;
input8 = 1'b1;

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("\nTime  : %1d\ninput0: %1b - input1: %1b - input2: %1b - input3: %1b - input4: %1b - input5: %1b - input6: %1b - input7: %1b\nselect: %3b\nresult: %1b",
			$time,
			input1, input2, input3, input4, input5, input6, input7, input8,
			select,
			result);
end

endmodule
module mux8x1_tb();


reg [2:0] select;
reg input1;
reg input2;
reg input3;
reg input4;
reg input5;
reg input6;
reg input7;
reg input8;

wire result;


mux8x1 mux(input1, input2, input3, input4, input5, input6, input7, input8, select, result);

initial begin
input1 = 1'b1; 
input2 = 1'b1;
input3 = 1'b1;
input4 = 1'b0;
input5 = 1'b0;
input6 = 1'b1;
input7 = 1'b0;
input8 = 1'b1;

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("\nTime  : %1d\ninput0: %1b - input1: %1b - input2: %1b - input3: %1b - input4: %1b - input5: %1b - input6: %1b - input7: %1b\nselect: %3b\nresult: %1b",
			$time,
			input1, input2, input3, input4, input5, input6, input7, input8,
			select,
			result);
end

endmodule