-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a dataflow-oriented descriptor-based iDMA frontend supporting …
…prefetching - tracer: Add WIP version of the iDMA tracer (#9), add some fixes (#14) - frontends/desc64: Transition Regbus master to AXI master - jobs.json: Add descriptor-based testbench to the job file - frontends/desc64: Update synth module for descriptor frontend - test/frontends: Add testbench for benchmarking (***caution: not to be used as VIP***) - frontends/desc64: Remove unused shared counter - Makefile: Quote paths to handle spaces in paths - frontends/desc64: Add prefetching design
- Loading branch information
1 parent
4456785
commit 23bedba
Showing
32 changed files
with
3,122 additions
and
935 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,24 @@ | ||
# Copyright 2022 ETH Zurich and University of Bologna. | ||
# Solderpad Hardware License, Version 0.51, see LICENSE for details. | ||
# SPDX-License-Identifier: SHL-0.51 | ||
|
||
# Axel Vanoni <[email protected]> | ||
|
||
source scripts/compile_vsim.tcl | ||
vsim tb_idma_desc64_bench -t 1ps \ | ||
-GNumberOfTests=150 \ | ||
-GChainedDescriptors=20 \ | ||
-GSimulationTimeoutCycles=300000 \ | ||
-GTransferLength=24 \ | ||
-GDoIRQ=0 \ | ||
+trace_file=trace-test.log \ | ||
-voptargs=+acc | ||
#-voptargs=-pedantic | ||
|
||
set StdArithNoWarnings 1 | ||
set NumericStdNoWarnings 1 | ||
log -r /* | ||
|
||
source scripts/waves/vsim_fe_desc64.do | ||
|
||
run -all |
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,22 @@ | ||
# Copyright 2022 ETH Zurich and University of Bologna. | ||
# Solderpad Hardware License, Version 0.51, see LICENSE for details. | ||
# SPDX-License-Identifier: SHL-0.51 | ||
|
||
# Axel Vanoni <[email protected]> | ||
|
||
# run frontend tests without chaining | ||
source scripts/compile_vsim.tcl | ||
vsim tb_idma_desc64_top -t 1ps \ | ||
-GNumberOfTests=20 \ | ||
-GMaxChainedDescriptors=1 \ | ||
-GSimulationTimeoutCycles=2000 \ | ||
-voptargs=+acc | ||
#-voptargs=-pedantic | ||
|
||
set StdArithNoWarnings 1 | ||
set NumericStdNoWarnings 1 | ||
log -r /* | ||
|
||
source scripts/waves/vsim_fe_desc64.do | ||
|
||
run -all |
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,21 @@ | ||
# Copyright 2022 ETH Zurich and University of Bologna. | ||
# Solderpad Hardware License, Version 0.51, see LICENSE for details. | ||
# SPDX-License-Identifier: SHL-0.51 | ||
|
||
# Axel Vanoni <[email protected]> | ||
|
||
# run frontend tests with one transfer | ||
source scripts/compile_vsim.tcl | ||
vsim tb_idma_desc64_top -t 1ps -GNumberOfTests=1 \ | ||
-GSimulationTimeoutCycles=200 \ | ||
-GMaxChainedDescriptors=1 \ | ||
-voptargs=+acc | ||
#-voptargs=-pedantic | ||
|
||
set StdArithNoWarnings 1 | ||
set NumericStdNoWarnings 1 | ||
log -r /* | ||
|
||
source scripts/waves/vsim_fe_desc64.do | ||
|
||
run -all |
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,23 @@ | ||
# Copyright 2022 ETH Zurich and University of Bologna. | ||
# Solderpad Hardware License, Version 0.51, see LICENSE for details. | ||
# SPDX-License-Identifier: SHL-0.51 | ||
|
||
# Axel Vanoni <[email protected]> | ||
|
||
# run tests with only chaining | ||
source scripts/compile_vsim.tcl | ||
vsim tb_idma_desc64_top -t 1ps \ | ||
-GMaxChainedDescriptors=100 \ | ||
-GMinChainedDescriptors=100 \ | ||
-GSimulationTimeoutCycles=2000 \ | ||
-GNumberOfTests=1 \ | ||
-voptargs=+acc | ||
#-voptargs=-pedantic | ||
|
||
set StdArithNoWarnings 1 | ||
set NumericStdNoWarnings 1 | ||
log -r /* | ||
|
||
source scripts/waves/vsim_fe_desc64.do | ||
|
||
run -all |
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,18 @@ | ||
# Copyright 2022 ETH Zurich and University of Bologna. | ||
# Solderpad Hardware License, Version 0.51, see LICENSE for details. | ||
# SPDX-License-Identifier: SHL-0.51 | ||
|
||
# Axel Vanoni <[email protected]> | ||
|
||
# run frontend tests with default settings | ||
source scripts/compile_vsim.tcl | ||
|
||
vsim tb_idma_desc64_top -t 1ps -voptargs=+acc | ||
#-voptargs=-pedantic | ||
|
||
source scripts/waves/vsim_fe_desc64.do | ||
|
||
set StdArithNoWarnings 1 | ||
set NumericStdNoWarnings 1 | ||
log -r /* | ||
run -all |
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,17 @@ | ||
onerror {resume} | ||
quietly WaveActivateNextPane {} 0 | ||
add wave -position end i_dut/clk_i | ||
add wave -position end i_dut/rst_ni | ||
add wave -position end i_dut/master_req_o | ||
add wave -position end i_dut/master_rsp_i | ||
add wave -position end i_dut/slave_req_i | ||
add wave -position end i_dut/slave_rsp_o | ||
add wave -position end i_dut/idma_req_o | ||
add wave -position end i_dut/idma_req_ready_i | ||
add wave -position end i_dut/idma_req_valid_o | ||
add wave -position end i_dut/idma_rsp_ready_o | ||
add wave -position end i_dut/idma_rsp_valid_i | ||
add wave -position end i_dut/idma_busy_i | ||
add wave -position end i_dut/irq_o | ||
|
||
quietly wave cursor active 1 |
Oops, something went wrong.