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_bin(ss, bin);
  input  [7:0] ss;
  output [3:0] bin;
  wire [3:0] bin;
  
  assign bin =
              (ss == 8'h16)? 4'b0001 :
              (ss == 8'h1E)? 4'b0010 :
              (ss == 8'h26)? 4'b0011 :
              (ss == 8'h25)? 4'b0100 :
              (ss == 8'h2E)? 4'b0101 :
              (ss == 8'h36)? 4'b0110 :
              (ss == 8'h3D)? 4'b0111 :
              (ss == 8'h3E)? 4'b1000 :
			  (ss == 8'h46)? 4'b1001 :
			  (ss == 8'h2D)? 4'b1010 :
			  (ss == 8'h34)? 4'b1011 :
			  (ss == 8'h32)? 4'b1100 : 4'b0000;
			  
endmodule
module scan_2_bin(ss, bin);

  input  [7:0] ss;
  output [3:0] bin;
  wire [3:0] bin;
  
  assign bin =
              (ss == 8'h16)? 4'b0001 :
              (ss == 8'h1E)? 4'b0010 :
              (ss == 8'h26)? 4'b0011 :
              (ss == 8'h25)? 4'b0100 :
              (ss == 8'h2E)? 4'b0101 :
              (ss == 8'h36)? 4'b0110 :
              (ss == 8'h3D)? 4'b0111 :
              (ss == 8'h3E)? 4'b1000 :
			  (ss == 8'h46)? 4'b1001 :
			  (ss == 8'h2D)? 4'b1010 :
			  (ss == 8'h34)? 4'b1011 :
			  (ss == 8'h32)? 4'b1100 : 4'b0000;
			  
endmodule