data/full_repos/permissive/435914753/Display_kbd/scan2display.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/435914753/Display_kbd/scan2display.v:19: Multiple top level modules\n                                                                                     : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                     : ... Top module \'scan_2_7seg\'\nmodule scan_2_7seg (scan, ss);\n       ^~~~~~~~~~~\n                                                                                     : ... Top module \'scan_2_bin\'\nmodule scan_2_bin(ss, bin);\n       ^~~~~~~~~~\n                                                                                     : ... Top module \'bin2bcd\'\nmodule bin2bcd(bin, bcd);\n       ^~~~~~~\n                                                                                     : ... Top module \'bcd_2_7seg\'\nmodule bcd_2_7seg (bcd, display);\n       ^~~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module bcd_2_7seg (bcd, display);
  input  [11:0] bcd;
  output [7:0] display;

  
  assign display = (bcd  == 12'd0) ? 8'b01111110 :
              (bcd == 12'd1) ? 8'b00110000 :
              (bcd  == 12'd2) ? 8'b01101101 :
              (bcd  == 12'd3) ? 8'b01111001 :
              (bcd  == 12'd4) ? 8'b00110011 :
              (bcd  == 12'd5) ? 8'b01011011:
              (bcd  == 12'd6) ? 8'b01011111 :
              (bcd  == 12'd7) ? 8'b01110010 :
              (bcd  == 12'd8) ? 8'b01111111 :
              (bcd  == 12'd9) ? 8'b01111011 : 8'b10000000 ;
				  
				   
				  				  
endmodule
module bcd_2_7seg (bcd, display);

  input  [11:0] bcd;
  output [7:0] display;

  
  assign display = (bcd  == 12'd0) ? 8'b01111110 :
              (bcd == 12'd1) ? 8'b00110000 :
              (bcd  == 12'd2) ? 8'b01101101 :
              (bcd  == 12'd3) ? 8'b01111001 :
              (bcd  == 12'd4) ? 8'b00110011 :
              (bcd  == 12'd5) ? 8'b01011011:
              (bcd  == 12'd6) ? 8'b01011111 :
              (bcd  == 12'd7) ? 8'b01110010 :
              (bcd  == 12'd8) ? 8'b01111111 :
              (bcd  == 12'd9) ? 8'b01111011 : 8'b10000000 ;
				  
				   
				  				  
endmodule