-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Usage | ||
|
||
## Prepare Prof Input Vcd | ||
|
||
This step is integrated into nix build flow. | ||
|
||
e.g., the following command will generate prof vcd for case 'codegen.vadd_vv' to directory 'result-prof-vcd' | ||
``` | ||
nix build --impure .#t1.blastoise.t1rocketemu.run.codegen.vadd_vv.vcs-prof-vcd -o result-prof-vcd | ||
``` | ||
|
||
NOTE: only 't1rocketemu' is supported | ||
|
||
## Run profiler | ||
|
||
``` | ||
nix run .#t1.profiler <INPUT_VCD> <OUTPUT_DIR> | ||
``` | ||
|
||
e.g. run `nix run .#t1.profiler result-prof-vcd/*.vcd prof-result`, | ||
the profiler will generate various analysis results in 'prof-result' directory. | ||
|
||
### Disassemble Support | ||
|
||
The profiler depends on `spike-dasm` to do disassemble and | ||
you need to set path of 'spike-dasm' to environment variable `SPIKE_DASM` | ||
|
||
``` | ||
export SPIKE_DASM=$(nix build --print-out-paths .#spike)/bin/spike-dasm | ||
``` | ||
|
||
If `SPIKE_DASM` is not set, all disassembles in `inst_map.txt` become '<unavail>'. |