data/full_repos/permissive/455874613/Projects/Module04/WindowShadeDegree.v
data/verilator_xmls/312a3a43-65ea-4cf0-a1da-dcd8bed65001.xml
module WindowShadeDegree (
	input  [3:0] tcode  ,
	input  [3:0] ulight ,
	output reg [3:0] wshade
);

	always @ (tcode)
	begin
		case (tcode)
			4'b0000 : wshade = 4'b0000;
			4'b0001 : wshade = 4'b1111;
			4'b0010 : wshade = 4'b1100;
			4'b0100 : wshade = ulight;
			4'b1000 : wshade = 4'b0000;
		endcase
	end

endmodule
module WindowShadeDegree (
	input  [3:0] tcode  ,
	input  [3:0] ulight ,
	output reg [3:0] wshade
);


	always @ (tcode)
	begin
		case (tcode)
			4'b0000 : wshade = 4'b0000;
			4'b0001 : wshade = 4'b1111;
			4'b0010 : wshade = 4'b1100;
			4'b0100 : wshade = ulight;
			4'b1000 : wshade = 4'b0000;
		endcase
	end

endmodule