OpenCores
URL https://opencores.org/ocsvn/ethmac10g/ethmac10g/trunk

Subversion Repositories ethmac10g

[/] [ethmac10g/] [trunk/] [rtl/] [verilog/] [rx_engine/] [rxDAchecker.v] - Blame information for rev 72

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 fisher5090
//////////////////////////////////////////////////////////////////////
2 69 fisher5090
////                                                              ////
3
//// MODULE NAME: Destination Address Check                       ////
4
////                                                              ////
5 39 fisher5090
//// DESCRIPTION: Destination Address Checker of  10 Gigabit      ////
6 69 fisher5090
////              Ethernet MAC.                                   ////
7
////                                                              ////
8 39 fisher5090
//// This file is part of the 10 Gigabit Ethernet IP core project ////
9 69 fisher5090
////  http://www.opencores.org/projects/ethmac10g/                ////
10
////                                                              ////
11
//// AUTHOR(S):                                                   ////
12
//// Zheng Cao                                                    ////
13
////                                                              ////
14 39 fisher5090
//////////////////////////////////////////////////////////////////////
15 69 fisher5090
////                                                              ////
16
//// Copyright (c) 2005 AUTHORS.  All rights reserved.            ////
17
////                                                              ////
18 39 fisher5090
//// This source file may be used and distributed without         ////
19
//// restriction provided that this copyright statement is not    ////
20
//// removed from the file and that any derivative work contains  ////
21
//// the original copyright notice and the associated disclaimer. ////
22
////                                                              ////
23
//// This source file is free software; you can redistribute it   ////
24
//// and/or modify it under the terms of the GNU Lesser General   ////
25
//// Public License as published by the Free Software Foundation; ////
26
//// either version 2.1 of the License, or (at your option) any   ////
27
//// later version.                                               ////
28
////                                                              ////
29
//// This source is distributed in the hope that it will be       ////
30
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
31
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
32
//// PURPOSE.  See the GNU Lesser General Public License for more ////
33
//// details.                                                     ////
34
////                                                              ////
35
//// You should have received a copy of the GNU Lesser General    ////
36
//// Public License along with this source; if not, download it   ////
37 69 fisher5090
//// from http://www.opencores.org/lgpl.shtml                     ////
38
////                                                              ////
39 39 fisher5090
//////////////////////////////////////////////////////////////////////
40
//
41
// CVS REVISION HISTORY:
42
//
43
// $Log: not supported by cvs2svn $
44 69 fisher5090
// Revision 1.1.1.1  2006/05/31 05:59:41  Zheng Cao
45
// first version
46
//
47 39 fisher5090
// Revision 1.1  2005/12/25 16:43:10  Zheng Cao
48
// 
49
// 
50
//
51
//////////////////////////////////////////////////////////////////////
52
 
53
`include "timescale.v"
54
`include "xgiga_define.v"
55
 
56
module rxDAchecker(rxclk,reset,local_invalid, broad_valid, multi_valid, MAC_Addr, da_addr);
57 69 fisher5090
   input  rxclk;
58
   input  reset;
59 39 fisher5090
 
60 69 fisher5090
   output local_invalid;
61
   output broad_valid;
62
   output multi_valid;
63 39 fisher5090
 
64 69 fisher5090
   input [47:0] MAC_Addr;
65
   input [47:0] da_addr;
66
 
67
   parameter TP = 1;
68 39 fisher5090
 
69 69 fisher5090
   reg multi_valid;
70
   reg broad_valid;
71
   reg local_valid;
72
   always @(posedge rxclk or posedge reset) begin
73
         if (reset) begin
74
           multi_valid <=#TP 0;
75
           broad_valid <=#TP 0;
76
           local_valid <=#TP 0;
77
         end
78
         else begin
79
           multi_valid <=#TP (da_addr==`MULTICAST);
80
           broad_valid <=#TP (da_addr==`BROADCAST);
81
           local_valid <=#TP (da_addr==MAC_Addr);
82
         end
83
  end
84 39 fisher5090
 
85 69 fisher5090
  assign local_invalid = 1'b0;//~local_valid & ~multi_valid & ~broad_valid;
86 39 fisher5090
 
87
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.