fpga: rfnoc: Fix strobe probability in radio simulator
Original-commit: 8f68886ee3045abb486bfa8179e7129ebd377580
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// Copyright 2019 Ettus Research, A National Instruments Company
|
// Copyright 2022 Ettus Research, A National Instruments Brand
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||||||
//
|
//
|
||||||
@@ -70,7 +70,7 @@ module sim_radio_gen #(
|
|||||||
radio_rx_stb <= '0;
|
radio_rx_stb <= '0;
|
||||||
end else begin
|
end else begin
|
||||||
radio_rx_stb <= '0;
|
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 n = 0; n < NUM_CHANNELS; n++) begin
|
||||||
for (int s = 0; s < NSPC; s++) begin
|
for (int s = 0; s < NSPC; s++) begin
|
||||||
data[n][s*SAMP_W +: SAMP_W] <= data[n][s*SAMP_W +: SAMP_W] + NSPC;
|
data[n][s*SAMP_W +: SAMP_W] <= data[n][s*SAMP_W +: SAMP_W] + NSPC;
|
||||||
|
|||||||
Reference in New Issue
Block a user