Chapter 10: Transceiver Reconfiguration Controller
10–29
Procedures for Reconfiguration
March 2012
Altera Corporation
Altera Transceiver PHY IP Core
User Guide
Example 10–4
illustrates the reconfiguration of logical channel 0 using a MIF with a
base address of 0x100.
Direct Write Reconfiguration
Follow these steps to reconfigure a transceiver setting using a series of Avalon-MM
direct writes.
1. Write the logical channel number to the Streamer
logical
channel
register.
2. Write Direct Mode, 2'b01, to the Streamer
control
and
status
register
mode
bits.
3. Write the offset address to the Streamer
offset
register.
4. Write the offset data to the Streamer
data
register.
5. Write the Streamer
control
and
status
register
write
bit to 1'b1 to initiate a write
of all the data set in the previous steps.
6. Repeat steps
3
through
5
if the offset data
length
is greater than 1. Increment the
offset value by 1 for each additional data record.
7. Read the
control
and
status
register
busy
bit. When the
busy
bit is deasserted, the
operation has completed.
Example 10–4. Reconfiguration of Logical Channel 0 Using A MIF
#Setting logical channel 0
write_32 0x38 0x0
#Setting Streamer mode to 0
write_32 0x3A 0x0
#Setting Streamer offset register to the MIF base address (0x0)
write_32 0x3B 0x0
#Setting data register with the MIF base address
write_32 0x3C 0x100
#Writing all data to the Streamer
write_32 0x3A 0x1
#Setting Streamer Module offset for Start MIF stream
write_32 0x3B 0x1
#Setting data register with 0x1 to setup for streaming
write_32 0x3C 0x1
#Writing all data to the Streamer to start streaming the MIF
write_32 0x3A 0x1
#Read the busy bit to determine when the write has completed
read_32 0x3A