1.5.硬件模拟
\(1.5.\)Hardware simulation
Interactive Simulation: We can load an HDL file into a hardware simulator program, which allows us to interactively test various operations of the chip. This mode of testing is called interactive simulation.
Script-Based Simulation: Alternatively, we can write a test script in a special testing language designed for this purpose. This script outlines predetermined tests, enabling systematic testing of the chip's functionality without manual interaction. This mode is called script-based simulation.
Output Comparison: We can record simulation output to an output file and compare it to a desired output stored in a compare file. This allows us to validate the chip's behavior against expected results. Moreover, we can change our test script to compare file, so that it can do comparation.
Additionally, we'll discuss the use of compare files, which enable comparison of simulation outputs with desired results. These files can be generated through behavioral simulation, where the chip logic is implemented in high-level languages and tested before HDL implementation.
System architect: They design how to achieve the functionality, breaking the overall behaviour into smaller chips. They offer:
- A chip API
- A test script
- A compare file
Developer: You receive stub files documenting chip interfaces, along with test scripts and compare files prepared by system architects. Your task will be to write the HDL code to implement the missing functionality.