data/full_repos/permissive/168578692/my_Top.v
1: b'%Warning-IMPLICIT: data/full_repos/permissive/168578692/my_Top.v:38: Signal definition not found, creating implicitly: \'clock100MHz\'\n                                                                   : ... Suggested alternative: \'clock1000MHz\'\nassign clock100MHz = clk;\n       ^~~~~~~~~~~\n                   ... Use "/* verilator lint_off IMPLICIT */" and lint_on around source to disable this message.\n%Warning-IMPLICIT: data/full_repos/permissive/168578692/my_Top.v:45: Signal definition not found, creating implicitly: \'segememt\'\n                                                                   : ... Suggested alternative: \'segment\'\nassign segememt = seg;\n       ^~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/168578692/my_Top.v:45: Operator ASSIGNW expects 1 bits on the Assign RHS, but Assign RHS\'s VARREF \'seg\' generates 7 bits.\n                                                                : ... In instance my_Top\nassign segememt = seg;\n                ^\n%Warning-WIDTH: data/full_repos/permissive/168578692/my_Top.v:46: Logical Operator LOGNOT expects 1 bit on the LHS, but LHS\'s AND generates 32 or 4 bits.\n                                                                : ... In instance my_Top\nassign dp = !(4\'b0010 & (1<<state));\n            ^\n%Error: data/full_repos/permissive/168578692/my_Top.v:54: Cannot find file containing module: \'DeMux2to4L\'\nDeMux2to4L demultiplexer(\n^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/168578692,data/full_repos/permissive/168578692/DeMux2to4L\n             data/full_repos/permissive/168578692,data/full_repos/permissive/168578692/DeMux2to4L.v\n             data/full_repos/permissive/168578692,data/full_repos/permissive/168578692/DeMux2to4L.sv\n             DeMux2to4L\n             DeMux2to4L.v\n             DeMux2to4L.sv\n             obj_dir/DeMux2to4L\n             obj_dir/DeMux2to4L.v\n             obj_dir/DeMux2to4L.sv\n%Error: data/full_repos/permissive/168578692/my_Top.v:65: Cannot find file containing module: \'Display_Driver\'\nDisplay_Driver d_Driver(\n^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/168578692/my_Top.v:80: Cannot find file containing module: \'Mux4to1x5\'\nMux4to1x5 multiplexer(\n^~~~~~~~~\n%Error: data/full_repos/permissive/168578692/my_Top.v:101: Cannot find file containing module: \'Control\'\nControl state_Machine(\n^~~~~~~\n%Error: data/full_repos/permissive/168578692/my_Top.v:119: Cannot find file containing module: \'Xlate_hx\'\nXlate_hx hex_Coder(\n^~~~~~~~\n%Error: data/full_repos/permissive/168578692/my_Top.v:131: Cannot find file containing module: \'Divider\'\nDivider divide_Clock(\n^~~~~~~\n%Error: data/full_repos/permissive/168578692/my_Top.v:145: Cannot find file containing module: \'BCD_Counter\'\nBCD_Counter hundredths(\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/168578692/my_Top.v:153: Cannot find file containing module: \'BCD_Counter\'\nBCD_Counter tenths(\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/168578692/my_Top.v:161: Cannot find file containing module: \'BCD_Counter\'\nBCD_Counter ones(\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/168578692/my_Top.v:169: Cannot find file containing module: \'BCD_Counter\'\nBCD_Counter tens(\n^~~~~~~~~~~\n%Error: Exiting due to 10 error(s), 4 warning(s)\n'
module my_Top(

  input clk,
  input btnU,
  input btnD,
  input btnL,
  input btnR,
  input btnC,
  output dp,
  output [3:0] an,
  output [6:0] seg
);


wire clock1000MHz;
wire up_Button;
wire down_Button;
wire right_Button;
wire left_Button;
wire center_Button;
wire decimal;
wire [3:0] display;
wire [6:0] segment;
wire [1:0] state;
wire [3:0] sec_Tens;
wire [3:0] sec_Ones;
wire [3:0] sec_Tenths;
wire [3:0] sec_Hundredths;
wire [3:0] seconds;
wire ten_Nano_Clock;
wire count_Enable;
wire tenths_Enable;
wire ones_Enable;
wire tens_Enable;
wire n_Enable;


assign clock100MHz = clk;
assign up_Button = btnU;
assign down_Button = btnD;
assign right_Button = btnR;
assign left_Button = btnL;
assign center_Button = btnC;
assign display = an;
assign segememt = seg;
assign dp = !(4'b0010 & (1<<state));


DeMux2to4L demultiplexer(
  .select_State(state),
  .display_Drive(display)
);


Display_Driver d_Driver(
  .clock(clock100MHz),
  .select_State(state)
);


Mux4to1x5 multiplexer(
  .select_State(state),
  .tens_Place(sec_Tens),
  .ones_Place(sec_Ones),
  .tenths_Place(sec_Tenths),
  .hundredths_Place(sec_Hundredths),
  .current_Select(seconds)
);


Control state_Machine(
  .clock100MHz(clock100MHz),
  .clock_Divided(ten_Nano_Clock),
  .start(up_Button),
  .down_Button(down_Button),
  .right_Pause(right_Button),
  .left_Pause(left_Button),
  .clear(center_Button),
  .count_Enable(count_Enable)
);


Xlate_hx hex_Coder(
  .hex_Encoding(seconds),
  .segments(segment),
  .decimal(decimal)
);



Divider divide_Clock(
  .clock(clock100MHz),
  .divided_Clock(ten_Nano_Clock)
);


BCD_Counter hundredths(
  .clock(ten_Nano_Clock),
  .clear(center_Button),
  .enable_Count(count_Enable),
  .carry_Over(tenths_Enable),
  .counter(sec_Hundredths)
);

BCD_Counter tenths(
  .clock(ten_Nano_Clock),
  .clear(center_Button),
  .enable_Count(tenths_Enable),
  .carry_Over(ones_Enable),
  .counter(sec_Tenths)
);

BCD_Counter ones(
  .clock(ten_Nano_Clock),
  .clear(center_Button),
  .enable_Count(ones_Enable),
  .carry_Over(tens_Enable),
  .counter(sec_Ones)
);

BCD_Counter tens(
  .clock(ten_Nano_Clock),
  .clear(center_Button),
  .enable_Count(tens_Enable),
  .carry_Over(n_Enable),
  .counter(sec_Tens)
);

endmodule
module my_Top(

  input clk,
  input btnU,
  input btnD,
  input btnL,
  input btnR,
  input btnC,
  output dp,
  output [3:0] an,
  output [6:0] seg
);



wire clock1000MHz;
wire up_Button;
wire down_Button;
wire right_Button;
wire left_Button;
wire center_Button;
wire decimal;
wire [3:0] display;
wire [6:0] segment;
wire [1:0] state;
wire [3:0] sec_Tens;
wire [3:0] sec_Ones;
wire [3:0] sec_Tenths;
wire [3:0] sec_Hundredths;
wire [3:0] seconds;
wire ten_Nano_Clock;
wire count_Enable;
wire tenths_Enable;
wire ones_Enable;
wire tens_Enable;
wire n_Enable;


assign clock100MHz = clk;
assign up_Button = btnU;
assign down_Button = btnD;
assign right_Button = btnR;
assign left_Button = btnL;
assign center_Button = btnC;
assign display = an;
assign segememt = seg;
assign dp = !(4'b0010 & (1<<state));


DeMux2to4L demultiplexer(
  .select_State(state),
  .display_Drive(display)
);


Display_Driver d_Driver(
  .clock(clock100MHz),
  .select_State(state)
);


Mux4to1x5 multiplexer(
  .select_State(state),
  .tens_Place(sec_Tens),
  .ones_Place(sec_Ones),
  .tenths_Place(sec_Tenths),
  .hundredths_Place(sec_Hundredths),
  .current_Select(seconds)
);


Control state_Machine(
  .clock100MHz(clock100MHz),
  .clock_Divided(ten_Nano_Clock),
  .start(up_Button),
  .down_Button(down_Button),
  .right_Pause(right_Button),
  .left_Pause(left_Button),
  .clear(center_Button),
  .count_Enable(count_Enable)
);


Xlate_hx hex_Coder(
  .hex_Encoding(seconds),
  .segments(segment),
  .decimal(decimal)
);



Divider divide_Clock(
  .clock(clock100MHz),
  .divided_Clock(ten_Nano_Clock)
);


BCD_Counter hundredths(
  .clock(ten_Nano_Clock),
  .clear(center_Button),
  .enable_Count(count_Enable),
  .carry_Over(tenths_Enable),
  .counter(sec_Hundredths)
);

BCD_Counter tenths(
  .clock(ten_Nano_Clock),
  .clear(center_Button),
  .enable_Count(tenths_Enable),
  .carry_Over(ones_Enable),
  .counter(sec_Tenths)
);

BCD_Counter ones(
  .clock(ten_Nano_Clock),
  .clear(center_Button),
  .enable_Count(ones_Enable),
  .carry_Over(tens_Enable),
  .counter(sec_Ones)
);

BCD_Counter tens(
  .clock(ten_Nano_Clock),
  .clear(center_Button),
  .enable_Count(tens_Enable),
  .carry_Over(n_Enable),
  .counter(sec_Tens)
);

endmodule