data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v
1: b'%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:30: Cannot find include file: sys.h\n`include "sys.h" // system level definition file which contains the  \n         ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/458737381/src/verilog-parser/tests,data/full_repos/permissive/458737381/sys.h\n             data/full_repos/permissive/458737381/src/verilog-parser/tests,data/full_repos/permissive/458737381/sys.h.v\n             data/full_repos/permissive/458737381/src/verilog-parser/tests,data/full_repos/permissive/458737381/sys.h.sv\n             sys.h\n             sys.h.v\n             sys.h.sv\n             obj_dir/sys.h\n             obj_dir/sys.h.v\n             obj_dir/sys.h.sv\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:32: Cannot find include file: iop.h\n`include        "iop.h" \n                ^~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:53: Define or directive not defined: \'`IOB_ADDR_WIDTH\'\n   input [`IOB_ADDR_WIDTH-1:0]         addr_in;\n          ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:54: Define or directive not defined: \'`IOB_CPUTHR_INDEX\'\n   input [`IOB_CPUTHR_INDEX-1:0]       thr_id_in;\n          ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:59: Define or directive not defined: \'`IOB_MONDO_DATA_INDEX\'\n   output [`IOB_MONDO_DATA_INDEX-1:0]  mondo_data_addr;\n           ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:82: Define or directive not defined: \'`IOB_LOCAL_ADDR_WIDTH\'\n       (addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0]\n                ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:83: Define or directive not defined: \'`IOB_CREG_MDATA0_ALIAS\'\n     == `IOB_CREG_MDATA0_ALIAS);\n        ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:83: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n     == `IOB_CREG_MDATA0_ALIAS);\n                              ^\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:86: Define or directive not defined: \'`IOB_LOCAL_ADDR_WIDTH\'\n       (addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0]\n                ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:87: Define or directive not defined: \'`IOB_CREG_MDATA1_ALIAS\'\n     == `IOB_CREG_MDATA1_ALIAS);\n        ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:87: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n     == `IOB_CREG_MDATA1_ALIAS);\n                              ^\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:90: Define or directive not defined: \'`IOB_LOCAL_ADDR_WIDTH\'\n    (addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0]\n             ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:91: Define or directive not defined: \'`IOB_CREG_MBUSY_ALIAS\'\n     == `IOB_CREG_MBUSY_ALIAS);\n        ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:91: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n     == `IOB_CREG_MBUSY_ALIAS);\n                             ^\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:95: Define or directive not defined: \'`IOB_LOCAL_ADDR_WIDTH\'\n       ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)\n                 ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:95: Define or directive not defined: \'`IOB_THR_ADDR_MASK\'\n       ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)\n                                              ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:95: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n       ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)\n                                                                ^\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:96: Define or directive not defined: \'`IOB_CREG_MDATA0\'\n     == `IOB_CREG_MDATA0);\n        ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:99: Define or directive not defined: \'`IOB_LOCAL_ADDR_WIDTH\'\n       ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)\n                 ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:99: Define or directive not defined: \'`IOB_THR_ADDR_MASK\'\n       ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)\n                                              ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:99: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n       ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)\n                                                                ^\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:100: Define or directive not defined: \'`IOB_CREG_MDATA1\'\n     == `IOB_CREG_MDATA1);\n        ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:103: Define or directive not defined: \'`IOB_LOCAL_ADDR_WIDTH\'\n    ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)\n              ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:103: Define or directive not defined: \'`IOB_THR_ADDR_MASK\'\n    ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)\n                                           ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:103: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n    ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)\n                                                             ^\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:104: Define or directive not defined: \'`IOB_CREG_MBUSY\'\n     == `IOB_CREG_MBUSY);\n        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/iobdg_int_mondo_addr_dec.v:119: Define or directive not defined: \'`IOB_MONDO_DATA_INDEX\'\n                                     addr_in[`IOB_MONDO_DATA_INDEX-1+3:3];\n                                             ^~~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 27 error(s)\n'
module iobdg_int_mondo_addr_dec (

   creg_mdata0_dec, creg_mdata1_dec, creg_mbusy_dec, mondo_data_addr, 
   addr_invld, 

   addr_in, thr_id_in
   );
   



   input [`IOB_ADDR_WIDTH-1:0]         addr_in;
   input [`IOB_CPUTHR_INDEX-1:0]       thr_id_in;
   
   output 			       creg_mdata0_dec;
   output 			       creg_mdata1_dec;
   output 			       creg_mbusy_dec;
   output [`IOB_MONDO_DATA_INDEX-1:0]  mondo_data_addr;

   output 			       addr_invld;
   
   wire 			       creg_mdata0_alias_dec;
   wire 			       creg_mdata1_alias_dec;
   wire 			       creg_mbusy_alias_dec;
   wire 			       creg_mdata0_proper_dec;
   wire 			       creg_mdata1_proper_dec;
   wire 			       creg_mbusy_proper_dec;
   wire 			       use_thr_addr;

   






   assign 		 creg_mdata0_alias_dec =
   			 (addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0]
			  == `IOB_CREG_MDATA0_ALIAS);
   
   assign 		 creg_mdata1_alias_dec =
   			 (addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0]
			  == `IOB_CREG_MDATA1_ALIAS);
   
   assign 		 creg_mbusy_alias_dec =
			 (addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0]
			  == `IOB_CREG_MBUSY_ALIAS);


   assign 		 creg_mdata0_proper_dec =
   			 ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)
			  == `IOB_CREG_MDATA0);
   
   assign 		 creg_mdata1_proper_dec =
   			 ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)
			  == `IOB_CREG_MDATA1);
   
   assign 		 creg_mbusy_proper_dec =
			 ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)
			  == `IOB_CREG_MBUSY);


   assign 		 creg_mdata0_dec = creg_mdata0_proper_dec | creg_mdata0_alias_dec;
   assign 		 creg_mdata1_dec = creg_mdata1_proper_dec | creg_mdata1_alias_dec;
   assign 		 creg_mbusy_dec = creg_mbusy_proper_dec | creg_mbusy_alias_dec;
   
	  
   assign 		 use_thr_addr = creg_mdata0_alias_dec |
			                creg_mdata1_alias_dec |
			                creg_mbusy_alias_dec;



   assign 		 mondo_data_addr = use_thr_addr ? thr_id_in :
			                                  addr_in[`IOB_MONDO_DATA_INDEX-1+3:3];

   

   assign 		 addr_invld = ~creg_mdata0_dec &
			              ~creg_mdata1_dec &
			              ~creg_mbusy_dec;
   
   
endmodule
module iobdg_int_mondo_addr_dec (

   creg_mdata0_dec, creg_mdata1_dec, creg_mbusy_dec, mondo_data_addr, 
   addr_invld, 

   addr_in, thr_id_in
   );

   



   input [`IOB_ADDR_WIDTH-1:0]         addr_in;
   input [`IOB_CPUTHR_INDEX-1:0]       thr_id_in;
   
   output 			       creg_mdata0_dec;
   output 			       creg_mdata1_dec;
   output 			       creg_mbusy_dec;
   output [`IOB_MONDO_DATA_INDEX-1:0]  mondo_data_addr;

   output 			       addr_invld;
   
   wire 			       creg_mdata0_alias_dec;
   wire 			       creg_mdata1_alias_dec;
   wire 			       creg_mbusy_alias_dec;
   wire 			       creg_mdata0_proper_dec;
   wire 			       creg_mdata1_proper_dec;
   wire 			       creg_mbusy_proper_dec;
   wire 			       use_thr_addr;

   






   assign 		 creg_mdata0_alias_dec =
   			 (addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0]
			  == `IOB_CREG_MDATA0_ALIAS);
   
   assign 		 creg_mdata1_alias_dec =
   			 (addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0]
			  == `IOB_CREG_MDATA1_ALIAS);
   
   assign 		 creg_mbusy_alias_dec =
			 (addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0]
			  == `IOB_CREG_MBUSY_ALIAS);


   assign 		 creg_mdata0_proper_dec =
   			 ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)
			  == `IOB_CREG_MDATA0);
   
   assign 		 creg_mdata1_proper_dec =
   			 ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)
			  == `IOB_CREG_MDATA1);
   
   assign 		 creg_mbusy_proper_dec =
			 ((addr_in[`IOB_LOCAL_ADDR_WIDTH-1:0] & `IOB_THR_ADDR_MASK)
			  == `IOB_CREG_MBUSY);


   assign 		 creg_mdata0_dec = creg_mdata0_proper_dec | creg_mdata0_alias_dec;
   assign 		 creg_mdata1_dec = creg_mdata1_proper_dec | creg_mdata1_alias_dec;
   assign 		 creg_mbusy_dec = creg_mbusy_proper_dec | creg_mbusy_alias_dec;
   
	  
   assign 		 use_thr_addr = creg_mdata0_alias_dec |
			                creg_mdata1_alias_dec |
			                creg_mbusy_alias_dec;



   assign 		 mondo_data_addr = use_thr_addr ? thr_id_in :
			                                  addr_in[`IOB_MONDO_DATA_INDEX-1+3:3];

   

   assign 		 addr_invld = ~creg_mdata0_dec &
			              ~creg_mdata1_dec &
			              ~creg_mbusy_dec;
   
   
endmodule