diff options
author | Wade Fife <wade.fife@ettus.com> | 2020-05-26 10:47:09 -0500 |
---|---|---|
committer | Wade Fife <wade.fife@ettus.com> | 2020-05-28 15:12:20 -0500 |
commit | 983fad664436301c31c3bc8c81b538a41537598b (patch) | |
tree | 76d5a79101ce351a1e1883417c7d9dba61ad3937 /fpga/usrp3/lib/rfnoc/axi_drop_partial_packet.v | |
parent | 6faec1d4a14a1af52681aabf19c9040dcee772ff (diff) | |
download | uhd-983fad664436301c31c3bc8c81b538a41537598b.tar.gz uhd-983fad664436301c31c3bc8c81b538a41537598b.tar.bz2 uhd-983fad664436301c31c3bc8c81b538a41537598b.zip |
fpga: rfnoc: Add defaults for rate changing
Add DEFAULT_M and DEFAULT_N parameters for rate changing cores.
This allows the host to not need to configure fixed rate change
cores.
Diffstat (limited to 'fpga/usrp3/lib/rfnoc/axi_drop_partial_packet.v')
-rw-r--r-- | fpga/usrp3/lib/rfnoc/axi_drop_partial_packet.v | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fpga/usrp3/lib/rfnoc/axi_drop_partial_packet.v b/fpga/usrp3/lib/rfnoc/axi_drop_partial_packet.v index a4dbae654..2e3102d95 100644 --- a/fpga/usrp3/lib/rfnoc/axi_drop_partial_packet.v +++ b/fpga/usrp3/lib/rfnoc/axi_drop_partial_packet.v @@ -11,7 +11,8 @@ module axi_drop_partial_packet #( parameter WIDTH = 32, parameter MAX_PKT_SIZE = 1024, parameter HOLD_LAST_WORD = 0, // Hold off sending last word until next full packet arrives - parameter SR_PKT_SIZE_ADDR = 1 + parameter SR_PKT_SIZE_ADDR = 1, + parameter DEFAULT_PKT_SIZE = 1 )( input clk, input reset, input clear, input flush, // If using HOLD_LAST_WORD, will forcibly release all words in FIFO @@ -31,7 +32,7 @@ module axi_drop_partial_packet #( end else begin // Settings register wire [$clog2(MAX_PKT_SIZE+1)-1:0] sr_pkt_size; - setting_reg #(.my_addr(SR_PKT_SIZE_ADDR), .width($clog2(MAX_PKT_SIZE+1)), .at_reset(1)) set_pkt_size ( + setting_reg #(.my_addr(SR_PKT_SIZE_ADDR), .width($clog2(MAX_PKT_SIZE+1)), .at_reset(DEFAULT_PKT_SIZE)) set_pkt_size ( .clk(clk), .rst(reset), .strobe(set_stb), .addr(set_addr), .in(set_data), .out(sr_pkt_size), .changed()); |