How does a retargeted model know about the subsystem on the FPGA?

조회 수: 2 (최근 30일)
Hewy.j
Hewy.j 2018년 8월 30일
댓글: Hewy.j 2018년 9월 4일
I've been working through this WLAN Beacon Receiver model and I've generated the bitstream and detected beacons using the retargeted model. Now I'm looking at trying to edit the model a little bit to show the power of the beacon signals as they come in. I am trying to do so on the FPGA and therefore within the HDLRx subsystem before generating a new bitstream and uploading it. This much I can do without any errors.
What I don't understand is how the retargeted model knows about the HDLRx subsystem; its location and in/out ports.
According to the tutorial, the retargeted model can be produced by simply deleting the HDLRx subsystem from the original targeting model, but how then do I tell it about the new outport that I want to add to the subsystem?
I attach some screenshots to help explain what I mean.
Without knowing how to instruct the retargeted model of the inputs and outputs of the HDLRx Subsystem, how does one direct newly added outputs of the subsystem? (as seen in the second screenshot attached.)
Any help would be greatly appreciated.
Regards
Harry

채택된 답변

Neil MacEwen
Neil MacEwen 2018년 9월 3일
Hi Harry,
I am going to assume that you are using the FPGA targeting workflow only, that is you do not have access to Embedded Coder to use the HW/SW co-design workflow? The reason this is important is that in the FPGA-only workflow, currently you are unable to access more ports than the streaming I/Q data and valid ports. If you have extra information you need to bring back to the host, you will need to multiplex it with the I/Q data. You can see how we have done this with the FPGA packing subsystems. For example, perhaps you could pack the power values onto the I/Q samples when "start" is low and there is not decoded data coming back? Note though that the power values corresponding to a valid packet may need to be stored up and sent back once you have sent back the decoded data!
In the HW/SW co-design workflow, you can add as many ports as you like and assign them as AXI-lite registers, which lets you read and write memory mapped registers. You can obviously also still multiplex your information onto the I/Q data ports. To read/write the AXI-lite registers, you need to have Embedded Coder to enable External Mode operation. Once you have that up and running, you can read and write to your registers from Simulink.
Let me know if I can clarify that any more.
Cheers,
Neil
  댓글 수: 1
Hewy.j
Hewy.j 2018년 9월 4일
Hi Neil,
Thanks again for your help.
I do have Embedded Coder and have run the HW/SW co-design model - I will try playing with that and using AXI-lite port types as you suggest and see how I get on.
Cheers
Harry

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by