data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv
1: b'%Warning-STMTDLY: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:43: Unsupported: Ignoring delay on this delayed statement.\n #10ps assert (aa==1) passed(); else failed();\n ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:48: Unsupported: Ignoring delay on this delayed statement.\n #10ps assert (bb==1) passed(); else failed();\n ^\n%Warning-STMTDLY: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:53: Unsupported: Ignoring delay on this delayed statement.\n #10ps assert (databyte==8\'hAF) passed(); else failed();\n ^\n%Warning-STMTDLY: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:58: Unsupported: Ignoring delay on this delayed statement.\n #10ps assert ((databyte & 8\'b01000000) != 8\'d0) passed(); else failed();\n ^\n%Warning-STMTDLY: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:63: Unsupported: Ignoring delay on this delayed statement.\n #10ps assert ((databyte & 8\'h0F) == 4\'h0) passed(); else failed();\n ^\n%Warning-STMTDLY: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:68: Unsupported: Ignoring delay on this delayed statement.\n #10ps assert (datanibble == 4\'b1110) passed(); else failed();\n ^\n%Warning-STMTDLY: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:73: Unsupported: Ignoring delay on this delayed statement.\n #10ps assert ((aa == 1) && (bb == 1) && (yy == 0))  passed(); else failed();\n ^\n%Warning-STMTDLY: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:78: Unsupported: Ignoring delay on this delayed statement.\n #10ps assert (databyte == 8\'b1110_0001)  passed(); else failed();\n ^\n%Warning-STMTDLY: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:88: Unsupported: Ignoring delay on this delayed statement.\n  #10ps assert (arrayOfBits[n] == 1\'b0)  passed(); else failed();\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:94: Unsupported: Ignoring delay on this delayed statement.\n #10ps assert ((arrayOfBits[1] == 1) &&  (arrayOfBits[0] == 1))  passed(); else failed();\n ^\n%Warning-STMTDLY: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:102: Unsupported: Ignoring delay on this delayed statement.\n  #10ps assert (arrayOfNibbles[n] == 4\'b1010)  passed(); else failed();\n  ^\n%Warning-WIDTH: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:63: Operator EQ expects 8 bits on the RHS, but RHS\'s CONST \'4\'h0\' generates 4 bits.\n                                                                                                   : ... In instance task210\n #10ps assert ((databyte & 8\'h0F) == 4\'h0) passed(); else failed();\n                                  ^~\n%Error: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:84: Unsupported: Replication to form \'logic$[7:0]\' data type\n                                                                                           : ... In instance task210\n arrayOfBits[7:0] = {0, 0, 0, 0, 0, 0, 0, 0};\n                    ^\n%Warning-WIDTHCONCAT: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:84: Unsized numbers/parameters not allowed in concatenations.\n                                                                                                         : ... In instance task210\n arrayOfBits[7:0] = {0, 0, 0, 0, 0, 0, 0, 0};\n                     ^\n%Warning-WIDTHCONCAT: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:84: Unsized numbers/parameters not allowed in concatenations.\n                                                                                                         : ... In instance task210\n arrayOfBits[7:0] = {0, 0, 0, 0, 0, 0, 0, 0};\n                      ^\n%Warning-WIDTHCONCAT: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:84: Unsized numbers/parameters not allowed in concatenations.\n                                                                                                         : ... In instance task210\n arrayOfBits[7:0] = {0, 0, 0, 0, 0, 0, 0, 0};\n                         ^\n%Warning-WIDTHCONCAT: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:84: Unsized numbers/parameters not allowed in concatenations.\n                                                                                                         : ... In instance task210\n arrayOfBits[7:0] = {0, 0, 0, 0, 0, 0, 0, 0};\n                            ^\n%Warning-WIDTHCONCAT: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:84: Unsized numbers/parameters not allowed in concatenations.\n                                                                                                         : ... In instance task210\n arrayOfBits[7:0] = {0, 0, 0, 0, 0, 0, 0, 0};\n                               ^\n%Warning-WIDTHCONCAT: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:84: Unsized numbers/parameters not allowed in concatenations.\n                                                                                                         : ... In instance task210\n arrayOfBits[7:0] = {0, 0, 0, 0, 0, 0, 0, 0};\n                                  ^\n%Warning-WIDTHCONCAT: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:84: Unsized numbers/parameters not allowed in concatenations.\n                                                                                                         : ... In instance task210\n arrayOfBits[7:0] = {0, 0, 0, 0, 0, 0, 0, 0};\n                                     ^\n%Warning-WIDTHCONCAT: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:84: Unsized numbers/parameters not allowed in replications.\n                                                                                                         : ... In instance task210\n arrayOfBits[7:0] = {0, 0, 0, 0, 0, 0, 0, 0};\n                                        ^\n%Warning-WIDTH: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:84: Operator ASSIGN expects 1 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 256 or 8 bits.\n                                                                                                   : ... In instance task210\n arrayOfBits[7:0] = {0, 0, 0, 0, 0, 0, 0, 0};\n                  ^\n%Error: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:93: Unsupported: Replication to form \'logic$[1:0]\' data type\n                                                                                           : ... In instance task210\n arrayOfBits[1:0] = {1,1};\n                    ^\n%Warning-WIDTHCONCAT: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:93: Unsized numbers/parameters not allowed in concatenations.\n                                                                                                         : ... In instance task210\n arrayOfBits[1:0] = {1,1};\n                     ^\n%Warning-WIDTHCONCAT: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:93: Unsized numbers/parameters not allowed in replications.\n                                                                                                         : ... In instance task210\n arrayOfBits[1:0] = {1,1};\n                      ^\n%Warning-WIDTH: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:93: Operator ASSIGN expects 1 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 64 or 2 bits.\n                                                                                                   : ... In instance task210\n arrayOfBits[1:0] = {1,1};\n                  ^\n%Error: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:98: Unsupported: Replication to form \'logic[3:0]$[7:0]\' data type\n                                                                                           : ... In instance task210\n arrayOfNibbles[7:0] = {4\'b1010,4\'b1010,4\'b1010,4\'b1010,4\'b1010,4\'b1010,4\'b1010,4\'b1010};\n                       ^\n%Warning-WIDTH: data/full_repos/permissive/445148650/tasks/Task210-SignalManipulation/task210.sv:98: Operator ASSIGN expects 4 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 32 bits.\n                                                                                                   : ... In instance task210\n arrayOfNibbles[7:0] = {4\'b1010,4\'b1010,4\'b1010,4\'b1010,4\'b1010,4\'b1010,4\'b1010,4\'b1010};\n                     ^\n%Error: Exiting due to 3 error(s), 25 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module task210;


logic aa;
logic bb;
logic yy;


logic [7:0] databyte;
logic [3:0] datanibble;


logic arrayOfBits [7:0];
logic [3:0] arrayOfNibbles[7:0];


int testN = 0;


task passed;
	$display("Passed test %d", testN);
	testN = testN + 1;
endtask : passed

task failed;
	$display("Failed test %d", testN);
	testN = testN + 1;
endtask : failed







initial
begin
	



	aa = 1'b1;
	#10ps assert (aa==1) passed(); else failed();
	


	bb = 1'd0;
	#10ps assert (bb==1) passed(); else failed();



	databyte = 8'b10101111;
	#10ps assert (databyte==8'hAF) passed(); else failed();



	databyte[6] = 1;
	#10ps assert ((databyte & 8'b01000000) != 8'd0) passed(); else failed();



	databyte[3:0] = 4'b0000;
	#10ps assert ((databyte & 8'h0F) == 4'h0) passed(); else failed();



	datanibble = databyte[7:4];
	#10ps assert (datanibble == 4'b1110) passed(); else failed();



	{aa,bb,yy} = datanibble[2:0];
	#10ps assert ((aa == 1) && (bb == 1) && (yy == 0))  passed(); else failed();



	databyte = {datanibble, ~datanibble};
	#10ps assert (databyte == 8'b1110_0001)  passed(); else failed();





	arrayOfBits[7:0] = {0, 0, 0, 0, 0, 0, 0, 0};

	for (int n=0; n<8; n = n+1)
	begin
		#10ps assert (arrayOfBits[n] == 1'b0)  passed(); else failed();
	end



	arrayOfBits[1:0] = {1,1};
	#10ps assert ((arrayOfBits[1] == 1) &&  (arrayOfBits[0] == 1))  passed(); else failed();



	arrayOfNibbles[7:0] = {4'b1010,4'b1010,4'b1010,4'b1010,4'b1010,4'b1010,4'b1010,4'b1010};

	for (int n=0; n<8; n = n+1)
	begin
		#10ps assert (arrayOfNibbles[n] == 4'b1010)  passed(); else failed();
	end	 
end



endmodule
module task210;



logic aa;
logic bb;
logic yy;


logic [7:0] databyte;
logic [3:0] datanibble;


logic arrayOfBits [7:0];
logic [3:0] arrayOfNibbles[7:0];


int testN = 0;


task passed;
	$display("Passed test %d", testN);
	testN = testN + 1;
endtask : passed

task failed;
	$display("Failed test %d", testN);
	testN = testN + 1;
endtask : failed







initial
begin
	



	aa = 1'b1;
	#10ps assert (aa==1) passed(); else failed();
	


	bb = 1'd0;
	#10ps assert (bb==1) passed(); else failed();



	databyte = 8'b10101111;
	#10ps assert (databyte==8'hAF) passed(); else failed();



	databyte[6] = 1;
	#10ps assert ((databyte & 8'b01000000) != 8'd0) passed(); else failed();



	databyte[3:0] = 4'b0000;
	#10ps assert ((databyte & 8'h0F) == 4'h0) passed(); else failed();



	datanibble = databyte[7:4];
	#10ps assert (datanibble == 4'b1110) passed(); else failed();



	{aa,bb,yy} = datanibble[2:0];
	#10ps assert ((aa == 1) && (bb == 1) && (yy == 0))  passed(); else failed();



	databyte = {datanibble, ~datanibble};
	#10ps assert (databyte == 8'b1110_0001)  passed(); else failed();





	arrayOfBits[7:0] = {0, 0, 0, 0, 0, 0, 0, 0};

	for (int n=0; n<8; n = n+1)
	begin
		#10ps assert (arrayOfBits[n] == 1'b0)  passed(); else failed();
	end



	arrayOfBits[1:0] = {1,1};
	#10ps assert ((arrayOfBits[1] == 1) &&  (arrayOfBits[0] == 1))  passed(); else failed();



	arrayOfNibbles[7:0] = {4'b1010,4'b1010,4'b1010,4'b1010,4'b1010,4'b1010,4'b1010,4'b1010};

	for (int n=0; n<8; n = n+1)
	begin
		#10ps assert (arrayOfNibbles[n] == 4'b1010)  passed(); else failed();
	end	 
end



endmodule