aboutsummaryrefslogtreecommitdiffstats
path: root/eth/rtl/verilog/Reg_int.v
diff options
context:
space:
mode:
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-04-02 21:18:41 +0000
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-04-02 21:18:41 +0000
commit312b6d0bbdd0a61156d32cb2e9dcbc3f98389f49 (patch)
tree5d24480afead048cedbce838fc3d756155abd573 /eth/rtl/verilog/Reg_int.v
parent89f493c9fda0ffa73f644823d37e54f5c040c323 (diff)
downloaduhd-312b6d0bbdd0a61156d32cb2e9dcbc3f98389f49.tar.gz
uhd-312b6d0bbdd0a61156d32cb2e9dcbc3f98389f49.tar.bz2
uhd-312b6d0bbdd0a61156d32cb2e9dcbc3f98389f49.zip
Fix for fifo overruns on eth rx in full duplex. Now send re-pause long before pause is done. Reenabled RMON for the time being
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10746 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'eth/rtl/verilog/Reg_int.v')
-rw-r--r--eth/rtl/verilog/Reg_int.v5
1 files changed, 5 insertions, 0 deletions
diff --git a/eth/rtl/verilog/Reg_int.v b/eth/rtl/verilog/Reg_int.v
index f1bea2316..bdf73d8e5 100644
--- a/eth/rtl/verilog/Reg_int.v
+++ b/eth/rtl/verilog/Reg_int.v
@@ -43,6 +43,7 @@ module Reg_int (
output tx_pause_en,
output [15:0] fc_hwmark,
output [15:0] fc_lwmark,
+ output [15:0] fc_padtime,
// RMON host interface
output [5:0] CPU_rd_addr,
@@ -141,6 +142,9 @@ module Reg_int (
RegCPUData #( 13 ) U_0_037( MIIADDRESS , 7'd037, 13'h0000, RST_I, CLK_I, Wr, ADR_I, DAT_I[12:0] );
RegCPUData #( 16 ) U_0_038( MIITX_DATA , 7'd038, 16'h0000, RST_I, CLK_I, Wr, ADR_I, DAT_I[15:0] );
+ // New FC register
+ RegCPUData #( 16 ) U_0_041( fc_padtime , 7'd041, 1'h0, RST_I, CLK_I, Wr, ADR_I, DAT_I[15:0] );
+
// Asserted in first clock of 2-cycle access, negated otherwise
wire Access = ~ACK_O & STB_I & CYC_I;
@@ -231,6 +235,7 @@ module Reg_int (
7'd38: DAT_O <= MIITX_DATA;
7'd39: DAT_O <= MIIRX_DATA;
7'd40: DAT_O <= MIISTATUS;
+ 7'd41: DAT_O <= fc_padtime;
endcase
end