data/full_repos/permissive/455874613/Projects/Module04/ActiveLamps.v
data/verilator_xmls/891316d1-42cf-4bc9-9033-23947794219b.xml
module ActiveLamps (
	input  [3:0] tcode  ,
	input  [3:0] ulight ,
   input  [3:0] lenght     ,
	output reg[3:0] active_lights
);
	 
	always @ (tcode) begin
		case (tcode)
			4'b0000 : active_lights = 4'b0000;
			4'b0001 : active_lights = 4'b0000;
			4'b0010 : active_lights = 4'b0000;
			4'b0100 : active_lights = lenght / 4;
			4'b1000 : active_lights = ulight;
		endcase		
	end

endmodule
module ActiveLamps (
	input  [3:0] tcode  ,
	input  [3:0] ulight ,
   input  [3:0] lenght     ,
	output reg[3:0] active_lights
);

	 
	always @ (tcode) begin
		case (tcode)
			4'b0000 : active_lights = 4'b0000;
			4'b0001 : active_lights = 4'b0000;
			4'b0010 : active_lights = 4'b0000;
			4'b0100 : active_lights = lenght / 4;
			4'b1000 : active_lights = ulight;
		endcase		
	end

endmodule