Documentos de Académico
Documentos de Profesional
Documentos de Cultura
and WANs (Wide Area Networks) are restricted to connecting cities, countries.
Several topologies are dominant in the
LAN connection, like star, bus, and token ring.
IEEE standardized LANs protocols, like IEEE
802.3 Ethernet, IEEE 802.4 Token-Bus, and
IEEE 802.5 Token-Ring. The Ethernet technology uses IEEE 802.3 CSMA/CD protocol
for determination of physical network access.
And the protocol is defined in the Data Link
Layer of OSI (Open System Interconnection).
The Data Link Layer contains LLC (Logical
Link Control) sub- layer and MAC (Media Access Control) sub- layer. Different IEEE 802.x
protocols distributed in the MAC sub- layer
shares the same 802.2 LLC standard. IEEE
802.3 CSMA/CD is general called an Ethernet
MAC (Media Access Controller).
The Ethernet MAC is the most widely
used interconnection mechanism for todays
2. Background
The CSMA/CD (Carrier Sense Multiple
Access with Collision Detection) is the most
widely used interconnection mechanism for
todays LAN systems, such as adapter, switching hub, bridge and so on. With the demand
towards higher speed, the 100 Mbps Ethernet
becomes popular and acceptable on the market.
The MAC units are the common packet access
mechanism of such Ethernet devices. In order
to reduce the design flow and the
time-to- market of communication devices, we
need an integrated 10/100 Mbps Ethernet MAC
Soft IP.
In a typical high performance network interface, there are three major portions in the
SGRAM
Store and
Forward
Tx FIFO
&
DMA, Snoop
(Transmitter)
Rx FIFO
&
DMA
(Receiver)
Tx MAC
Rx MAC
# of MAC unit
Transmitter
Receiver
802.3 CSMA/CD
MII
MII
MAC
IP
PCI Interface
Flash EPROM
Tx FIFO
Micro-Machine
&
System Control
Block
Tx/RX FIFO
Controller
Rx FIFO
10/100 Mbps
MAC
Serial
Interface
MII
Interface
performing the data transmission. The centralized or distributed bus arbiter can arbitrate the use of the memory bus.
(4) Transmit and receive FIFO: The unit
performs the packet queuing. The requirement of FIFO is to temporal store the
frame transmitted to or from PHY layer. In
the design of Ethernet devices, the small
memory is to acquire the time of packet
scheduling and to avoid the packet loss due
to underflows or overflows of packets.
(5) MII: The interface is used to provide media independence for various forms of unshielded/shielded twisted pair wiring, fiber
optic cabling, and other potential media so
that identical media access controller may
be used with any of these media. This interface provides independent 4-bit width
transmit and receive data paths. And synchronous data transmissions trigger with
RCLK and TCLK, which are provided
from PHYSICAL layer.
The architecture can be divided into
two portions. One is the receiver circuit (Rx
MAC), and the other is the transmitter circuit
(Tx MAC). They are shown in Figure 3.
Rx DATA
Rx
CONTROL
Rx
CONTROL
Rx DMA
Rx CONTROL
&
STATUS
Rx FIFO
&
FIFO
CONTRO
L
Rx DATA
RECEIVE
Rx
CONTROL
Rx
STATUS
Rx DATA
Tx
CONTROL
SNOOP
Tx
CONTROL
Tx DMA
FLOW
CONTROL
Tx
CONTROL
Tx CONTROL
&
STATUS
Tx FIFO
&
FIFO
Tx
CONTROL CONTRO Tx DATA
L
TRANSMIT
Tx DATA
Rx
DATA
Rx DATA
MII
PORT
Tx DATA
Tx
CONTROL
Tx
STATUS
Tx DATA
Tx
DATA
TransmitFrame
Transmit Eanble?
yes
assemble frame
yes
deferring on?
no
start transmission
no
collision Detect
no
send jam
no
transmission
done?
increment
attempts
too many
attempts?
no
yes
yes
compute backoff
Done:
transmitDIsabled
Done:
transmitOK
Done:
excessiveCollisionError
ReceiveFrame
Receive Eanble?
yes
start receiving
no
no
done receiving?
yes
yes
yes
no
no
no
recognize
address?
valid frame
check
sequence?
no
yes
extra bits?
yes
valid length field?
yes
no
yes
no
dissemable
frame
Done:
receiveDisabled
Done:
frametooLong
Done:
lengthError
Done:
receiveOK
Done:
alignment Error
Done:
frameCheckError
Mbps half and full duplex mode. The reception/transmission of frames need to be scheduled by the switch mechanism. Hence, we
need the FIFO design to buffer the
transmission requests of frames. The MAC
provides these features described as follows:
l Supports for reconfiguration: We can
configure the desired number of MAC IP
through the parameterized generator.
l Supports for reuse: Reusing this IP to
different network devices with MAC. If
the specification of MAC is clear enough,
the reuse of this IP is easy.
l Supports for Automatic Test Pattern Generator: Using the generator to simulate
those situations of packet transmission.
l Supports for Switch RTL simulation environment: Using the integrated Switch
Controller & MAC IP to simulate the validity of MAC functions. Through the
simulator, the observed results will be
stored into a report.
l Supports for Report Analysis: Using
Report Analyzer to indicate these situations of packet transmission writing in the
simulation report.
l Physical proof & demo environment:
Using TSMC 0.6 m CMOS technology
to implement. And Uses Xilinx Virtex
FPGA chip & demo board for revealing
demo environment.
4.3. Configuration Information and Parameters
Due to the different requirements of designers, we design the parametric program to
auto-generate MAC RTL codes. Due to the design automation, user can utilize the parametric
configuration to get the MAC IP. The ge nerator of MAC units is shown in Figure 6.
For example, we illustrate one and six
port MAC IP respectively. The generator of
MAC units is shown in Figure 6. We can select
the port numbers of MAC in this C program.
MAC Verification
Switch System
Model
&
Emulating
Network
Environment
Individual Rx/
Tx MAC
Testing
FPGA
&
Bus Modeling
Simulation
Individual Rx/Tx
Verifcation
Environment
J-TAG
download cable
Data/Signals
Displayer
(I/O Board)
Figure 11. The prototype of the MAC demo
system
Table 2. The download report of Virtex Chip
Device utilization summary:
Number of External 1 out of 4
25%
GCLKIOBs
Number of External 44 out of 316 13%
IOBs
Number of SLICEs
1090 out of 35%
3072
Number of GCLKs
4 out of 4
100%
Number of TBUFs
726 out of 22%
3200
Table 3. The timing analysis of FPGA
Timing summary:
Timing errors: 0 Score: 0
Constraints cover 154291 paths, 2084 nets,
and 7362 connections (100.0% coverage)
Design statistics:
Minimum period: 53.036 ns (Maximum
frequency: 18.855MHz)
Maximum net delay: 13.729 ns
6. Conclusion
We have presented the design of a MAC
IP for the 10/100 Mbps Ethernet network. The
MAC IP can be utilized in different Ethernet
devices. In the goals of reducing design flow
and accelerating time-to- market, we have designed a MAC unit generator. Through automatic port(s) configuration, designers can integrate the MAC unit(s) with other circuits into a
system chip. The FPGA design flow helps us
to develop a prototype speedily. We also provide a switch system simulator to serve as the
verification environment. And a report analyzer helps us to analyze the timing and status
of packet transmission between Rx/Tx MAC
and switch fabric. Currently, we are engaged in
the modification of FPGA demo system to
support dynamic packet streams downloading
through the J-TAG download cable. Gigabit
Network is rising and flourishing now, the integrated 10/100/1000 Mbps Ethernet MAC IP
will be utilized to support the development of
Gigabit Ethernet devices.
References
1. H. E. Meleis, and N.S. Dimitrios, Designing Communication Subsystems for
High-Speed Networks, IEEE Network,
Vol. 64, pp. 40-46, July 1992.
2. IEEE 802.3u, IEEE 802.3z, IEEE 802.3x,
and IEEE Std. 802.3, fourth edition, 1993.
3. S. Sathaye, K.K. Ramakrishnan, and
H.Yang, FIFO design for a high-speed
network interface, Local Computer Networks, 1994. Proceedings, 19th Conference
on, pp. 2-11, 1994.
4. Switched Ethernet Controller, GT-48001
Rev. 1.1, Galileo Technology, Dec. 19,
1996.
5. J. L. Hennessy and D. A. Patterson,
Computer Architecture A Quantitative
Approach, 2nd Edition, Morgan Kaufmann
publishers, Inc. 1996.