diff options
author | Josh Blum <josh@joshknows.com> | 2012-02-01 16:35:08 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-02-01 16:35:08 -0800 |
commit | 6bbcb202183c5a0ab5351a0c052981408e4719cb (patch) | |
tree | 4b63cf04ee8289ec4131a968a8a8fae5fe8bcb28 /usrp2 | |
parent | 6525ddaf39e96707eff14b2131dc210494415a68 (diff) | |
download | uhd-6bbcb202183c5a0ab5351a0c052981408e4719cb.tar.gz uhd-6bbcb202183c5a0ab5351a0c052981408e4719cb.tar.bz2 uhd-6bbcb202183c5a0ab5351a0c052981408e4719cb.zip |
dsp rework: register the sample in vita tx ctrl
Diffstat (limited to 'usrp2')
-rw-r--r-- | usrp2/vrt/vita_tx_control.v | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usrp2/vrt/vita_tx_control.v b/usrp2/vrt/vita_tx_control.v index 5df89bdbe..eaaf61815 100644 --- a/usrp2/vrt/vita_tx_control.v +++ b/usrp2/vrt/vita_tx_control.v @@ -187,8 +187,17 @@ module vita_tx_control assign sample_fifo_dst_rdy_o = (ibs_state == IBS_ERROR) | (strobe & (ibs_state == IBS_RUN)); // FIXME also cleanout - assign sample = (ibs_state == IBS_RUN) ? sample_fifo_i[5+64+16+WIDTH-1:5+64+16] : {WIDTH{1'b0}}; - //assign run = (ibs_state == IBS_RUN) | (ibs_state == IBS_CONT_BURST); + //register the output sample + reg [31:0] sample_held; + assign sample = sample_held; + always @(posedge clk) + if(reset | clear) + sample_held <= 0; + else if (~run) + sample_held <= 0; + else if (strobe) + sample_held <= sample_fifo_i[5+64+16+WIDTH-1:5+64+16]; + assign error = send_error; assign ack = send_ack; |