data/full_repos/permissive/13953497/LAG_route.v
 line:37: before: "function"
1: b'%Error: data/full_repos/permissive/13953497/LAG_route.v:42: Cannot find include file: parameters.v\n   `include "parameters.v" \n            ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/13953497,data/full_repos/permissive/13953497/parameters.v\n             data/full_repos/permissive/13953497,data/full_repos/permissive/13953497/parameters.v.v\n             data/full_repos/permissive/13953497,data/full_repos/permissive/13953497/parameters.v.sv\n             parameters.v\n             parameters.v.v\n             parameters.v.sv\n             obj_dir/parameters.v\n             obj_dir/parameters.v.v\n             obj_dir/parameters.v.sv\n%Error: data/full_repos/permissive/13953497/LAG_route.v:50: Define or directive not defined: \'`TILE\'\n      if (port==`TILE) begin\n                ^~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:50: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n      if (port==`TILE) begin\n                     ^\n%Error: data/full_repos/permissive/13953497/LAG_route.v:55: syntax error, unexpected end\n   end\n   ^~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:81: syntax error, unexpected IDENTIFIER, expecting \';\'\n   input flit_t flit_in; \n                ^~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:82: syntax error, unexpected IDENTIFIER, expecting \';\'\n   output flit_t flit_out;\n                 ^~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:86: syntax error, unexpected IDENTIFIER, expecting \'(\' or \';\'\n   function flit_t next_route;\n                   ^~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:88: syntax error, unexpected IDENTIFIER, expecting \';\'\n   input flit_t flit_in;\n                ^~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:95: syntax error, unexpected begin\n      begin\n      ^~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:98: Define or directive not defined: \'`X_ADDR_BITS\'\n  x_disp = x_displ_t \' (flit_in.data[router_radix + `X_ADDR_BITS : router_radix]);\n                                                    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:99: Define or directive not defined: \'`X_ADDR_BITS\'\n   y_disp = y_displ_t \' (flit_in.data[router_radix + `X_ADDR_BITS + `Y_ADDR_BITS + 1 : router_radix + `X_ADDR_BITS + 1]);\n                                                     ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:99: Define or directive not defined: \'`Y_ADDR_BITS\'\n   y_disp = y_displ_t \' (flit_in.data[router_radix + `X_ADDR_BITS + `Y_ADDR_BITS + 1 : router_radix + `X_ADDR_BITS + 1]);\n                                                                    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:99: Define or directive not defined: \'`X_ADDR_BITS\'\n   y_disp = y_displ_t \' (flit_in.data[router_radix + `X_ADDR_BITS + `Y_ADDR_BITS + 1 : router_radix + `X_ADDR_BITS + 1]);\n                                                                                                      ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:105: syntax error, unexpected \'=\', expecting IDENTIFIER\n        route = `port5id_east;\n              ^\n%Error: data/full_repos/permissive/13953497/LAG_route.v:105: Define or directive not defined: \'`port5id_east\'\n        route = `port5id_east;\n                ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:108: syntax error, unexpected \'=\', expecting IDENTIFIER\n        route = `port5id_west;\n              ^\n%Error: data/full_repos/permissive/13953497/LAG_route.v:108: Define or directive not defined: \'`port5id_west\'\n        route = `port5id_west;\n                ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:113: syntax error, unexpected \'=\', expecting IDENTIFIER\n        route=`port5id_tile;\n             ^\n%Error: data/full_repos/permissive/13953497/LAG_route.v:113: Define or directive not defined: \'`port5id_tile\'\n        route=`port5id_tile;\n              ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:115: syntax error, unexpected \'=\', expecting IDENTIFIER\n        route=`port5id_south;\n             ^\n%Error: data/full_repos/permissive/13953497/LAG_route.v:115: Define or directive not defined: \'`port5id_south\'\n        route=`port5id_south;\n              ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:118: syntax error, unexpected \'=\', expecting IDENTIFIER\n        route=`port5id_north;\n             ^\n%Error: data/full_repos/permissive/13953497/LAG_route.v:118: Define or directive not defined: \'`port5id_north\'\n        route=`port5id_north;\n              ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:123: syntax error, unexpected \'[\', expecting IDENTIFIER\n  new_flit.data[router_radix - 1 : 0] = route;\n               ^\n%Error: data/full_repos/permissive/13953497/LAG_route.v:124: syntax error, unexpected \'[\', expecting IDENTIFIER\n  new_flit.data[router_radix + `X_ADDR_BITS : router_radix] = x_displ_t \' (x_disp);\n               ^\n%Error: data/full_repos/permissive/13953497/LAG_route.v:124: Define or directive not defined: \'`X_ADDR_BITS\'\n  new_flit.data[router_radix + `X_ADDR_BITS : router_radix] = x_displ_t \' (x_disp);\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:125: syntax error, unexpected \'[\', expecting IDENTIFIER\n  new_flit.data[router_radix + `X_ADDR_BITS + `Y_ADDR_BITS + 1 : router_radix + `X_ADDR_BITS + 1] = y_displ_t \' (y_disp);\n               ^\n%Error: data/full_repos/permissive/13953497/LAG_route.v:125: Define or directive not defined: \'`X_ADDR_BITS\'\n  new_flit.data[router_radix + `X_ADDR_BITS + `Y_ADDR_BITS + 1 : router_radix + `X_ADDR_BITS + 1] = y_displ_t \' (y_disp);\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:125: Define or directive not defined: \'`Y_ADDR_BITS\'\n  new_flit.data[router_radix + `X_ADDR_BITS + `Y_ADDR_BITS + 1 : router_radix + `X_ADDR_BITS + 1] = y_displ_t \' (y_disp);\n                                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/13953497/LAG_route.v:125: Define or directive not defined: \'`X_ADDR_BITS\'\n  new_flit.data[router_radix + `X_ADDR_BITS + `Y_ADDR_BITS + 1 : router_radix + `X_ADDR_BITS + 1] = y_displ_t \' (y_disp);\n                                                                                ^~~~~~~~~~~~\n%Error: Internal Error: data/full_repos/permissive/13953497/LAG_route.v:79: ../V3ParseSym.h:114: Symbols suggest ending FUNC \'flit_t\' but parser thinks ending MODULE \'LAG_route\'\nmodule LAG_route (flit_in, flit_out, clk, rst_n);\n       ^~~~~~~~~\n'
function automatic bit LAG_route_valid_turn;
   
   input output_port_t from;
   input output_port_t to;
   
   bit valid;
   begin
      valid=1'b1;


      if (from==to) valid=1'b0;

`ifdef OPT_MESHXYTURNS

      if (((from==`NORTH)||(from==`SOUTH))&&((to==`EAST)||(to==`WEST))) valid=1'b0;
`endif      

      LAG_route_valid_turn=valid;
   end
endfunction
function automatic bit LAG_route_valid_turn;

   
   input output_port_t from;
   input output_port_t to;
   
   bit valid;
   begin
      valid=1'b1;


      if (from==to) valid=1'b0;

`ifdef OPT_MESHXYTURNS

      if (((from==`NORTH)||(from==`SOUTH))&&((to==`EAST)||(to==`WEST))) valid=1'b0;
`endif      

      LAG_route_valid_turn=valid;
   end
endfunction