Skip to content

Commit

Permalink
Merge pull request pulp-platform#252 from pulp-platform/axi_lite_dw_c…
Browse files Browse the repository at this point in the history
…onverter

Axi lite dw converter
  • Loading branch information
thommythomaso authored May 8, 2023
2 parents fd60be8 + 1de0173 commit 5cdd31c
Show file tree
Hide file tree
Showing 11 changed files with 1,183 additions and 85 deletions.
39 changes: 26 additions & 13 deletions .ci/Memora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,32 @@ artifacts:
outputs:
- build/axi_iw_converter-%.tested

axi_lite_dw_converter-%:
inputs:
- Bender.yml
- include
- scripts/run_vsim.sh
- src/axi_pkg.sv
- src/axi_intf.sv
- src/axi_test.sv
- src/axi_lite_dw_converter.sv
- test/tb_axi_lite_dw_converter.sv
outputs:
- build/axi_lite_dw_converter-%.tested

axi_lite_mailbox-%:
inputs:
- Bender.yml
- include
- scripts/run_vsim.sh
- src/axi_pkg.sv
- src/axi_intf.sv
- src/axi_test.sv
- src/axi_lite_mailbox.sv
- test/tb_axi_lite_mailbox.sv
outputs:
- build/axi_lite_mailbox-%.tested

axi_lite_regs-%:
inputs:
- Bender.yml
Expand Down Expand Up @@ -188,19 +214,6 @@ artifacts:
outputs:
- build/axi_lite_to_axi-%.tested

axi_lite_mailbox-%:
inputs:
- Bender.yml
- include
- scripts/run_vsim.sh
- src/axi_pkg.sv
- src/axi_intf.sv
- src/axi_test.sv
- src/axi_lite_mailbox.sv
- test/tb_axi_lite_mailbox.sv
outputs:
- build/axi_lite_mailbox-%.tested

axi_lite_xbar-%:
inputs:
- Bender.yml
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/Bender.lock
/Bender.local
*.log
*.wlf
15 changes: 10 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ axi_iw_converter:
variables:
TEST_MODULE: axi_iw_converter

axi_lite_dw_converter:
<<: *run_vsim
variables:
TEST_MODULE: axi_lite_dw_converter

axi_lite_mailbox:
<<: *run_vsim
variables:
TEST_MODULE: axi_lite_mailbox

axi_lite_regs:
<<: *run_vsim
variables:
Expand All @@ -133,11 +143,6 @@ axi_lite_to_axi:
variables:
TEST_MODULE: axi_lite_to_axi

axi_lite_mailbox:
<<: *run_vsim
variables:
TEST_MODULE: axi_lite_mailbox

axi_lite_xbar:
<<: *run_vsim
variables:
Expand Down
2 changes: 2 additions & 0 deletions Bender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ sources:
- src/axi_isolate.sv
- src/axi_join.sv
- src/axi_lite_demux.sv
- src/axi_lite_dw_converter.sv
- src/axi_lite_from_mem.sv
- src/axi_lite_join.sv
- src/axi_lite_lfsr.sv
Expand Down Expand Up @@ -110,6 +111,7 @@ sources:
- test/tb_axi_dw_upsizer.sv
- test/tb_axi_fifo.sv
- test/tb_axi_isolate.sv
- test/tb_axi_lite_dw_converter.sv
- test/tb_axi_lite_mailbox.sv
- test/tb_axi_lite_regs.sv
- test/tb_axi_iw_converter.sv
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Add `axi_lite_from_mem` and `axi_from_mem` acting like SRAMs making AXI4 requests downstream.
- Add `axi_rw_join` and `axi_rw_split` to split/join AXI buses.
- Add `#_width` functions returning the width of the AXI channels.
- Add `axi_lite_dw_converter`: Convert the data width of AXI4-Lite transactions. Emmits the
appropriate amount of downstream transactions to perform the whole requested access.


### Changed
- `axi_demux`: Replace FIFO between AW and W channel by a register plus a counter. This prevents
Expand All @@ -25,6 +28,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Move `mem_to_banks` to `common_cells`.
- Update `common_cells` from version `v1.26.0` to `v1.27.0`.
- `axi_pkg`: Define `localparams` to define AXI type widths.
- `axi_test:axi_rand_lite_slave`: R response field is now random.

### Fixed

Expand Down
91 changes: 46 additions & 45 deletions README.md

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions scripts/run_vsim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ exec_test() {
done
done
;;
axi_lite_dw_converter)
for DWSLV in 32 64 128; do
for DWMST in 16 32 64; do
call_vsim tb_axi_lite_dw_converter -gTbAxiDataWidthSlv=$DWSLV -gTbAxiDataWidthMst=$DWMST
done
done
;;
*)
call_vsim tb_$1 -t 1ns -coverage -voptargs="+acc +cover=bcesfx"
;;
Expand Down
Loading

0 comments on commit 5cdd31c

Please sign in to comment.