diff options
author | Wade Fife <wade.fife@ettus.com> | 2022-03-01 13:46:28 -0600 |
---|---|---|
committer | Wade Fife <wade.fife@ettus.com> | 2022-03-04 18:46:12 -0600 |
commit | 8f68886ee3045abb486bfa8179e7129ebd377580 (patch) | |
tree | 7333bfcb9a1694123e1626ef248387132cd6b154 /fpga | |
parent | 6ff8bd326b0da4d2f9e044a3df3e19b807459d25 (diff) | |
download | uhd-8f68886ee3045abb486bfa8179e7129ebd377580.tar.gz uhd-8f68886ee3045abb486bfa8179e7129ebd377580.tar.bz2 uhd-8f68886ee3045abb486bfa8179e7129ebd377580.zip |
fpga: rfnoc: Fix strobe probability in radio simulator
Diffstat (limited to 'fpga')
-rw-r--r-- | fpga/usrp3/lib/rfnoc/blocks/rfnoc_block_radio/sim_radio_gen.sv | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fpga/usrp3/lib/rfnoc/blocks/rfnoc_block_radio/sim_radio_gen.sv b/fpga/usrp3/lib/rfnoc/blocks/rfnoc_block_radio/sim_radio_gen.sv index a6f827f8f..e980217b5 100644 --- a/fpga/usrp3/lib/rfnoc/blocks/rfnoc_block_radio/sim_radio_gen.sv +++ b/fpga/usrp3/lib/rfnoc/blocks/rfnoc_block_radio/sim_radio_gen.sv @@ -1,14 +1,14 @@ // -// Copyright 2019 Ettus Research, A National Instruments Company +// Copyright 2022 Ettus Research, A National Instruments Brand // // SPDX-License-Identifier: LGPL-3.0-or-later // // Module: sim_radio_gen // -// Description: Generate radio data for simulation purposes. The strobe pattern -// is random, which is not like a normal radio but covers every possibility. -// The data pattern is an incrementing sequence of samples, with each channel -// starting at a different value to differentiate them. Strobe and time are +// Description: Generate radio data for simulation purposes. The strobe pattern +// is random, which is not like a normal radio but covers every possibility. +// The data pattern is an incrementing sequence of samples, with each channel +// starting at a different value to differentiate them. Strobe and time are // common between channels. // @@ -39,7 +39,7 @@ module sim_radio_gen #( // Generate an initial value all radio channels 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; @@ -70,7 +70,7 @@ module sim_radio_gen #( radio_rx_stb <= '0; end else begin radio_rx_stb <= '0; - if ($urandom_range(100) < STB_PROB) begin + if ($urandom_range(99) < STB_PROB) begin for (int n = 0; n < NUM_CHANNELS; n++) begin for (int s = 0; s < NSPC; s++) begin data[n][s*SAMP_W +: SAMP_W] <= data[n][s*SAMP_W +: SAMP_W] + NSPC; |