Specifications
Layered Software Model
Architectural Layers of a Nios II MicroC/OS-II software application
A
p
p
l
i
c
a
t
i
o
n
A
p
p
l
i
c
a
t
i
o
n
-
s
p
e
c
i
f
i
c
s
y
s
t
e
m
i
n
i
t
i
a
l
i
z
a
t
i
o
n
N
i
c
h
e
S
t
a
c
k
T
C
P
/
I
P
S
t
a
c
k
s
o
f
t
w
a
r
e
c
o
m
p
o
n
e
n
t
M
i
c
r
o
C
/
O
S
-
I
I
H
A
L
A
P
I
S
o
f
t
w
a
r
e
d
e
v
i
c
e
d
r
i
v
e
r
s
Nios II processor
system hardware
Hardware
Software
Each layer encapsulates the specific implementation details of that layer, abstracting the data for the next
outer layer. However, the hierarchy of layers is not absolute. For example, the application makes system
calls directly to the MicroC/OS-II or HAL API layers for services that do not require networking.
For more information, refer to the "Ethernet and the NicheStack TCP/IP Stack - Nios II Edition" chapter
of the Nios II Software Developer’s Handbook.
Related Information
Ethernet and the NicheStack TCP/IP Stack - Nios II Edition on page 11-1
Writing a New Ethernet Device Driver
The easiest way to write a new Ethernet device driver is to start with Altera’s implementation for the
Standard Microsystems Corporation (SMSC) lan91c111 device, and modify it to suit your Ethernet media
access controller (MAC). This section assumes you take this approach. Starting from a known working
example makes it easier for you to learn the most important details of the NicheStack TCP/IP Stack
implementation.
The source code for the LAN91C111 10/100 Non-PCI Ethernet Single Chip MAC + PHY driver is
provided with the Quartus II software located at <Altera installation>/ip/altera/sopc_builder_ip/
altera_avalon_lan91c111/UCOSII. For the sake of brevity, this section refers to this directory as <SMSC
path>. The source files are in the <SMSC path>/src/iniche and <SMSC path>/inc/iniche directories.
A number of useful NicheStack TCP/IP Stack files are installed with the Nios II Embedded Design Suite
(EDS), under the <Nios II EDS install path>/components/altera_iniche/UCOSII directory. For the sake
of brevity, this chapter refers to this directory as <iniche path>.
For more information about the NicheStack TCP/IP Stack implementation, refer to the NicheStack
Technical Reference Manual, available on the Altera website.
7-12
Layered Software Model
NII5V2
2015.05.14
Altera Corporation
Developing Device Drivers for the Hardware Abstraction Layer
Send Feedback