data/full_repos/permissive/421030651/include/cpu_tracer_task.sv
1: b'%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:1: Cannot find include file: cpu_define.h\n`include "cpu_define.h" \n         ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/421030651/include,data/full_repos/permissive/421030651/cpu_define.h\n             data/full_repos/permissive/421030651/include,data/full_repos/permissive/421030651/cpu_define.h.v\n             data/full_repos/permissive/421030651/include,data/full_repos/permissive/421030651/cpu_define.h.sv\n             cpu_define.h\n             cpu_define.h.v\n             cpu_define.h.sv\n             obj_dir/cpu_define.h\n             obj_dir/cpu_define.h.v\n             obj_dir/cpu_define.h.sv\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:327: Cannot find include file: opcode.sv\n`include "opcode.sv" \n         ^~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:328: Cannot find include file: funct.sv\n`include "funct.sv" \n         ^~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:51: Define or directive not defined: \'`CSR_USTATUS_ADDR\'\n    `CSR_USTATUS_ADDR       : return "ustatus";       \n    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:51: syntax error, unexpected \':\', expecting endcase\n    `CSR_USTATUS_ADDR       : return "ustatus";       \n                            ^\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:52: Define or directive not defined: \'`CSR_UIE_ADDR\'\n    `CSR_UIE_ADDR           : return "uie";           \n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:53: Define or directive not defined: \'`CSR_UTVEC_ADDR\'\n    `CSR_UTVEC_ADDR         : return "utvec";         \n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:54: Define or directive not defined: \'`CSR_USCRATCH_ADDR\'\n    `CSR_USCRATCH_ADDR      : return "uscratch";      \n    ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:55: Define or directive not defined: \'`CSR_UEPC_ADDR\'\n    `CSR_UEPC_ADDR          : return "uepc";          \n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:56: Define or directive not defined: \'`CSR_UCAUSE_ADDR\'\n    `CSR_UCAUSE_ADDR        : return "ucause";        \n    ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:57: Define or directive not defined: \'`CSR_UTVAL_ADDR\'\n    `CSR_UTVAL_ADDR         : return "utval";         \n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:58: Define or directive not defined: \'`CSR_UIP_ADDR\'\n    `CSR_UIP_ADDR           : return "uip";           \n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:59: Define or directive not defined: \'`CSR_FFLAGS_ADDR\'\n    `CSR_FFLAGS_ADDR        : return "fflags";        \n    ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:60: Define or directive not defined: \'`CSR_FRM_ADDR\'\n    `CSR_FRM_ADDR           : return "frm";           \n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:61: Define or directive not defined: \'`CSR_FCSR_ADDR\'\n    `CSR_FCSR_ADDR          : return "fcsr";          \n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:62: Define or directive not defined: \'`CSR_CYCLE_ADDR\'\n    `CSR_CYCLE_ADDR         : return "cycle";         \n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:63: Define or directive not defined: \'`CSR_TIME_ADDR\'\n    `CSR_TIME_ADDR          : return "time";          \n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:64: Define or directive not defined: \'`CSR_INSTRET_ADDR\'\n    `CSR_INSTRET_ADDR       : return "instret";       \n    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:65: Define or directive not defined: \'`CSR_HPMCOUNTER3_ADDR\'\n    `CSR_HPMCOUNTER3_ADDR   : return "hpmcounter3";   \n    ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:66: Define or directive not defined: \'`CSR_HPMCOUNTER4_ADDR\'\n    `CSR_HPMCOUNTER4_ADDR   : return "hpmcounter4";   \n    ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:67: Define or directive not defined: \'`CSR_HPMCOUNTER5_ADDR\'\n    `CSR_HPMCOUNTER5_ADDR   : return "hpmcounter5";   \n    ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:68: Define or directive not defined: \'`CSR_HPMCOUNTER6_ADDR\'\n    `CSR_HPMCOUNTER6_ADDR   : return "hpmcounter6";   \n    ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:69: Define or directive not defined: \'`CSR_HPMCOUNTER7_ADDR\'\n    `CSR_HPMCOUNTER7_ADDR   : return "hpmcounter7";   \n    ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:70: Define or directive not defined: \'`CSR_HPMCOUNTER8_ADDR\'\n    `CSR_HPMCOUNTER8_ADDR   : return "hpmcounter8";   \n    ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:71: Define or directive not defined: \'`CSR_HPMCOUNTER9_ADDR\'\n    `CSR_HPMCOUNTER9_ADDR   : return "hpmcounter9";   \n    ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:72: Define or directive not defined: \'`CSR_HPMCOUNTER10_ADDR\'\n    `CSR_HPMCOUNTER10_ADDR  : return "hpmcounter10";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:73: Define or directive not defined: \'`CSR_HPMCOUNTER11_ADDR\'\n    `CSR_HPMCOUNTER11_ADDR  : return "hpmcounter11";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:74: Define or directive not defined: \'`CSR_HPMCOUNTER12_ADDR\'\n    `CSR_HPMCOUNTER12_ADDR  : return "hpmcounter12";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:75: Define or directive not defined: \'`CSR_HPMCOUNTER13_ADDR\'\n    `CSR_HPMCOUNTER13_ADDR  : return "hpmcounter13";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:76: Define or directive not defined: \'`CSR_HPMCOUNTER14_ADDR\'\n    `CSR_HPMCOUNTER14_ADDR  : return "hpmcounter14";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:77: Define or directive not defined: \'`CSR_HPMCOUNTER15_ADDR\'\n    `CSR_HPMCOUNTER15_ADDR  : return "hpmcounter15";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:78: Define or directive not defined: \'`CSR_HPMCOUNTER16_ADDR\'\n    `CSR_HPMCOUNTER16_ADDR  : return "hpmcounter16";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:79: Define or directive not defined: \'`CSR_HPMCOUNTER17_ADDR\'\n    `CSR_HPMCOUNTER17_ADDR  : return "hpmcounter17";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:80: Define or directive not defined: \'`CSR_HPMCOUNTER18_ADDR\'\n    `CSR_HPMCOUNTER18_ADDR  : return "hpmcounter18";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:81: Define or directive not defined: \'`CSR_HPMCOUNTER19_ADDR\'\n    `CSR_HPMCOUNTER19_ADDR  : return "hpmcounter19";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:82: Define or directive not defined: \'`CSR_HPMCOUNTER20_ADDR\'\n    `CSR_HPMCOUNTER20_ADDR  : return "hpmcounter20";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:83: Define or directive not defined: \'`CSR_HPMCOUNTER21_ADDR\'\n    `CSR_HPMCOUNTER21_ADDR  : return "hpmcounter21";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:84: Define or directive not defined: \'`CSR_HPMCOUNTER22_ADDR\'\n    `CSR_HPMCOUNTER22_ADDR  : return "hpmcounter22";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:85: Define or directive not defined: \'`CSR_HPMCOUNTER23_ADDR\'\n    `CSR_HPMCOUNTER23_ADDR  : return "hpmcounter23";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:86: Define or directive not defined: \'`CSR_HPMCOUNTER24_ADDR\'\n    `CSR_HPMCOUNTER24_ADDR  : return "hpmcounter24";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:87: Define or directive not defined: \'`CSR_HPMCOUNTER25_ADDR\'\n    `CSR_HPMCOUNTER25_ADDR  : return "hpmcounter25";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:88: Define or directive not defined: \'`CSR_HPMCOUNTER26_ADDR\'\n    `CSR_HPMCOUNTER26_ADDR  : return "hpmcounter26";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:89: Define or directive not defined: \'`CSR_HPMCOUNTER27_ADDR\'\n    `CSR_HPMCOUNTER27_ADDR  : return "hpmcounter27";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:90: Define or directive not defined: \'`CSR_HPMCOUNTER28_ADDR\'\n    `CSR_HPMCOUNTER28_ADDR  : return "hpmcounter28";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:91: Define or directive not defined: \'`CSR_HPMCOUNTER29_ADDR\'\n    `CSR_HPMCOUNTER29_ADDR  : return "hpmcounter29";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:92: Define or directive not defined: \'`CSR_HPMCOUNTER30_ADDR\'\n    `CSR_HPMCOUNTER30_ADDR  : return "hpmcounter30";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:93: Define or directive not defined: \'`CSR_HPMCOUNTER31_ADDR\'\n    `CSR_HPMCOUNTER31_ADDR  : return "hpmcounter31";  \n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:94: Define or directive not defined: \'`CSR_CYCLEH_ADDR\'\n    `CSR_CYCLEH_ADDR        : return "cycleh";        \n    ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:95: Define or directive not defined: \'`CSR_TIMEH_ADDR\'\n    `CSR_TIMEH_ADDR         : return "timeh";         \n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/421030651/include/cpu_tracer_task.sv:96: Define or directive not defined: \'`CSR_INSTRETH_ADDR\'\n    `CSR_INSTRETH_ADDR      : return "instreth";      \n    ^~~~~~~~~~~~~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
function string fence_flag;
input [3:0] arg;

string str;
str = "";

if (arg[3])
    str = {str, "i"};
if (arg[2])
    str = {str, "o"};
if (arg[1])
    str = {str, "r"};
if (arg[0])
    str = {str, "w"};
if (str == "")
    str = {str, "-"};

return str;

endfunction
function string fence_flag;

input [3:0] arg;

string str;
str = "";

if (arg[3])
    str = {str, "i"};
if (arg[2])
    str = {str, "o"};
if (arg[1])
    str = {str, "r"};
if (arg[0])
    str = {str, "w"};
if (str == "")
    str = {str, "-"};

return str;

endfunction