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

Subversion Repositories srdydrdy_lib

[/] [srdydrdy_lib/] [trunk/] [examples/] [bridge/] [rtl/] [bridge.vh] - Blame information for rev 4

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 ghutchis
 
2
// Address size for number of ports.  Default value 4,
3
// which will allow design to scale up to 16 ports
4
`define PORT_ASZ    4
5
 
6
// We will have only 4 ports in our sample design
7
`define NUM_PORTS   4
8
 
9
// Data structure from parser to FIB.  Contains MAC DA,
10
// MAC SA, and source port
11
`define PAR_DATA_SZ (48+48+4)
12
`define PAR_MACDA    47:0
13
`define PAR_MACSA    95:48
14
`define PAR_SRCPORT  99:96
15
 
16
// number of entries in FIB table
17
`define FIB_ENTRIES   256
18
`define FIB_ASZ       $clog2(`FIB_ENTRIES)
19
 
20
// FIB entry definition
21
`define FIB_ENTRY_SZ  60
22
`define FIB_MACADDR   47:0     // MAC address
23
`define FIB_AGE       55:48    // 8 bit age counter
24
`define FIB_PORT      59:56    // associated port
25
 
26
`define FIB_MAX_AGE   255      // maximum value of age timer
27
 
28
`define MULTICAST     48'h0100000000  // multicast bit

powered by: WebSVN 2.1.0

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