Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from pulp-platform/sw_debug
Software debugging improvements
- Loading branch information
Showing
3 changed files
with
28 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,27 @@ | ||
# add fc execution trace | ||
set rvcores [find instances -recursive -bydu riscv_core -nodu] | ||
set fpuprivate [find instances -recursive -bydu fpu_private] | ||
|
||
if {$rvcores ne ""} { | ||
|
||
add wave -group "Software Debugging" $rvcores/clk_i | ||
add wave -group "Software Debugging" -divider "Instructions at ID stage, sampled half a cycle later" | ||
add wave -group "Software Debugging" $rvcores/riscv_tracer_i/insn_disas | ||
add wave -group "Software Debugging" $rvcores/riscv_tracer_i/insn_pc | ||
add wave -group "Software Debugging" $rvcores/riscv_tracer_i/insn_val | ||
add wave -group "Software Debugging" -divider "Program counter at ID and IF stage" | ||
add wave -group "Software Debugging" $rvcores/pc_id | ||
add wave -group "Software Debugging" $rvcores/pc_if | ||
add wave -group "Software Debugging" -divider "Register File contents" | ||
add wave -group "Software Debugging" $rvcores/id_stage_i/registers_i/riscv_register_file_i/mem | ||
if {$fpuprivate ne ""} { | ||
add wave -group "Software Debugging" $rvcores/id_stage_i/registers_i/riscv_register_file_i/mem_fp | ||
} | ||
|
||
} | ||
|
||
configure wave -namecolwidth 250 | ||
configure wave -valuecolwidth 100 | ||
configure wave -justifyvalue left | ||
configure wave -signalnamewidth 1 | ||
configure wave -timelineunits ns |
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
File renamed without changes.