1. About This Document
2. Intel® Simics® Simulator and Virtual Platforms
3. Intel® Simics® Simulator for Intel® FPGAs Device Portfolio
4. Installing the Intel® Simics® Simulator for Intel® FPGAs
5. Getting Started with Intel® Simics® Simulator
6. Debugging Target Software
7. Networking with the Simulated Target System
8. Intel® Simics® Scripting
9. Software Debug Examples with Intel® Simics® Simulator
10. Document Revision History for Intel® Simics® Simulator for Intel FPGAs User Guide
A. Intel® Simics® Simulator Command Reference
5.3.1. Version of the Intel® Simics® Simulator for Intel FPGAs Software
5.3.2. Simulation Run Control from CLI
5.3.3. Intel® Simics® Simulator Command Scope
5.3.4. Intel® Simics® Simulator CLI Variables and Operations
5.3.5. Intel® Simics® Simulator CLI Command Completion and Command History
5.3.6. Intel® Simics® Command-Line Interface Help
5.3.7. Capture of CLI Session to a File
5.3.8. Intel® Simics® Simulator File Location and Intel® Simics® Search Path
8.1.2. Command Return Values
The return value of a command is printed on the console unless it is used as an argument to some other command. Parenthesis () are used to group a command with arguments together, allowing the return value to be used as an argument. The return value can also be used as a namespace in another command. Variables can be used in the same way.
The following capture shows some examples of using the value returned by a command in another command:
#Intel Simics simulator CLI simics> $address = 0xffe00000 simics> set $address 20 simics> echo "The value at address " + $address + " is " + (get $address) The value at address 4292870144 is 20 simics> $id = 0 simics> system.board.fpga.soc_inst.hps_subsys.agilex_hps.core[$id].print-time -------------------------------------------------------- Processor Steps Cycles Time (s) -------------------------------------------------------- system....core[0] 187271821179 1475824027943 18446.556 -------------------------------------------------------- simics> $cpu = system.board.fpga.soc_inst.hps_subsys.agilex_hps.core[$id] simics> $cpu.print-time -------------------------------------------------------- Processor Steps Cycles Time (s) -------------------------------------------------------- agilex.hps.core[0] 187271821179 1475824027943 18446.556 --------------------------------------------------------
Parenthesis can also be used to break a command with its arguments across multiple lines, making it easier to read scripts with expressions and nested command invocations.