Skip to content
Snippets Groups Projects
Commit 9ead9e37 authored by Pepping's avatar Pepping
Browse files

UPdated readme file

parent 5364bc78
No related branches found
No related tags found
No related merge requests found
...@@ -10,11 +10,17 @@ Generate MMM for QSYS: ...@@ -10,11 +10,17 @@ Generate MMM for QSYS:
* run_qsys unb1 apertif_unb1_cor_mesh_ref * run_qsys unb1 apertif_unb1_cor_mesh_ref
(Be sure that in RadioHDL/trunk/tools/quartus/run_qsys the part that generates (Be sure that in RadioHDL/trunk/tools/quartus/run_qsys the part that generates
the simulation file is enabled by uncommenting that part, alternatively you can the simulation file is enabled by uncommenting that part. Alternatively you can
generate the QSYS system with the GUI and enabling the simulation files in the generate the QSYS system with the GUI and enabling the simulation files in the
last tab) last tab)
* * When changes are made to the mmm-configuration file (mmm.cfg) you can auto-generate
the mmm_apertif_unb1_cor_mesh_ref entity. Be sure that the QSYS configuration is
changed and generated accordingly WITH SIMULATION FILES ENABLED!!!!
Create the mmm-entity with command:
python $RADIOHDL/tools/oneclick/base/mmm_gen.py -l apertif_unb1_cor_mesh_ref
-> From here either continue to Modelsim (simulation) or Quartus (synthesis) -> From here either continue to Modelsim (simulation) or Quartus (synthesis)
...@@ -26,20 +32,40 @@ Modelsim instructions: ...@@ -26,20 +32,40 @@ Modelsim instructions:
run_modelsim unb1 run_modelsim unb1
# in Modelsim do: # in Modelsim do:
lp unb1_ddr3_reorder lp apertif_unb1_cor_mesh_ref
mk all mk all
# now double click on testbench file tb_unb1_ddr3_reorder # now double click on testbench file tb_apertif_unb1_cor_mesh_ref
as 10 as 7
run 500us run -a
# while the simulation runs... in another bash session do: # while the simulation runs... in another bash session go to:
cd unb1_ddr3_reorder/tb/python cd $RADIOHDL/applications/apertif/designs/apertif_unb1_cor_mesh_ref/tb/python
python tc_unb1_ddr3_reorder_seq.py --sim --unb 0 --bn 3 --rep 3 -v 5
# and run:
# note --bn 3 must match the node setting in the tb_unb1_ddr3_reorder. python tc_apertif_unb1_cor_mesh_ref.py --sim --unb 0 --gn 0:7
# to run the test again use --read or --rerun:
python tc_unb1_ddr3_reorder_seq.py --sim --unb 0 --bn 3 --rep 1 -v 3 --read The expected output is as follows:
python tc_unb1_ddr3_reorder_seq.py --sim --unb 0 --bn 3 --rep 1 -v 3 --rerun
The Real output
[0, 0, 0, 0, 0, 0, 0, 0]
[1, 1, 1, 1, 1, 1, 1, 1]
[2, 2, 2, 2, 2, 2, 2, 2]
[3, 3, 3, 3, 3, 3, 3, 3]
[4, 4, 4, 4, 4, 4, 4, 4]
[5, 5, 5, 5, 5, 5, 5, 5]
[6, 6, 6, 6, 6, 6, 6, 6]
[7, 7, 7, 7, 7, 7, 7, 7]
The Imaginary output
[0, 2, 4, 6, 1, 3, 5, 7]
[0, 2, 4, 6, 1, 3, 5, 7]
[0, 2, 4, 6, 1, 3, 5, 7]
[0, 2, 4, 6, 1, 3, 5, 7]
[0, 2, 4, 6, 1, 3, 5, 7]
[0, 2, 4, 6, 1, 3, 5, 7]
[0, 2, 4, 6, 1, 3, 5, 7]
[0, 2, 4, 6, 1, 3, 5, 7]
# to end simulation in Modelsim do: # to end simulation in Modelsim do:
quit -sim quit -sim
...@@ -48,10 +74,10 @@ Modelsim instructions: ...@@ -48,10 +74,10 @@ Modelsim instructions:
Quartus instructions: Quartus instructions:
# GUI: # GUI:
run_quartus unb1 & run_quartus unb1 &
# Open project unb1_ddr3_reorder.qpf and Start compilation # Open project apertif_unb1_cor_mesh_ref.qpf and Start compilation
or or
# Command line: # Command line:
run_qcomp unb1 unb1_ddr3_reorder run_all_qsys unb1 apertif_unb1_cor_mesh_ref
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment