diff options
author | Josh Blum <josh@joshknows.com> | 2011-02-24 11:00:49 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-02-24 11:00:49 -0800 |
commit | d588314b6f6205e0ea7051d8fc7836bdf9a6b16b (patch) | |
tree | 93ca181b6fb98cae67a639637b6911b7ebebbd73 /fpga/usrp2/fifo/dsp_framer36.v | |
parent | 76ebda895cae3bd0014a5e428b07440445f3b631 (diff) | |
parent | 57b779c5103d25a94c90fd6ac465c6f7f8add9b1 (diff) | |
download | uhd-d588314b6f6205e0ea7051d8fc7836bdf9a6b16b.tar.gz uhd-d588314b6f6205e0ea7051d8fc7836bdf9a6b16b.tar.bz2 uhd-d588314b6f6205e0ea7051d8fc7836bdf9a6b16b.zip |
Merge branch 'usrp2_dual_dsp' into next
Conflicts:
host/include/uhd/usrp/mboard_props.hpp
Diffstat (limited to 'fpga/usrp2/fifo/dsp_framer36.v')
-rw-r--r-- | fpga/usrp2/fifo/dsp_framer36.v | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fpga/usrp2/fifo/dsp_framer36.v b/fpga/usrp2/fifo/dsp_framer36.v index 34a05d91e..f7d7fb68e 100644 --- a/fpga/usrp2/fifo/dsp_framer36.v +++ b/fpga/usrp2/fifo/dsp_framer36.v @@ -2,7 +2,7 @@ // Frame DSP packets with a header line to be handled by the protocol machine module dsp_framer36 - #(parameter BUF_SIZE = 9) + #(parameter BUF_SIZE = 9, parameter PORT_SEL = 0) ( input clk, input rst, input clr, input [35:0] inp_data, input inp_valid, output inp_ready, @@ -29,8 +29,9 @@ module dsp_framer36 //The header is generated here from the count. wire [31:0] dsp_frm_data_bram; wire [15:0] dsp_frm_bytes = {dsp_frm_count, 2'b00}; + wire [1:0] port_sel_bits = PORT_SEL; assign out_data = - (dsp_frm_state == DSP_FRM_STATE_WRITE_HDR)? {4'b0001, 16'b1, dsp_frm_bytes} : ( + (dsp_frm_state == DSP_FRM_STATE_WRITE_HDR)? {4'b0001, 13'b0, port_sel_bits, 1'b1, dsp_frm_bytes} : ( (dsp_frm_addr == dsp_frm_count) ? {4'b0010, dsp_frm_data_bram} : ( {4'b0000, dsp_frm_data_bram})); assign out_valid = ( |