data/full_repos/permissive/178355189/mojo_top.v
1: b'%Warning-IMPLICIT: data/full_repos/permissive/178355189/mojo_top.v:97: Signal definition not found, creating implicitly: \'mem_dina\'\n                                                                     : ... Suggested alternative: \'mem_dinb\'\n  assign mem_dina = 8\'h00;\n         ^~~~~~~~\n                   ... Use "/* verilator lint_off IMPLICIT */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/178355189/mojo_top.v:51: Cannot find file containing module: \'reset_conditioner\'\n  reset_conditioner reset_cond (\n  ^~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/178355189,data/full_repos/permissive/178355189/reset_conditioner\n             data/full_repos/permissive/178355189,data/full_repos/permissive/178355189/reset_conditioner.v\n             data/full_repos/permissive/178355189,data/full_repos/permissive/178355189/reset_conditioner.sv\n             reset_conditioner\n             reset_conditioner.v\n             reset_conditioner.sv\n             obj_dir/reset_conditioner\n             obj_dir/reset_conditioner.v\n             obj_dir/reset_conditioner.sv\n%Error: data/full_repos/permissive/178355189/mojo_top.v:69: Cannot find file containing module: \'blk_mem_gen_v7_3\'\n  blk_mem_gen_v7_3 blk_mem (.clka(clk), .rsta(rst), .wea(mem_wea),\n  ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/178355189/mojo_top.v:81: Cannot find file containing module: \'spi_slave\'\n  spi_slave spi_out (\n  ^~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/178355189/mojo_top.v:97: Operator ASSIGNW expects 1 bits on the Assign RHS, but Assign RHS\'s CONST \'8\'h0\' generates 8 bits.\n                                                                  : ... In instance mojo_top\n  assign mem_dina = 8\'h00;\n                  ^\n%Error: data/full_repos/permissive/178355189/mojo_top.v:101: Cannot find file containing module: \'spi_memory\'\n  spi_memory #(.ADDRESS_WIDTH(13)) memory (\n  ^~~~~~~~~~\n%Error: data/full_repos/permissive/178355189/mojo_top.v:123: Cannot find file containing module: \'LedStripDriver\'\n  LedStripDriver #(.BASE_ADDRESS(0), .MEMORY_READ_ENABLE_DELAY(1)) strip_driver_1 (\n  ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/178355189/mojo_top.v:134: Cannot find file containing module: \'LedStripDriver\'\n  LedStripDriver #(.BASE_ADDRESS(600), .MEMORY_READ_ENABLE_DELAY(10)) strip_driver_2 (\n  ^~~~~~~~~~~~~~\n%Error: Exiting due to 6 error(s), 2 warning(s)\n'
module mojo_top (
    input clk,
    input rst_n,
    output [7:0] led,
    output spi_miso,
    input spi_ss,
    input spi_mosi,
    input spi_sck,

    output s_spi_miso,
    input s_spi_ss,
    input s_spi_mosi,
    inout s_spi_clk,

    input avr_tx,
    output avr_rx,
    input avr_rx_busy,
    output led_strip_do_1,
    output led_strip_do_2
  );

  assign led = 8'h00;

  wire rst, rst_unconditioned;

  assign rst_unconditioned = ~rst_n;

  reset_conditioner reset_cond (
    .clk(clk),
    .in(rst_unconditioned),
    .out(rst)
  );

  wire mem_wea;
  wire[12:0] mem_addra;
  wire[7:0] mem_douta;

  wire mem_web;
  wire[12:0] mem_addrb;
  wire[7:0] mem_dinb;
  wire[7:0] mem_doutb;


  assign spi_miso = 1'bz;

  blk_mem_gen_v7_3 blk_mem (.clka(clk), .rsta(rst), .wea(mem_wea),
                   .addra(mem_addra), .dina(mem_dina), .douta(mem_douta),
                   .clkb(clk), .rstb(rst), .web(mem_web),
                   .addrb(mem_addrb), .dinb(mem_dinb), .doutb(mem_doutb));

  wire[7:0] spi_din;
  wire spi_done;
  wire[7:0] spi_dout;


  wire spi_selected;

  spi_slave spi_out (
    .clk(clk),
    .din(spi_din),
    .done(spi_done),
    .dout(spi_dout),
    .miso(s_spi_miso),
    .mosi(s_spi_mosi),
    .rst(rst),
    .sck(s_spi_clk),
    .ss(s_spi_ss),
    .selected(spi_selected)
  );


  assign mem_wea = 0;

  assign mem_dina = 8'h00;

  assign avr_rx = 1'bz;

  spi_memory #(.ADDRESS_WIDTH(13)) memory (
    .clk(clk),
    .rst(rst),


    .spi_din(spi_din),
    .spi_dout(spi_dout),
    .spi_done(spi_done),
    .spi_selected(spi_selected),


    .mem_we(mem_web),
    .mem_din(mem_dinb),
    .mem_dout(mem_doutb),
    .mem_addr(mem_addrb)
  );

  wire strip_driver_1_mem_en;
  wire strip_driver_2_mem_en;
  wire [12:0] mem_addr_strip_1;
  wire [12:0] mem_addr_strip_2;

  LedStripDriver #(.BASE_ADDRESS(0), .MEMORY_READ_ENABLE_DELAY(1)) strip_driver_1 (
      .clk(clk),
      .rst(rst),

      .mem_addr(mem_addr_strip_1),
      .mem_data(mem_douta),
      .mem_read_enable(strip_driver_1_mem_en),

      .strip_out(led_strip_do_1)
  );

  LedStripDriver #(.BASE_ADDRESS(600), .MEMORY_READ_ENABLE_DELAY(10)) strip_driver_2 (
      .clk(clk),
      .rst(rst),

      .mem_addr(mem_addr_strip_2),
      .mem_data(mem_douta),
      .mem_read_enable(strip_driver_2_mem_en),

      .strip_out(led_strip_do_2)
  );

  assign mem_addra = strip_driver_1_mem_en ? mem_addr_strip_1 : mem_addr_strip_2;
















endmodule
module mojo_top (
    input clk,
    input rst_n,
    output [7:0] led,
    output spi_miso,
    input spi_ss,
    input spi_mosi,
    input spi_sck,

    output s_spi_miso,
    input s_spi_ss,
    input s_spi_mosi,
    inout s_spi_clk,

    input avr_tx,
    output avr_rx,
    input avr_rx_busy,
    output led_strip_do_1,
    output led_strip_do_2
  );


  assign led = 8'h00;

  wire rst, rst_unconditioned;

  assign rst_unconditioned = ~rst_n;

  reset_conditioner reset_cond (
    .clk(clk),
    .in(rst_unconditioned),
    .out(rst)
  );

  wire mem_wea;
  wire[12:0] mem_addra;
  wire[7:0] mem_douta;

  wire mem_web;
  wire[12:0] mem_addrb;
  wire[7:0] mem_dinb;
  wire[7:0] mem_doutb;


  assign spi_miso = 1'bz;

  blk_mem_gen_v7_3 blk_mem (.clka(clk), .rsta(rst), .wea(mem_wea),
                   .addra(mem_addra), .dina(mem_dina), .douta(mem_douta),
                   .clkb(clk), .rstb(rst), .web(mem_web),
                   .addrb(mem_addrb), .dinb(mem_dinb), .doutb(mem_doutb));

  wire[7:0] spi_din;
  wire spi_done;
  wire[7:0] spi_dout;


  wire spi_selected;

  spi_slave spi_out (
    .clk(clk),
    .din(spi_din),
    .done(spi_done),
    .dout(spi_dout),
    .miso(s_spi_miso),
    .mosi(s_spi_mosi),
    .rst(rst),
    .sck(s_spi_clk),
    .ss(s_spi_ss),
    .selected(spi_selected)
  );


  assign mem_wea = 0;

  assign mem_dina = 8'h00;

  assign avr_rx = 1'bz;

  spi_memory #(.ADDRESS_WIDTH(13)) memory (
    .clk(clk),
    .rst(rst),


    .spi_din(spi_din),
    .spi_dout(spi_dout),
    .spi_done(spi_done),
    .spi_selected(spi_selected),


    .mem_we(mem_web),
    .mem_din(mem_dinb),
    .mem_dout(mem_doutb),
    .mem_addr(mem_addrb)
  );

  wire strip_driver_1_mem_en;
  wire strip_driver_2_mem_en;
  wire [12:0] mem_addr_strip_1;
  wire [12:0] mem_addr_strip_2;

  LedStripDriver #(.BASE_ADDRESS(0), .MEMORY_READ_ENABLE_DELAY(1)) strip_driver_1 (
      .clk(clk),
      .rst(rst),

      .mem_addr(mem_addr_strip_1),
      .mem_data(mem_douta),
      .mem_read_enable(strip_driver_1_mem_en),

      .strip_out(led_strip_do_1)
  );

  LedStripDriver #(.BASE_ADDRESS(600), .MEMORY_READ_ENABLE_DELAY(10)) strip_driver_2 (
      .clk(clk),
      .rst(rst),

      .mem_addr(mem_addr_strip_2),
      .mem_data(mem_douta),
      .mem_read_enable(strip_driver_2_mem_en),

      .strip_out(led_strip_do_2)
  );

  assign mem_addra = strip_driver_1_mem_en ? mem_addr_strip_1 : mem_addr_strip_2;
















endmodule