data/full_repos/permissive/194847941/demo/2_Buttons&LED/switch_LED_tdread.v
1: b'%Warning-PINMISSING: data/full_repos/permissive/194847941/demo/2_Buttons&LED/switch_LED_tdread.v:55: Cell has missing pin: \'en\'\n  reg_ar_as_w16 reg0 (\n                ^~~~\n                     ... Use "/* verilator lint_off PINMISSING */" and lint_on around source to disable this message.\n%Warning-PINMISSING: data/full_repos/permissive/194847941/demo/2_Buttons&LED/switch_LED_tdread.v:245: Cell has missing pin: \'en\'\n  reg_ar_as_w5 reg0 (\n               ^~~~\n%Warning-PINMISSING: data/full_repos/permissive/194847941/demo/2_Buttons&LED/switch_LED_tdread.v:251: Cell has missing pin: \'en\'\n  reg_ar_as_w19 reg1 (\n                ^~~~\n%Warning-PINMISSING: data/full_repos/permissive/194847941/demo/2_Buttons&LED/switch_LED_tdread.v:257: Cell has missing pin: \'en\'\n  reg_ar_as_w5 reg2 (\n               ^~~~\n%Warning-PINMISSING: data/full_repos/permissive/194847941/demo/2_Buttons&LED/switch_LED_tdread.v:263: Cell has missing pin: \'en\'\n  reg_ar_as_w5 reg3 (\n               ^~~~\n%Warning-PINMISSING: data/full_repos/permissive/194847941/demo/2_Buttons&LED/switch_LED_tdread.v:269: Cell has missing pin: \'en\'\n  reg_ar_as_w5 reg4 (\n               ^~~~\n%Warning-PINMISSING: data/full_repos/permissive/194847941/demo/2_Buttons&LED/switch_LED_tdread.v:330: Cell has missing pin: \'en\'\n  reg_ar_as_w4 reg0 (\n               ^~~~\n%Error: Exiting due to 7 warning(s)\n'
module switch_LED
  (
  btn,
  clk_24M,
  led
  );

  input [4:0] btn;
  input clk_24M;
  output [15:0] led;

  wire [4:0] key_pulse;
  wire [2:0] n1;
  wire [15:0] n10;
  wire [2:0] n2;
  wire [2:0] n3;
  wire [2:0] n4;
  wire [3:0] n5;
  wire [3:0] n6;
  wire [6:0] n7;
  wire [9:0] n8;
  wire [12:0] n9;
  wire n0;
  wire rst_n;

  binary_mux_s1_w4 mux0 (
    .i0(led[15:12]),
    .i1(n5),
    .sel(key_pulse[4]),
    .o(n6));
  binary_mux_s1_w7 mux1 (
    .i0({n6,led[11:9]}),
    .i1({led[15:12],n4}),
    .sel(key_pulse[3]),
    .o(n7));
  binary_mux_s1_w10 mux2 (
    .i0({n7,led[8:6]}),
    .i1({led[15:9],n3}),
    .sel(key_pulse[2]),
    .o(n8));
  binary_mux_s1_w16 mux3 (
    .i0({n9,led[2:0]}),
    .i1({led[15:3],n1}),
    .sel(key_pulse[0]),
    .o(n10));
  binary_mux_s1_w13 mux4 (
    .i0({n8,led[5:3]}),
    .i1({led[15:6],n2}),
    .sel(key_pulse[1]),
    .o(n9));
  reg_ar_as_w16 reg0 (
    .clk(clk_24M),
    .d(n10),
    .reset(16'b0000000000000000),
    .set({n0,n0,n0,n0,n0,n0,n0,n0,n0,n0,n0,n0,n0,n0,n0,n0}),
    .q(led));
  not u0 (n4[1], led[10]);
  not u1 (n5[3], led[15]);
  not u10 (n4[2], led[11]);
  not u11 (n3[1], led[7]);
  not u12 (n3[2], led[8]);
  not u13 (n2[1], led[4]);
  not u14 (n2[2], led[5]);
  not u15 (n1[1], led[1]);
  not u16 (n1[2], led[2]);
  not u2 (n5[2], led[14]);
  not u3 (n5[1], led[13]);
  not u4 (n5[0], led[12]);
  not u5 (n0, rst_n);
  not u6 (n1[0], led[0]);
  not u7 (n2[0], led[3]);
  not u8 (n3[0], led[6]);
  not u9 (n4[0], led[9]);
  \debounce(N=5)  ux_btn (
    .clk(clk_24M),
    .key(btn),
    .rst(rst_n),
    .key_pulse(key_pulse));
  rst_int ux_rst (
    .sclk(clk_24M),
    .rst_n(rst_n));

endmodule
module switch_LED
  (
  btn,
  clk_24M,
  led
  );


  input [4:0] btn;
  input clk_24M;
  output [15:0] led;

  wire [4:0] key_pulse;
  wire [2:0] n1;
  wire [15:0] n10;
  wire [2:0] n2;
  wire [2:0] n3;
  wire [2:0] n4;
  wire [3:0] n5;
  wire [3:0] n6;
  wire [6:0] n7;
  wire [9:0] n8;
  wire [12:0] n9;
  wire n0;
  wire rst_n;

  binary_mux_s1_w4 mux0 (
    .i0(led[15:12]),
    .i1(n5),
    .sel(key_pulse[4]),
    .o(n6));
  binary_mux_s1_w7 mux1 (
    .i0({n6,led[11:9]}),
    .i1({led[15:12],n4}),
    .sel(key_pulse[3]),
    .o(n7));
  binary_mux_s1_w10 mux2 (
    .i0({n7,led[8:6]}),
    .i1({led[15:9],n3}),
    .sel(key_pulse[2]),
    .o(n8));
  binary_mux_s1_w16 mux3 (
    .i0({n9,led[2:0]}),
    .i1({led[15:3],n1}),
    .sel(key_pulse[0]),
    .o(n10));
  binary_mux_s1_w13 mux4 (
    .i0({n8,led[5:3]}),
    .i1({led[15:6],n2}),
    .sel(key_pulse[1]),
    .o(n9));
  reg_ar_as_w16 reg0 (
    .clk(clk_24M),
    .d(n10),
    .reset(16'b0000000000000000),
    .set({n0,n0,n0,n0,n0,n0,n0,n0,n0,n0,n0,n0,n0,n0,n0,n0}),
    .q(led));
  not u0 (n4[1], led[10]);
  not u1 (n5[3], led[15]);
  not u10 (n4[2], led[11]);
  not u11 (n3[1], led[7]);
  not u12 (n3[2], led[8]);
  not u13 (n2[1], led[4]);
  not u14 (n2[2], led[5]);
  not u15 (n1[1], led[1]);
  not u16 (n1[2], led[2]);
  not u2 (n5[2], led[14]);
  not u3 (n5[1], led[13]);
  not u4 (n5[0], led[12]);
  not u5 (n0, rst_n);
  not u6 (n1[0], led[0]);
  not u7 (n2[0], led[3]);
  not u8 (n3[0], led[6]);
  not u9 (n4[0], led[9]);
  \debounce(N=5)  ux_btn (
    .clk(clk_24M),
    .key(btn),
    .rst(rst_n),
    .key_pulse(key_pulse));
  rst_int ux_rst (
    .sclk(clk_24M),
    .rst_n(rst_n));

endmodule