-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* macro for declaring dpi functions in profiler * vanilla_core_trace.def * adds pc histogram collector * adds PC_HIST argument to make * comment note * refactor histogram structure * fixes instance name setting * moves histogram code out of profiler * fast-functional pc histogram * cleanup * scoreboard tracker module * parameter for classifying long ops * cleanup in profiler * simv-pc-histogram * detailed stall breakdown * remove pc hist from trace * bugfix for clearing scoreboard * counts icache miss in id bubble tracking * track stall_icache_store * prioritize stall_all stalls * revert * revert * remove unused file * revert * revert * cleanup * remove unused ifdef * revert * revert * revert * revert * cleanup * fixup * stall_ifetch_wait reports pc in mem stage * scoreboard tracker pkg * remove debug * [spmd] stall_remote_ld_wb test * [testbenches] verilator workaround * [vanilla_scoreboard_tracker] enum to struct * [vanilla_core_pc_histogram] omit wb stalls * [scoreboard_tracker] fixup * restores wb stalls * [vanilla_pc_histogram] removes macros, writes out instead instead * [scoreboard_tracker] fix * [pc_histogram] style fix * [pc_histogram] BSG_ABSTRACT_MODULE * [pc_histogram] bug fix
- Loading branch information
Showing
17 changed files
with
1,170 additions
and
322 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
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
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
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
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
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,15 @@ | ||
bsg_tiles_X= 1 | ||
bsg_tiles_Y= 1 | ||
|
||
all: main.run | ||
|
||
include ../Makefile.include | ||
|
||
RISCV_LINK_OPTS = -march=rv32imaf -nostdlib -nostartfiles | ||
|
||
main.riscv: $(LINK_SCRIPT) main.o | ||
$(RISCV_LINK) main.o -o $@ $(RISCV_LINK_OPTS) | ||
|
||
|
||
include ../../mk/Makefile.tail_rules | ||
|
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,67 @@ | ||
#include "bsg_manycore_arch.h" | ||
#include "bsg_manycore_asm.h" | ||
|
||
//.data | ||
// float_dmem_arr: .space 64 // array of 16 floats | ||
//.section .dram, "aw" | ||
// float_dram_arr: .space 64 | ||
|
||
.section .dram, "aw" | ||
dram_word: .word -1 | ||
|
||
.text | ||
bsg_asm_init_regfile | ||
|
||
// test1 | ||
test1: | ||
la x1, dram_word | ||
addi x2, x0, -1 | ||
// prime | ||
lw x3, 0(x1) | ||
lw x4, 64(x1) | ||
bne x2, x3, fail | ||
// do many remote loads | ||
// first block | ||
lw x4, 0(x1) | ||
lw x5, 4(x1) | ||
lw x6, 8(x1) | ||
lw x7, 12(x1) | ||
lw x8, 16(x1) | ||
lw x9, 20(x1) | ||
lw x10, 24(x1) | ||
lw x11, 28(x1) | ||
lw x12, 32(x1) | ||
lw x13, 36(x1) | ||
lw x14, 40(x1) | ||
lw x15, 44(x1) | ||
lw x16, 48(x1) | ||
lw x17, 52(x1) | ||
lw x18, 56(x1) | ||
lw x19, 60(x1) | ||
// second block | ||
lw x20, 64(x1) | ||
lw x21, 68(x1) | ||
lw x22, 72(x1) | ||
lw x23, 76(x1) | ||
lw x24, 80(x1) | ||
lw x25, 84(x1) | ||
lw x26, 88(x1) | ||
lw x27, 92(x1) | ||
lw x28, 96(x1) | ||
lw x29, 100(x1) | ||
lw x30, 104(x1) | ||
lw x31, 108(x1) | ||
div x1, x3, x2 | ||
// lw x4, 112(x1) | ||
// lw x4, 116(x1) | ||
// lw x4, 120(x1) | ||
// lw x4, 124(x1) | ||
bne x3, x2, fail | ||
pass: | ||
bsg_asm_finish(IO_X_INDEX, 0) | ||
pass_loop: | ||
beq x0, x0, pass_loop | ||
fail: | ||
bsg_asm_fail(IO_X_INDEX, 0) | ||
fail_loop: | ||
beq x0, x0, fail_loop |
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
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
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
Oops, something went wrong.