data/full_repos/permissive/445695969/src_rtl/protected/share_router.v
1: b'%Error: data/full_repos/permissive/445695969/src_rtl/protected/share_router.v:7: Cannot find include file: romulus_config_pkg.v\n`include"romulus_config_pkg.v" \n        ^~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/445695969/src_rtl/protected,data/full_repos/permissive/445695969/romulus_config_pkg.v\n             data/full_repos/permissive/445695969/src_rtl/protected,data/full_repos/permissive/445695969/romulus_config_pkg.v.v\n             data/full_repos/permissive/445695969/src_rtl/protected,data/full_repos/permissive/445695969/romulus_config_pkg.v.sv\n             romulus_config_pkg.v\n             romulus_config_pkg.v.v\n             romulus_config_pkg.v.sv\n             obj_dir/romulus_config_pkg.v\n             obj_dir/romulus_config_pkg.v.v\n             obj_dir/romulus_config_pkg.v.sv\n%Error: Exiting due to 1 error(s)\n'
module share_router (

   tbcstate, stateout, tbckey, keyout, keycorrect,

   statein, nextstate, keyin, nextkey, pcorrectkey
   ) ;
`include"romulus_config_pkg.v"
   output [128*STATESHARES-1:0] tbcstate;
   output [128*STATESHARES-1:0] stateout;
   output [128*KEYSHARES-1:0]   tbckey;
   output [128*KEYSHARES-1:0]   keyout;
   output [128*KEYSHARES-1:0]   keycorrect;
   input [128*STATESHARES-1:0]  statein;
   input [128*STATESHARES-1:0]  nextstate;
   input [128*KEYSHARES-1:0]  keyin;
   input [128*KEYSHARES-1:0]  nextkey;
   input [128*KEYSHARES-1:0]  pcorrectkey;


   genvar                      i, j;

   generate
      for (i = 0; i < STATESHARES; i = i + 1) begin:state_share_loop
         for (j = 0; j < 128/BUSW; j = j + 1) begin:state_word_loop
            assign tbcstate[j*BUSW+BUSW-1+128*i:j*BUSW+128*i] = statein[BUSW*STATESHARES*j+BUSW*i+BUSW-1:BUSW*STATESHARES*j+BUSW*i];
            assign stateout[BUSW*STATESHARES*j+BUSW*i+BUSW-1:BUSW*STATESHARES*j+BUSW*i] = nextstate[j*BUSW+BUSW-1+128*i:j*BUSW+128*i];
         end
      end
   endgenerate

   generate
      for (i = 0; i < KEYSHARES; i = i + 1) begin:key_share_loop
         for (j = 0; j < 128/BUSW; j = j + 1) begin:key_word_loop
            assign tbckey[j*BUSW+BUSW-1+128*i:j*BUSW+128*i] = keyin[BUSW*KEYSHARES*j+BUSW*i+BUSW-1:BUSW*KEYSHARES*j+BUSW*i];
            assign keyout[BUSW*KEYSHARES*j+BUSW*i+BUSW-1:BUSW*KEYSHARES*j+BUSW*i] = nextkey[j*BUSW+BUSW-1+128*i:j*BUSW+128*i];
            assign keycorrect[BUSW*KEYSHARES*j+BUSW*i+BUSW-1:BUSW*KEYSHARES*j+BUSW*i] = pcorrectkey[j*BUSW+BUSW-1+128*i:j*BUSW+128*i];
         end
      end
   endgenerate

endmodule
module share_router (

   tbcstate, stateout, tbckey, keyout, keycorrect,

   statein, nextstate, keyin, nextkey, pcorrectkey
   ) ;

`include"romulus_config_pkg.v"
   output [128*STATESHARES-1:0] tbcstate;
   output [128*STATESHARES-1:0] stateout;
   output [128*KEYSHARES-1:0]   tbckey;
   output [128*KEYSHARES-1:0]   keyout;
   output [128*KEYSHARES-1:0]   keycorrect;
   input [128*STATESHARES-1:0]  statein;
   input [128*STATESHARES-1:0]  nextstate;
   input [128*KEYSHARES-1:0]  keyin;
   input [128*KEYSHARES-1:0]  nextkey;
   input [128*KEYSHARES-1:0]  pcorrectkey;


   genvar                      i, j;

   generate
      for (i = 0; i < STATESHARES; i = i + 1) begin:state_share_loop
         for (j = 0; j < 128/BUSW; j = j + 1) begin:state_word_loop
            assign tbcstate[j*BUSW+BUSW-1+128*i:j*BUSW+128*i] = statein[BUSW*STATESHARES*j+BUSW*i+BUSW-1:BUSW*STATESHARES*j+BUSW*i];
            assign stateout[BUSW*STATESHARES*j+BUSW*i+BUSW-1:BUSW*STATESHARES*j+BUSW*i] = nextstate[j*BUSW+BUSW-1+128*i:j*BUSW+128*i];
         end
      end
   endgenerate

   generate
      for (i = 0; i < KEYSHARES; i = i + 1) begin:key_share_loop
         for (j = 0; j < 128/BUSW; j = j + 1) begin:key_word_loop
            assign tbckey[j*BUSW+BUSW-1+128*i:j*BUSW+128*i] = keyin[BUSW*KEYSHARES*j+BUSW*i+BUSW-1:BUSW*KEYSHARES*j+BUSW*i];
            assign keyout[BUSW*KEYSHARES*j+BUSW*i+BUSW-1:BUSW*KEYSHARES*j+BUSW*i] = nextkey[j*BUSW+BUSW-1+128*i:j*BUSW+128*i];
            assign keycorrect[BUSW*KEYSHARES*j+BUSW*i+BUSW-1:BUSW*KEYSHARES*j+BUSW*i] = pcorrectkey[j*BUSW+BUSW-1+128*i:j*BUSW+128*i];
         end
      end
   endgenerate

endmodule