data/full_repos/permissive/106596430/hex2seg.v
data/verilator_xmls/5bae6df0-6f61-4f99-9378-35f9940171b4.xml
module hex2seg (
   input [3:0] number,
   output reg [6:0] pattern );
   

   always @ (number)
      case(number)
         4'h0:  pattern = 7'b0000001;
         4'h1:  pattern = 7'b1001111;
         4'h2:  pattern = 7'b0010010;
         4'h3:  pattern = 7'b0000110;
         4'h4:  pattern = 7'b1001100;
         4'h5:  pattern = 7'b0100100;
         4'h6:  pattern = 7'b0100000;
         4'h7:  pattern = 7'b0001111;
         4'h8:  pattern = 7'b0000000;
         4'h9:  pattern = 7'b0000100;
         4'hA:  pattern = 7'b0001000;
         4'hB:  pattern = 7'b1100000;
         4'hC:  pattern = 7'b0110001;
         4'hD:  pattern = 7'b1000010;
         4'hE:  pattern = 7'b0110000;
         4'hF:  pattern = 7'b0111000;
      endcase

endmodule
module hex2seg (
   input [3:0] number,
   output reg [6:0] pattern );

   

   always @ (number)
      case(number)
         4'h0:  pattern = 7'b0000001;
         4'h1:  pattern = 7'b1001111;
         4'h2:  pattern = 7'b0010010;
         4'h3:  pattern = 7'b0000110;
         4'h4:  pattern = 7'b1001100;
         4'h5:  pattern = 7'b0100100;
         4'h6:  pattern = 7'b0100000;
         4'h7:  pattern = 7'b0001111;
         4'h8:  pattern = 7'b0000000;
         4'h9:  pattern = 7'b0000100;
         4'hA:  pattern = 7'b0001000;
         4'hB:  pattern = 7'b1100000;
         4'hC:  pattern = 7'b0110001;
         4'hD:  pattern = 7'b1000010;
         4'hE:  pattern = 7'b0110000;
         4'hF:  pattern = 7'b0111000;
      endcase

endmodule