diff options
author | Matt Ettus <matt@ettus.com> | 2010-09-22 19:26:12 -0700 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2011-05-26 17:31:19 -0700 |
commit | 294b8a282cc556cdf89650e1e78fd71eed6b844f (patch) | |
tree | 638e2c22062f69cac141d5eb43d6630b467f180b /usrp2/gpif/gpif_wr.v | |
parent | 92a608b2fc874df1a7af16202d626dcc5676fd72 (diff) | |
download | uhd-294b8a282cc556cdf89650e1e78fd71eed6b844f.tar.gz uhd-294b8a282cc556cdf89650e1e78fd71eed6b844f.tar.bz2 uhd-294b8a282cc556cdf89650e1e78fd71eed6b844f.zip |
fix ctrl/resp path to pass all 16 bits of data instead of the bottom bit
typos fixed, everything is connected now, should just have off-by-1 error
lots of debug pins added
Diffstat (limited to 'usrp2/gpif/gpif_wr.v')
-rw-r--r-- | usrp2/gpif/gpif_wr.v | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usrp2/gpif/gpif_wr.v b/usrp2/gpif/gpif_wr.v index 4c6ee9efc..813e27290 100644 --- a/usrp2/gpif/gpif_wr.v +++ b/usrp2/gpif/gpif_wr.v @@ -5,8 +5,8 @@ module gpif_wr output reg gpif_full_d, output reg gpif_full_c, input sys_clk, input sys_rst, - output [18:0] data_o, output src_rdy_o, input dst_rdy_i, - output [18:0] ctrl_o, output ctrl_src_rdy_o, input ctrl_dst_rdy_i, + output [17:0] data_o, output src_rdy_o, input dst_rdy_i, + output [17:0] ctrl_o, output ctrl_src_rdy_o, input ctrl_dst_rdy_i, output [31:0] debug ); reg wr_reg, ep_reg; @@ -57,8 +57,6 @@ module gpif_wr .rclk(sys_clk), .dataout(data_o[17:0]), .src_rdy_o(src_rdy_o), .dst_rdy_i(dst_rdy_i), .occupied(), .arst(sys_rst)); - assign data_o[18] = 0; - // Control Path wire [15:0] ctrl_fifo_space; always @(posedge gpif_clk) @@ -74,6 +72,6 @@ module gpif_wr .src_rdy_o(ctrl_src_rdy_o), .dst_rdy_i(ctrl_dst_rdy_i), .occupied(), .arst(sys_rst)); - assign ctrl_o[18] = 0; + assign debug = { 16'd0, ep_reg, wr_reg, eop, sop, (~ep_reg & wr_reg & ~write_count[8]), src_rdy_int, dst_rdy_int, write_count[8:0]}; endmodule // gpif_wr |