Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
14
Issues
14
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Platform-independent core collection
Commits
6b2c8891
Commit
6b2c8891
authored
Sep 07, 2022
by
kblantos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Testbench added for AXI cores
parent
1621d6d1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
2092 additions
and
3 deletions
+2092
-3
Manifest.py
testbench/axi/axi4lite32_axi4full64_bridge/Manifest.py
+12
-0
README.md
testbench/axi/axi4lite32_axi4full64_bridge/README.md
+24
-0
run.sh
testbench/axi/axi4lite32_axi4full64_bridge/run.sh
+10
-0
tb_axi4lite32_axi4full64_bridge.vhd
...e32_axi4full64_bridge/tb_axi4lite32_axi4full64_bridge.vhd
+749
-0
Manifest.py
testbench/axi/axi4lite_axi4full_bridge/Manifest.py
+10
-0
README.md
testbench/axi/axi4lite_axi4full_bridge/README.md
+27
-0
run.sh
testbench/axi/axi4lite_axi4full_bridge/run.sh
+10
-0
tb_axi4lite_axi4full_bridge.vhd
.../axi4lite_axi4full_bridge/tb_axi4lite_axi4full_bridge.vhd
+831
-0
Manifest.py
testbench/axi/axi4lite_wb_bridge/Manifest.py
+11
-0
README.md
testbench/axi/axi4lite_wb_bridge/README.md
+20
-0
run.sh
testbench/axi/axi4lite_wb_bridge/run.sh
+11
-0
tb_xaxi4lite_wb_bridge.vhd
testbench/axi/axi4lite_wb_bridge/tb_xaxi4lite_wb_bridge.vhd
+362
-0
Manifest.py
testbench/axi/z7_axi_gpio_expander/Manifest.py
+5
-3
run.sh
testbench/axi/z7_axi_gpio_expander/run.sh
+10
-0
No files found.
testbench/axi/axi4lite32_axi4full64_bridge/Manifest.py
0 → 100644
View file @
6b2c8891
action
=
"simulation"
sim_tool
=
"ghdl"
target
=
"generic"
ghdl_opt
=
"--std=08 -frelaxed-rules"
sim_top
=
"tb_axi4lite32_axi4full64_bridge"
files
=
"tb_axi4lite32_axi4full64_bridge.vhd"
modules
=
{
"local"
:
[
"../../../"
,
"../../../modules/wishbone"
,
"../../../modules/axi"
]}
testbench/axi/axi4lite32_axi4full64_bridge/README.md
0 → 100644
View file @
6b2c8891
This is a testbench in order to verify the behavior of the axi4lite 32-bits
to axi4full 64-bits, bridge. Master is the axi4lite and the slave is axi4full.
For the development of the RTL core and the testbench, the documentation that
taken into account is : "AMBA AXI and ACE Protocol Specification". OSVVM used
as verification methodology and GHDL is the simulator.
NOTE: You can change the simulation time by changing the NOW variable in the stimulus
The testing process is the following:
-
Randomized inputs are given to the Design Under Test in order to check the functionality of the RTL core.
-
FSM coverage. Legal and ilegal states are printed in the end.
-
Assertions are used to check the functionality of the AXI4-Full and AXI4-Lite protocols
How to run the test:
1) For this test you need to install HDLMAKE, GHDL and OSVVM(2020.05+)
2) Add in usr/local/lib/ghdl/vendors/config.sh the path of the OSVVM
3) Compile OSVVM by running the script:
`/usr/local/lib/ghdl/vendors/compile-osvvm --all`
4) run hdlmake makefile
5) run make
6) run ./run.sh
7) (Optional) add in the run.sh --wave=waveform.ghw to see waveform with gtkwave
8) See the results of the test
testbench/axi/axi4lite32_axi4full64_bridge/run.sh
0 → 100755
View file @
6b2c8891
#!/bin/bash -e
#This is a simple script to run simulations in GHDL
TB
=
tb_axi4lite32_axi4full64_bridge
echo
"Running simulation for
$TB
"
ghdl
-r
--std
=
08
-frelaxed-rules
$TB
-gg_seed
=
$RANDOM
testbench/axi/axi4lite32_axi4full64_bridge/tb_axi4lite32_axi4full64_bridge.vhd
0 → 100644
View file @
6b2c8891
This diff is collapsed.
Click to expand it.
testbench/axi/axi4lite_axi4full_bridge/Manifest.py
0 → 100644
View file @
6b2c8891
action
=
"simulation"
sim_tool
=
"ghdl"
target
=
"generic"
ghdl_opt
=
"--std=08 -frelaxed-rules"
sim_top
=
"tb_axi4lite_axi4full_bridge"
files
=
"tb_axi4lite_axi4full_bridge.vhd"
modules
=
{
"local"
:
[
"../../../"
,]}
testbench/axi/axi4lite_axi4full_bridge/README.md
0 → 100644
View file @
6b2c8891
This is a testbench in order to verify the behavior of the axi4lite to axi4full
bridge. Master is the axi4lite and the slave is axi4full.
For the development of the RTL core and the testbench, the documentation that
taken into account is : "AMBA AXI and ACE Protocol Specification". OSVVM used
as verification methodology and GHDL is the simulator.
NOTE: You can change the simulation time by changing the NOW variable in the stimulus
Also, add in the
*run.sh*
the --wave=waveform.ghw option in order to generate waveform
file through GHDL simulator.
The testing process is the following:
-
Randomized values are given to the Design Under Test input signals.
-
FSM coverage. Legal and ilegal states are printed in the end of the simulation.
-
Assertions are used to check the functionality of the AXI4-Full and AXI4-Lite protocols
How to run the test:
1) For this test you need to install HDLMAKE, GHDL and OSVVM(2020.05+)
2) Add in usr/local/lib/ghdl/vendors/config.sh the path of the OSVVM
3) Compile OSVVM by running the script:
`/usr/local/lib/ghdl/vendors/compile-osvvm --all`
4) run hdlmake makefile
5) run make
6) run ./run.sh
7) (Optional) add in the run.sh --wave=waveform.ghw to see waveform with gtkwave
8) See the results of the test
testbench/axi/axi4lite_axi4full_bridge/run.sh
0 → 100755
View file @
6b2c8891
#!/bin/bash -e
#This is a simple script to run simulations in GHDL
TB
=
tb_axi4lite_axi4full_bridge
echo
"Running simulation for
$TB
"
ghdl
-r
--std
=
08
-frelaxed-rules
$TB
-gg_seed
=
$RANDOM
--wave
=
waveform.ghw
testbench/axi/axi4lite_axi4full_bridge/tb_axi4lite_axi4full_bridge.vhd
0 → 100644
View file @
6b2c8891
This diff is collapsed.
Click to expand it.
testbench/axi/axi4lite_wb_bridge/Manifest.py
0 → 100644
View file @
6b2c8891
action
=
"simulation"
sim_tool
=
"ghdl"
target
=
"generic"
ghdl_opt
=
"--std=08 -frelaxed-rules"
sim_top
=
"tb_xaxi4lite_wb_bridge"
files
=
"tb_xaxi4lite_wb_bridge.vhd"
modules
=
{
"local"
:
[
"../../../"
,
"../../../modules/wishbone"
,
"../../../modules/axi"
]}
testbench/axi/axi4lite_wb_bridge/README.md
0 → 100644
View file @
6b2c8891
This is the testbench for the axi4lite to wishbone bridge (axi4lite_wb_bridge).
GHDL used as a simulator alongside with OSVVM methodology. The testing process is:
-
Randomized inputs are given to the Design Under Test in order to check the
functionality of the RTL core.
-
FSM coverage. Legal and ilegal state changes are printed in the end.
-
Assertions are used to check that the protocols of AXI-Lite and Wishbone
behave as it is expected.
How to run the test:
1) For this test you need to install HDLMAKE, GHDL and OSVVM(2020.05+)
2) Add in
`usr/local/lib/ghdl/vendors/config.sh`
the path of the OSVVM
3) Compile OSVVM by running the script:
/usr/local/lib/ghdl/vendors/compile-osvvm --all
4) run
`hdlmake makefile`
5) run
`make`
6) run
`./run.sh`
7) (Optional) add in the
`run.sh`
--wave=waveform.ghw to see waveform
with gtkwave
8) See the results of the test
testbench/axi/axi4lite_wb_bridge/run.sh
0 → 100755
View file @
6b2c8891
#!/bin/bash -e
#This is a simple script to run simulations in GHDL
TB
=
tb_xaxi4lite_wb_bridge
echo
"Running simulation for
$TB
"
ghdl
-r
--std
=
08
-frelaxed-rules
$TB
-gg_seed
=
$RANDOM
--wave
=
waveform.ghw
testbench/axi/axi4lite_wb_bridge/tb_xaxi4lite_wb_bridge.vhd
0 → 100644
View file @
6b2c8891
This diff is collapsed.
Click to expand it.
testbench/axi/z7_axi_gpio_expander/Manifest.py
View file @
6b2c8891
target
=
"xilinx"
action
=
"simulation"
sim_tool
=
"modelsim"
target
=
"xilinx"
action
=
"simulation"
sim_tool
=
"ghdl"
#
"modelsim"
top_module
=
"sim_top_ps_gpio"
syn_device
=
"XC7Z010"
# This can be deleted when GHDL not used
ghdl_opt
=
"--std=08 -frelaxed-rules"
files
=
[
"gpio_axi.vhd"
,
"sim_top_ps_gpio.vhd"
]
...
...
testbench/axi/z7_axi_gpio_expander/run.sh
0 → 100755
View file @
6b2c8891
#!/bin/bash -e
#This is a simple script to run simulations in GHDL
TB
=
sim_top_ps_gpio
echo
"Running simulation for
$TB
"
ghdl
-r
--std
=
08
-frelaxed-rules
$TB
echo
"********************************************"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment