summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-04-01 02:27:46 +0000
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-04-01 02:27:46 +0000
commita26dcb660f7a10703e2d285e09ce22f323d8a78d (patch)
tree36038fdb0eff0db261fc6146254fc3e5dc005ee7
parentc230e35b188a22693cf470581386a0963f435034 (diff)
downloaduhd-a26dcb660f7a10703e2d285e09ce22f323d8a78d.tar.gz
uhd-a26dcb660f7a10703e2d285e09ce22f323d8a78d.tar.bz2
uhd-a26dcb660f7a10703e2d285e09ce22f323d8a78d.zip
address filtering
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10731 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r--simple_gemac/simple_gemac.v12
1 files changed, 9 insertions, 3 deletions
diff --git a/simple_gemac/simple_gemac.v b/simple_gemac/simple_gemac.v
index e6f9c982a..84a997666 100644
--- a/simple_gemac/simple_gemac.v
+++ b/simple_gemac/simple_gemac.v
@@ -20,16 +20,20 @@ module simple_gemac
wire rst_rxclk, rst_txclk;
oneshot_2clk tx_rst_1shot (.clk_in(tx_clk),.in(reset),.clk_out(tx_clk),.out(rst_txclk)); // FIXME clocks
- oneshot_2clk rx_rst_1shot (.clk_in(sys_clk),.in(reset),.clk_out(rx_clk),.out(rst_rxclk));
+ oneshot_2clk rx_rst_1shot (.clk_in(rx_clk),.in(reset),.clk_out(rx_clk),.out(rst_rxclk));
wire [15:0] pause_quanta_rcvd;
+
+ wire [47:0] ucast_addr = 48'hF1F2_F3F4_F5F6;
+ wire [47:0] mcast_addr = 0;
+ wire pass_ucast =1, pass_mcast=0, pass_bcast=1, pass_pause=0, pass_all=0;
simple_gemac_tx simple_gemac_tx
(.clk125(clk125),.reset(rst_txclk),
.GMII_GTX_CLK(GMII_GTX_CLK), .GMII_TX_EN(GMII_TX_EN),
.GMII_TX_ER(GMII_TX_ER), .GMII_TXD(GMII_TXD),
.tx_clk(tx_clk), .tx_data(tx_data), .tx_valid(tx_valid), .tx_error(tx_error), .tx_ack(tx_ack),
- .ifg(SGE_IFG), .mac_addr(48'hF1_F2_F3_F4_F5_F6),
+ .ifg(SGE_IFG), .mac_addr(ucast_addr),
.pause_req(pause_req), .pause_time(pause_time), // We request flow control
.pause_apply(pause_apply), .paused(paused) // We respect flow control
);
@@ -39,6 +43,9 @@ module simple_gemac
.GMII_RX_CLK(GMII_RX_CLK), .GMII_RX_DV(GMII_RX_DV),
.GMII_RX_ER(GMII_RX_ER), .GMII_RXD(GMII_RXD),
.rx_clk(rx_clk), .rx_data(rx_data), .rx_valid(rx_valid), .rx_error(rx_error), .rx_ack(rx_ack),
+ .ucast_addr(ucast_addr), .mcast_addr(mcast_addr),
+ .pass_ucast(pass_ucast), .pass_mcast(pass_mcast), .pass_bcast(pass_bcast),
+ .pass_pause(pass_pause), .pass_all(pass_all),
.pause_quanta_rcvd(pause_quanta_rcvd), .pause_rcvd(pause_rcvd)
);
@@ -51,5 +58,4 @@ module simple_gemac
.paused(paused)
);
-
endmodule // simple_gemac