
1.3. OPEN RISC
15
slave. Furthermore tristate is not used, instead there are two databuses, one in each
direction. The address bus and the data busses are 32 bits wide.
A
0
,D
0
A
0
,D
0
A
0
,D
0
,STB
A
7
,D
7
A
1
,D
1
Arbiter
D
1
,ACK
D
1
D
1
D
0
,
D
1
,ACK
D
7
,
Master
Slave
A
0
,D
0
,STB
Address
Decoder
i_bus_m
i_dat_s, i_bus_s
gnt
gnt
A
0
A
7
Figure 1.7: The Wishbone interconnect bus. In this example Master 0 is addressing
Slave 1. Master 0 has won the arbitration.
We will briefly explain how the Wishbone bus works with a simple example. We
assume a computer system like in Figure 1.5 and that the CPU executes a program
in the memory, that is connected to slave port 1, see Figure 1.7. The CPU places an
address A
0
at the address lines at master port 0 and asserts the signal STB. The arbiter
inside the Wishbone grants the bus to master 0. The address A
0
will now show up on
all slave ports. Address decoding logic routes the asserted STB-signal only to slave
port 1. The memory at slave port 1 places D
1
on the data bus and asserts the signal
ACK. D
1
will now show up on all master ports, but ACK will only be asserted at master
port 0.
1.3.5 Memory Controller
In this lab course we will use a simple memory controller, designated PKMC, designed
by us. PKMC is implemented for this particular system and thus needs no configuration.
PKMC handles all communications with the SRAM, SDRAM and FLASH memory.
Especially ensuring that the SDRAM is refreshed correctly.
1.3.6 Ethernet Controller
The Ethernet IP Core, [10], consists of five modules:
• The MAC (Media Access Control) module, for med by transmit, receive, and
control module
• The MII (Media Independent Interface) Management module
• The Host Interface
Commenti su questo manuale