AN 696: Using the JESD204B MegaCore Function in Arria V Devices

ID 683843
Date 5/11/2015
Public

1.5. Using the System Console Tool to Execute Commands

With the Avalon to JTAG Master Bridge, the System Console tool can access the RX registers of the JESD204B MegaCore function. The System Console tool issues commands to reset and initiate the JESD204B MegaCore function link in the reference design.

This design example uses a Tcl script called main.tcl that consists of several different procedures with different functionality.

Note: Program the Arria V GT device with the .sof file generated in the previous section before launching the System Console. Having both the programmer and System Console open simultaneously can cause programming errors.

To launch the System Console, perform the following steps:

  1. Launch the Quartus II software.
  2. On the Tools menu, select System Console and click System Console.
  3. Ensure that the present working directory contains main.tcl

The following table lists the procedures in main.tcl. You can type in a procedure name and its value to execute the commands.

Table 8.  Description of Procedures in main.tcl

Command Name

Description

read_rxstatus3 Read JESD204 RX status 3 register (read back data in hexadecimal value). This signal is asserted to indicate:
  • RX CDR PLL is locked to the RX data.
  • RX CDR transits from LTR to LTD mode for each lane.
read_rxstatus4 Read JESD204 RX status 4 register (read back data in hexadecimal value). This signal is asserted to indicate the current state of RX DLL code group synchronization state machine for each lane.
read_rxstatus5 Read JESD204 RX status 5 register (read back data in hexadecimal value). This signal is asserted to indicate the current state of RX DLL frame synchronization state machine for each lane.
read_rxstatus7 Read JESD204 RX status 7 register (read back data in hexadecimal value). This signal is asserted to indicate the status of RX DLL user data phase for each lane.
read_ilas_octet0 Read ILAS octet 0 register (read back data in hexadecimal value). This signal links the control configuration fields in octets for configuration checking.
read_ilas_octet1 Read ILAS octet 1 register (read back data in hexadecimal value). This signal links the control configuration fields in octets for configuration checking.
read_ilas_octet2 Read ILAS octet 2 register (read back data in hexadecimal value). This signal links the control configuration fields in octets for configuration checking.
read_ilas_octet3 Read ILAS octet 3 register (read back data in hexadecimal value). This signal links the control configuration fields in octets for configuration checking.
read_rx_err0 Read JESD204 RX error status 0 register (read back data in hexadecimal value). This signal indicates the error status in the MegaCore's RX path.
read_rx_err1 Read JESD204 RX error status 1 register (read back data in hexadecimal value). This signal indicates the error status in the MegaCore's RX path.
reset Global reset.
sloopback 1 Enable serial loopback.
sloopback 0 Disable serial loopback.

The following example shows the execution of the above commands in the Tcl Console.

source main.tcl

sloopback 0
>> Disable serial loopback

reset
>> Reset the whole reference design system after disabling serial loopback 
>> Reset Done!
		
read_rxstatus3
>> Performing a read on rxstatus3 register...
>> The rxstatus3 is 0x00000003
>> Info: Closed JTAG Master Service

read_rxstatus4
>> Performing a read on rxstatus4 register...
>> The rxstatus4 is 0x0000000a
>> Info: Closed JTAG Master Service

read_rxstatus5
>> Performing a read on rxstatus5 register...
>> The rxstatus5 is 0x0000000a
>> Info: Closed JTAG Master Service

read_rxstatus7
>> Performing a read on rxstatus7 register...
>> The rxstatus7 is 0x00030003
>> Info: Closed JTAG Master Service

read_ilas_octet0
>> Performing a read on ilas_octet0 register...
>> The ilas_octet0 is 0x810000b9
>> Info: Closed JTAG Master Service

read_ilas_octet1
>> Performing a read on ilas_octet1 register...
>> The ilas_octet1 is 0x0d011f01
>> Info: Closed JTAG Master Service

read_ilas_octet2
>> Performing a read on ilas_octet2 register...
>> The ilas_octet2 is 0x0000202f
>> Info: Closed JTAG Master Service

read_ilas_octet3
>> Performing a read on ilas_octet3 register...
>> The ilas_octet3 is 0x0000fa00
>> Info: Closed JTAG Master Service

read_rx_err0
>> Performing a read on rx_err0 register...
>> The rx_err0 is 0x00000000
>> Info: Closed JTAG Master Service

read_rx_err1
>> Performing a read on rx_err1 register...
>> The rx_err1 is 0x00000000
>> Info: Closed JTAG Master Service

These commands allow the System Console to communicate directly with the JESD204B MegaCore function via the Avalon to JTAG Bridge Master.