data/full_repos/permissive/425063934/custom_layout/sim/ra_cfg_ddr.v
1: b'%Error: data/full_repos/permissive/425063934/custom_layout/sim/ra_cfg_ddr.v:26: Cannot find include file: toysram.vh\n`include "toysram.vh" \n         ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/425063934/custom_layout/sim,data/full_repos/permissive/425063934/toysram.vh\n             data/full_repos/permissive/425063934/custom_layout/sim,data/full_repos/permissive/425063934/toysram.vh.v\n             data/full_repos/permissive/425063934/custom_layout/sim,data/full_repos/permissive/425063934/toysram.vh.sv\n             toysram.vh\n             toysram.vh.v\n             toysram.vh.sv\n             obj_dir/toysram.vh\n             obj_dir/toysram.vh.v\n             obj_dir/toysram.vh.sv\n%Error: data/full_repos/permissive/425063934/custom_layout/sim/ra_cfg_ddr.v:38: Define or directive not defined: \'`GENMODE\'\n parameter GENMODE = `GENMODE;          \n                     ^~~~~~~~\n%Error: data/full_repos/permissive/425063934/custom_layout/sim/ra_cfg_ddr.v:38: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n parameter GENMODE = `GENMODE;          \n                             ^\n%Error: data/full_repos/permissive/425063934/custom_layout/sim/ra_cfg_ddr.v:39: Define or directive not defined: \'`LCBDDR_CONFIGWIDTH\'\n parameter INIT = `LCBDDR_CONFIGWIDTH\'b0;\n                  ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/425063934/custom_layout/sim/ra_cfg_ddr.v:44: Define or directive not defined: \'`LCBDDR_CONFIGWIDTH\'\n   input  [0:`LCBDDR_CONFIGWIDTH-1] cfg_dat;\n             ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/425063934/custom_layout/sim/ra_cfg_ddr.v:45: Define or directive not defined: \'`LCBDDR_CONFIGWIDTH\'\n   output [0:`LCBDDR_CONFIGWIDTH-1] cfg;\n             ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/425063934/custom_layout/sim/ra_cfg_ddr.v:47: Define or directive not defined: \'`LCBDDR_CONFIGWIDTH\'\n   reg    [0:`LCBDDR_CONFIGWIDTH-1] cfg_q;\n             ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/425063934/custom_layout/sim/ra_cfg_ddr.v:48: Define or directive not defined: \'`LCBDDR_CONFIGWIDTH\'\n   wire   [0:`LCBDDR_CONFIGWIDTH-1] cfg_d;\n             ^~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 8 error(s)\n'
module ra_cfg_ddr (

    clk,
    reset,
    cfg_wr,
    cfg_dat,
    cfg

);

 parameter GENMODE = `GENMODE;
 parameter INIT = `LCBDDR_CONFIGWIDTH'b0;

   input  clk;
   input  reset;
   input  cfg_wr;
   input  [0:`LCBDDR_CONFIGWIDTH-1] cfg_dat;
   output [0:`LCBDDR_CONFIGWIDTH-1] cfg;

   reg    [0:`LCBDDR_CONFIGWIDTH-1] cfg_q;
   wire   [0:`LCBDDR_CONFIGWIDTH-1] cfg_d;


   always @ (posedge clk) begin
      if (reset)
         cfg_q <= INIT;
      else
         cfg_q <= cfg_d;
   end


   assign cfg_d = (cfg_wr) ? cfg_dat : cfg_q;


   assign cfg = cfg_q;

endmodule
module ra_cfg_ddr (

    clk,
    reset,
    cfg_wr,
    cfg_dat,
    cfg

);


 parameter GENMODE = `GENMODE;
 parameter INIT = `LCBDDR_CONFIGWIDTH'b0;

   input  clk;
   input  reset;
   input  cfg_wr;
   input  [0:`LCBDDR_CONFIGWIDTH-1] cfg_dat;
   output [0:`LCBDDR_CONFIGWIDTH-1] cfg;

   reg    [0:`LCBDDR_CONFIGWIDTH-1] cfg_q;
   wire   [0:`LCBDDR_CONFIGWIDTH-1] cfg_d;


   always @ (posedge clk) begin
      if (reset)
         cfg_q <= INIT;
      else
         cfg_q <= cfg_d;
   end


   assign cfg_d = (cfg_wr) ? cfg_dat : cfg_q;


   assign cfg = cfg_q;

endmodule