data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/lib/rfnoc/blocks/rfnoc_block_radio/sim_radio_gen.sv
 line:16: before: "NSPC"
1: b'%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/lib/rfnoc/blocks/rfnoc_block_radio/sim_radio_gen.sv:73: Unsupported or unknown PLI call: $urandom_range\n      if ($urandom_range(100) < STB_PROB) begin\n          ^~~~~~~~~~~~~~\n%Error: Exiting due to 1 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
function radio_t [NUM_CHANNELS-1:0] radio_init();
    radio_t [NUM_CHANNELS-1:0] ret_val;
   
    for (int n = 0; n < NUM_CHANNELS; n++) begin
      sample_t sample;


      sample = sample_t'((2.0 ** SAMP_W) / NUM_CHANNELS * n);


      for (int s = 0; s < NSPC; s++) begin
        ret_val[n][s*SAMP_W +: SAMP_W] = sample + s;
      end
    end

    return ret_val;
  endfunction
function radio_t [NUM_CHANNELS-1:0] radio_init();

    radio_t [NUM_CHANNELS-1:0] ret_val;
   
    for (int n = 0; n < NUM_CHANNELS; n++) begin
      sample_t sample;


      sample = sample_t'((2.0 ** SAMP_W) / NUM_CHANNELS * n);


      for (int s = 0; s < NSPC; s++) begin
        ret_val[n][s*SAMP_W +: SAMP_W] = sample + s;
      end
    end

    return ret_val;
  endfunction