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 scan_2_7seg (scan, ss);
  input  [7:0] scan;
  output [7:0] ss;

  
  assign ss = (scan == 8'h45) ? 8'b01111110 :
              (scan == 8'h16) ? 8'b00110000 :
              (scan == 8'h1E) ? 8'b01101101 :
              (scan == 8'h26) ? 8'b01111001 :
              (scan == 8'h25) ? 8'b00110011 :
              (scan == 8'h2E) ? 8'b01011011 :
              (scan == 8'h36) ? 8'b01011111 :
              (scan == 8'h3D) ? 8'b01110010 :
              (scan == 8'h3E) ? 8'b01111111 :
              (scan == 8'h46) ? 8'b01111011 : 8'b10000000 ;
endmodule
module scan_2_7seg (scan, ss);

  input  [7:0] scan;
  output [7:0] ss;

  
  assign ss = (scan == 8'h45) ? 8'b01111110 :
              (scan == 8'h16) ? 8'b00110000 :
              (scan == 8'h1E) ? 8'b01101101 :
              (scan == 8'h26) ? 8'b01111001 :
              (scan == 8'h25) ? 8'b00110011 :
              (scan == 8'h2E) ? 8'b01011011 :
              (scan == 8'h36) ? 8'b01011111 :
              (scan == 8'h3D) ? 8'b01110010 :
              (scan == 8'h3E) ? 8'b01111111 :
              (scan == 8'h46) ? 8'b01111011 : 8'b10000000 ;
endmodule