Scroll to navigation

QTRVSIM_CLI(1) User Commands QTRVSIM_CLI(1)

NAME

qtrvsim_cli - RISC-V CPU simulator for education

SYNOPSIS

qtrvsim_cli [options] FILE

DESCRIPTION

QtRvSim CLI machine simulator

OPTIONS

Displays help on commandline options.
Displays help including Qt specific options.
Displays version information.
Treat provided file argument as assembler source.
Configure CPU to use five stage pipeline.
Disable jump delay slot.
Specify hazard unit implementation [none|stall|forward].
Trace fetched instruction (for both pipelined and not core).
Trace instruction in decode stage. (only for pipelined core)
Trace instruction in execute stage. (only for pipelined core)
Trace instruction in memory stage. (only for pipelined core)
Trace instruction in write back stage. (only for pipelined core)
Print program counter register changes.
Trace writes into memory.
Trace reads from memory.
Print general purpose register changes. You can use * for all registers.
Configure reportor dump to json file.
Dump registers state at program exit.
Dump cache statistics at program exit.
Dump number of CPU cycles till program end.
Dump memory range.
Load memory range.
Expect that program causes CPU trap and fail if it doesn't.
Program should exit with exactly this CPU TRAP. Possible values are I(unsupported Instruction), A(Unsupported ALU operation), O(Overflow/underflow) and J(Unaligned Jump). You can freely combine them. Using this implies expect-fail option.
Data cache. Format policy,sets,words_in_blocks,associativity where policy is random/lru/lfu
Instruction cache. Format policy,sets,words_in_blocks,associativity where policy is random/lru/lfu
L2 cache. Format policy,sets,words_in_blocks,associativity where policy is random/lru/lfu
Memory read access time (cycles).
Memory read access time (cycles).
Memory read access time (cycles).
File connected to the serial port input.
File connected to the serial port output.
Operating system emulation.
File connected to the syscall standard output.
Emulated system root/prefix for opened files
Instruction set to emulate (default RV32IMA)
Limit execution to specified maximum clock cycles

Arguments:

Input ELF executable file or assembler source

SEE ALSO

The full documentation for qtrvsim_cli is maintained as a Texinfo manual. If the info and qtrvsim_cli programs are properly installed at your site, the command

info qtrvsim_cli

should give you access to the complete manual.

February 2025 qtrvsim_cli 0.9.8