data/full_repos/permissive/40989439/AdiHDLLib/library/prcfg/qpsk/prcfg_adc.v
1: b'%Error: data/full_repos/permissive/40989439/AdiHDLLib/library/prcfg/qpsk/prcfg_adc.v:121: Cannot find file containing module: \'ad_pnmon\'\n  ad_pnmon #(\n  ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/40989439/AdiHDLLib/library/prcfg/qpsk,data/full_repos/permissive/40989439/ad_pnmon\n             data/full_repos/permissive/40989439/AdiHDLLib/library/prcfg/qpsk,data/full_repos/permissive/40989439/ad_pnmon.v\n             data/full_repos/permissive/40989439/AdiHDLLib/library/prcfg/qpsk,data/full_repos/permissive/40989439/ad_pnmon.sv\n             ad_pnmon\n             ad_pnmon.v\n             ad_pnmon.sv\n             obj_dir/ad_pnmon\n             obj_dir/ad_pnmon.v\n             obj_dir/ad_pnmon.sv\n%Error: data/full_repos/permissive/40989439/AdiHDLLib/library/prcfg/qpsk/prcfg_adc.v:139: Cannot find file containing module: \'qpsk_demod\'\n  qpsk_demod i_qpsk_demod1 (\n  ^~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/40989439/AdiHDLLib/library/prcfg/qpsk/prcfg_adc.v:169: Operator EQ expects 4 bits on the RHS, but RHS\'s CONST \'3\'h2\' generates 3 bits.\n                                                                                                : ... In instance prcfg_adc\n    if((mode == 3\'d2) && (channel_sel == CHANNEL_ID)) begin\n             ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 2 error(s), 1 warning(s)\n'
function [ 7:0] pn;
    input [ 7:0] din;
    reg   [ 7:0] dout;
    begin
      dout[7] = din[6];
      dout[6] = din[5];
      dout[5] = din[4];
      dout[4] = din[3];
      dout[3] = din[2];
      dout[2] = din[1];
      dout[1] = din[7] ^ din[4];
      dout[0] = din[6] ^ din[3];
      pn = dout;
    end
  endfunction
function [ 7:0] pn;

    input [ 7:0] din;
    reg   [ 7:0] dout;
    begin
      dout[7] = din[6];
      dout[6] = din[5];
      dout[5] = din[4];
      dout[4] = din[3];
      dout[3] = din[2];
      dout[2] = din[1];
      dout[1] = din[7] ^ din[4];
      dout[0] = din[6] ^ din[3];
      pn = dout;
    end
  endfunction