Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
printemps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MINOTAuR
printemps
Commits
3820b262
Commit
3820b262
authored
4 years ago
by
Nils Wistoff
Committed by
Florian Zaruba
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tb_wb_dcache: fix whitespaces and header
Signed-off-by:
Nils Wistoff
<
nwistoff@iis.ee.ethz.ch
>
parent
e82d389e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tb/tb_wb_dcache/hdl/tb.sv
+19
-40
19 additions, 40 deletions
tb/tb_wb_dcache/hdl/tb.sv
tb/tb_wb_dcache/tb.list
+1
-1
1 addition, 1 deletion
tb/tb_wb_dcache/tb.list
with
20 additions
and
41 deletions
tb/tb_wb_dcache/hdl/tb.sv
+
19
−
40
View file @
3820b262
...
@@ -11,16 +11,7 @@
...
@@ -11,16 +11,7 @@
// Author: Michael Schaffner <schaffner@iis.ee.ethz.ch>, ETH Zurich
// Author: Michael Schaffner <schaffner@iis.ee.ethz.ch>, ETH Zurich
// Nils Wistoff <nwistoff@iis.ee.ethz.ch>, ETH Zurich
// Nils Wistoff <nwistoff@iis.ee.ethz.ch>, ETH Zurich
// Date: 04.09.2020
// Date: 04.09.2020
// Description: testbench for piton_icache. includes the following tests:
// Description: testbench for nonblocking write-back L1 dcache.
//
// 0) random accesses with disabled cache
// 1) random accesses with enabled cache to cacheable and noncacheable memory
// 2) linear, wrapping sweep with enabled cache
// 3) 1) with random stalls on the memory side and TLB side
// 4) nr 3) with random invalidations
//
// note that we use a simplified address translation scheme to emulate the TLB.
// (random offsets).
`include
"tb.svh"
`include
"tb.svh"
`include
"assign.svh"
`include
"assign.svh"
...
@@ -55,14 +46,14 @@ module tb import ariane_pkg::*; import std_cache_pkg::*; import tb_pkg::*; #()()
...
@@ -55,14 +46,14 @@ module tb import ariane_pkg::*; import std_cache_pkg::*; import tb_pkg::*; #()()
parameter
nWriteVectors
=
20000
;
parameter
nWriteVectors
=
20000
;
parameter
nAMOs
=
20000
;
parameter
nAMOs
=
20000
;
/// ID width of the Full AXI slave port, master port has ID `AxiIdWidthFull + 32'd1`
/// ID width of the Full AXI slave port, master port has ID `AxiIdWidthFull + 32'd1`
parameter
int
unsigned
TbAxiIdWidthFull
=
32'd6
;
parameter
int
unsigned
TbAxiIdWidthFull
=
32'd6
;
/// Address width of the full AXI bus
/// Address width of the full AXI bus
parameter
int
unsigned
TbAxiAddrWidthFull
=
32'd64
;
parameter
int
unsigned
TbAxiAddrWidthFull
=
32'd64
;
/// Data width of the full AXI bus
/// Data width of the full AXI bus
parameter
int
unsigned
TbAxiDataWidthFull
=
32'd64
;
parameter
int
unsigned
TbAxiDataWidthFull
=
32'd64
;
localparam
int
unsigned
TbAxiUserWidthFull
=
32'd1
;
localparam
int
unsigned
TbAxiUserWidthFull
=
32'd1
;
/// Application time to the DUT
/// Application time to the DUT
parameter
time
TbApplTime
=
2
ns
;
parameter
time
TbApplTime
=
2
ns
;
/// Test time of the DUT
/// Test time of the DUT
parameter
time
TbTestTime
=
8
ns
;
parameter
time
TbTestTime
=
8
ns
;
...
@@ -358,8 +349,8 @@ module tb import ariane_pkg::*; import std_cache_pkg::*; import tb_pkg::*; #()()
...
@@ -358,8 +349,8 @@ module tb import ariane_pkg::*; import std_cache_pkg::*; import tb_pkg::*; #()()
// Start AXI port emulation
// Start AXI port emulation
fork
fork
data_mem_port
.
run
();
data_mem_port
.
run
();
bypass_mem_port
.
run
();
bypass_mem_port
.
run
();
join
join
end
end
...
@@ -370,20 +361,20 @@ module tb import ariane_pkg::*; import std_cache_pkg::*; import tb_pkg::*; #()()
...
@@ -370,20 +361,20 @@ module tb import ariane_pkg::*; import std_cache_pkg::*; import tb_pkg::*; #()()
std_nbdcache
#(
std_nbdcache
#(
.
CACHE_START_ADDR
(
CachedAddrBeg
)
.
CACHE_START_ADDR
(
CachedAddrBeg
)
)
i_dut
(
)
i_dut
(
.
clk_i
(
clk_i
),
//
.
clk_i
(
clk_i
),
.
rst_ni
(
rst_ni
),
//
.
rst_ni
(
rst_ni
),
.
flush_i
(
flush_i
),
//
.
flush_i
(
flush_i
),
.
flush_ack_o
(
flush_ack_o
),
//
.
flush_ack_o
(
flush_ack_o
),
.
enable_i
(
enable_i
),
//
.
enable_i
(
enable_i
),
.
miss_o
(
miss_o
),
//
.
miss_o
(
miss_o
),
.
amo_req_i
(
amo_req_i
),
//
.
amo_req_i
(
amo_req_i
),
.
amo_resp_o
(
amo_resp_o
),
//
.
amo_resp_o
(
amo_resp_o
),
.
req_ports_i
(
req_ports_i
),
//
.
req_ports_i
(
req_ports_i
),
.
req_ports_o
(
req_ports_o
),
//
.
req_ports_o
(
req_ports_o
),
.
axi_data_o
(
axi_data_o
),
//
.
axi_data_o
(
axi_data_o
),
.
axi_data_i
(
axi_data_i
),
//
.
axi_data_i
(
axi_data_i
),
.
axi_bypass_o
(
axi_bypass_o
),
//
.
axi_bypass_o
(
axi_bypass_o
),
.
axi_bypass_i
(
axi_bypass_i
)
//
.
axi_bypass_i
(
axi_bypass_i
)
);
);
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
...
@@ -923,15 +914,3 @@ module tb import ariane_pkg::*; import std_cache_pkg::*; import tb_pkg::*; #()()
...
@@ -923,15 +914,3 @@ module tb import ariane_pkg::*; import std_cache_pkg::*; import tb_pkg::*; #()()
end
end
endmodule
endmodule
This diff is collapsed.
Click to expand it.
tb/tb_wb_dcache/tb.list
+
1
−
1
View file @
3820b262
...
@@ -38,4 +38,4 @@
...
@@ -38,4 +38,4 @@
../common/tb_readport.sv
../common/tb_readport.sv
../common/tb_writeport.sv
../common/tb_writeport.sv
hdl/tb_amoport.sv
hdl/tb_amoport.sv
hdl/tb.sv
hdl/tb.sv
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment