Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

6.3.3.3. Using Software to Verify Hardware

Many hardware developers use test benches and test harnesses to verify their logic in simulations. These strategies can be very time consuming. Instead of relying on simulations for all your verification tasks, you can test your logic using software or scripts, as the figure below illustrates.

This system uses the JTAG interface to access components connected to the system interconnect fabric and to create stimuli for the system. If you use the JTAG server provided by the Intel® Quartus® Prime programmer, this system can also be located on a network and accessed remotely. You can download software to the Nios® II processor using the Nios® II SBT. You can also use the Nios® II JTAG debug core to transmit files to and from your embedded system using the host file system. Using the System Console you can access components in your system and also run scripts for automated testing purposes.

Using the Intel® Quartus® Prime In-System Memory Content Editor, you can create stimuli for the two components that control external peripherals. You can also use the In-System Memory Content Editor to place the embedded system in reset while new stimulus values are sent to the system. The In-System Memory Editor supports Tcl scripting, which you can use to automate the verification process. All of the verification techniques described in this section can be scripted, allowing many test cycles to be executed without user interaction.

To learn more about using the host file system refer to the Host File System software example design available with the Nios® II EDS. The Developing Nios® II Software chapter of the Embedded Design Handbook also includes a significant amount of information about the system file system.

Figure 266. Script Controlled Verification

To learn more about the verification and scripting abilities outlined in the example above, refer to the following documentation: