diff --git a/applications/apertif/designs/apertif_unb1_cor_mesh_ref/doc/README. b/applications/apertif/designs/apertif_unb1_cor_mesh_ref/doc/README. index 503ac4dd9dcda083c8861e5ad78476920726048d..6da0f1a624192f085858fb25d7f0fa8c62745b2e 100644 --- a/applications/apertif/designs/apertif_unb1_cor_mesh_ref/doc/README. +++ b/applications/apertif/designs/apertif_unb1_cor_mesh_ref/doc/README. @@ -10,11 +10,17 @@ Generate MMM for QSYS: * run_qsys unb1 apertif_unb1_cor_mesh_ref (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 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) @@ -26,20 +32,40 @@ Modelsim instructions: run_modelsim unb1 # in Modelsim do: - lp unb1_ddr3_reorder + lp apertif_unb1_cor_mesh_ref mk all - # now double click on testbench file tb_unb1_ddr3_reorder - as 10 - run 500us + # now double click on testbench file tb_apertif_unb1_cor_mesh_ref + as 7 + run -a - # while the simulation runs... in another bash session do: - cd unb1_ddr3_reorder/tb/python - python tc_unb1_ddr3_reorder_seq.py --sim --unb 0 --bn 3 --rep 3 -v 5 + # while the simulation runs... in another bash session go to: + cd $RADIOHDL/applications/apertif/designs/apertif_unb1_cor_mesh_ref/tb/python + + # and run: - # note --bn 3 must match the node setting in the tb_unb1_ddr3_reorder. - # 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 - python tc_unb1_ddr3_reorder_seq.py --sim --unb 0 --bn 3 --rep 1 -v 3 --rerun + python tc_apertif_unb1_cor_mesh_ref.py --sim --unb 0 --gn 0:7 + + The expected output is as follows: + + 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: quit -sim @@ -48,10 +74,10 @@ Modelsim instructions: Quartus instructions: # GUI: run_quartus unb1 & - # Open project unb1_ddr3_reorder.qpf and Start compilation + # Open project apertif_unb1_cor_mesh_ref.qpf and Start compilation or # Command line: - run_qcomp unb1 unb1_ddr3_reorder + run_all_qsys unb1 apertif_unb1_cor_mesh_ref