data/full_repos/permissive/127311496/src/platform/SWORD4/Seg7Device.v
1: b"%Error: data/full_repos/permissive/127311496/src/platform/SWORD4/Seg7Device.v:22: Cannot find file containing module: 'ShiftReg'\n ShiftReg #(.WIDTH(64), .ONTIME(12'hC00)) U2(.clk(clkIO), .pdata(dispData), .sout(sout));\n ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/127311496/src/platform/SWORD4,data/full_repos/permissive/127311496/ShiftReg\n             data/full_repos/permissive/127311496/src/platform/SWORD4,data/full_repos/permissive/127311496/ShiftReg.v\n             data/full_repos/permissive/127311496/src/platform/SWORD4,data/full_repos/permissive/127311496/ShiftReg.sv\n             ShiftReg\n             ShiftReg.v\n             ShiftReg.sv\n             obj_dir/ShiftReg\n             obj_dir/ShiftReg.v\n             obj_dir/ShiftReg.sv\n%Error: Exiting due to 1 error(s)\n"
module SegmentDecoder(
	input [3:0] hex, output reg [6:0] segment
);

	always @*
	begin
		case(hex)
			4'h0: segment[6:0] <= 7'b1000000;
			4'h1: segment[6:0] <= 7'b1111001;
			4'h2: segment[6:0] <= 7'b0100100;
			4'h3: segment[6:0] <= 7'b0110000;
			4'h4: segment[6:0] <= 7'b0011001;
			4'h5: segment[6:0] <= 7'b0010010;
			4'h6: segment[6:0] <= 7'b0000010;
			4'h7: segment[6:0] <= 7'b1111000;
			4'h8: segment[6:0] <= 7'b0000000;
			4'h9: segment[6:0] <= 7'b0010000;
			4'hA: segment[6:0] <= 7'b0001000;
			4'hB: segment[6:0] <= 7'b0000011;
			4'hC: segment[6:0] <= 7'b1000110;
			4'hD: segment[6:0] <= 7'b0100001;
			4'hE: segment[6:0] <= 7'b0000110;
			4'hF: segment[6:0] <= 7'b0001110;
		endcase
	end

endmodule
module SegmentDecoder(
	input [3:0] hex, output reg [6:0] segment
);


	always @*
	begin
		case(hex)
			4'h0: segment[6:0] <= 7'b1000000;
			4'h1: segment[6:0] <= 7'b1111001;
			4'h2: segment[6:0] <= 7'b0100100;
			4'h3: segment[6:0] <= 7'b0110000;
			4'h4: segment[6:0] <= 7'b0011001;
			4'h5: segment[6:0] <= 7'b0010010;
			4'h6: segment[6:0] <= 7'b0000010;
			4'h7: segment[6:0] <= 7'b1111000;
			4'h8: segment[6:0] <= 7'b0000000;
			4'h9: segment[6:0] <= 7'b0010000;
			4'hA: segment[6:0] <= 7'b0001000;
			4'hB: segment[6:0] <= 7'b0000011;
			4'hC: segment[6:0] <= 7'b1000110;
			4'hD: segment[6:0] <= 7'b0100001;
			4'hE: segment[6:0] <= 7'b0000110;
			4'hF: segment[6:0] <= 7'b0001110;
		endcase
	end

endmodule