data/full_repos/permissive/451577625/system/decoder_4_to_16.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:58: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:60: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:62: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:64: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:66: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:68: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:70: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:72: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:74: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:76: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:78: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:80: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:82: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Warning-STMTDLY: data/full_repos/permissive/451577625/system/decoder_4_to_16.v:84: Unsupported: Ignoring delay on this delayed statement.\n #period\n ^\n%Error: Exiting due to 14 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module decoder_4_to_16 (
	input [3:0] in_4,
	output [15:0] out_16,
	input in_enable
);

reg [15:0] decode_out;

always @ (in_enable or in_4)
begin
	decode_out = 0;
	if(in_enable) begin
		case (in_4 [3:0])
			4'h0 : decode_out <= 16'h0001;
			4'h1 : decode_out <= 16'h0002;
			4'h2 : decode_out <= 16'h0004;
			4'h3 : decode_out <= 16'h0008;
			4'h4 : decode_out <= 16'h0010;
			4'h5 : decode_out <= 16'h0020;
			4'h6 : decode_out <= 16'h0040;
			4'h7 : decode_out <= 16'h0080;
			4'h8 : decode_out <= 16'h0100;
			4'h9 : decode_out <= 16'h0200;
			4'hA : decode_out <= 16'h0400;
			4'hB : decode_out <= 16'h0800;
			4'hC : decode_out <= 16'h1000;
			4'hD : decode_out <= 16'h2000;
			4'hE : decode_out <= 16'h4000;
			4'hF : decode_out <= 16'h8000;
		endcase
	end
	
end

assign out_16 [15:0] = decode_out [15:0];

endmodule
module decoder_4_to_16 (
	input [3:0] in_4,
	output [15:0] out_16,
	input in_enable
);


reg [15:0] decode_out;

always @ (in_enable or in_4)
begin
	decode_out = 0;
	if(in_enable) begin
		case (in_4 [3:0])
			4'h0 : decode_out <= 16'h0001;
			4'h1 : decode_out <= 16'h0002;
			4'h2 : decode_out <= 16'h0004;
			4'h3 : decode_out <= 16'h0008;
			4'h4 : decode_out <= 16'h0010;
			4'h5 : decode_out <= 16'h0020;
			4'h6 : decode_out <= 16'h0040;
			4'h7 : decode_out <= 16'h0080;
			4'h8 : decode_out <= 16'h0100;
			4'h9 : decode_out <= 16'h0200;
			4'hA : decode_out <= 16'h0400;
			4'hB : decode_out <= 16'h0800;
			4'hC : decode_out <= 16'h1000;
			4'hD : decode_out <= 16'h2000;
			4'hE : decode_out <= 16'h4000;
			4'hF : decode_out <= 16'h8000;
		endcase
	end
	
end

assign out_16 [15:0] = decode_out [15:0];

endmodule