summaryrefslogtreecommitdiffstats
path: root/usrp2/fifo/packet_router.v
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-12-11 17:44:27 -0800
committerJosh Blum <josh@joshknows.com>2010-12-11 17:44:27 -0800
commit179c651716798bd7b3aaa74c6a546f041e2e3688 (patch)
tree22930153d396cb1745884b1b7f120cc74847debe /usrp2/fifo/packet_router.v
parent6ab84f8f1a51ecd7eb9562f9e2fb52f893721c43 (diff)
downloaduhd-179c651716798bd7b3aaa74c6a546f041e2e3688.tar.gz
uhd-179c651716798bd7b3aaa74c6a546f041e2e3688.tar.bz2
uhd-179c651716798bd7b3aaa74c6a546f041e2e3688.zip
packet_router: raise enable for bram reads the cycle before as well
Diffstat (limited to 'usrp2/fifo/packet_router.v')
-rw-r--r--usrp2/fifo/packet_router.v3
1 files changed, 2 insertions, 1 deletions
diff --git a/usrp2/fifo/packet_router.v b/usrp2/fifo/packet_router.v
index df1ba7351..5118c69b3 100644
--- a/usrp2/fifo/packet_router.v
+++ b/usrp2/fifo/packet_router.v
@@ -328,6 +328,7 @@ module packet_router
(cpu_inp_addr == cpu_inp_line_count_reg)? 4'b0010 : (
4'b0000));
+ wire cpu_inp_enb = (cpu_inp_state == CPU_INP_STATE_UNLOAD)? (cpu_inp_ready & cpu_inp_valid) : 1'b1;
assign cpu_inp_valid = (cpu_inp_state == CPU_INP_STATE_UNLOAD)? 1'b1 : 1'b0;
assign cpu_inp_hs_stat = (cpu_inp_state == CPU_INP_STATE_WAIT_CTRL_HI)? 1'b1 : 1'b0;
@@ -337,7 +338,7 @@ module packet_router
.ENA(wb_stb_i & (which_buf == 1'b1)),.SSRA(0),.WEA(wb_we_i),
//port B = packet router interface from CPU (output only)
.DOB(cpu_inp_data[31:0]),.ADDRB(cpu_inp_addr),.CLKB(stream_clk),.DIB(36'b0),.DIPB(4'h0),
- .ENB(cpu_inp_ready & cpu_inp_valid),.SSRB(0),.WEB(1'b0)
+ .ENB(cpu_inp_enb),.SSRB(0),.WEB(1'b0)
);
always @(posedge stream_clk)