Hi Howard,
There shouldn't be a need to modify the hw_routes file if all you
need is to add a new ADC board. There are sets of entries for
zdok_0_p/n and zdok_1_p/n for both iBOB and ROACH (iBOB.zdok_0_p,
iBOB.zdok_0_n, etc). This should let you define your ext_ports fields
by mapping directly to your Z-DOK pinout. This way, your XPS_Object
class will be portable across boards.
The mapping of the ZDOK entries in the .mat file is in straight order
ie.,:
hw_routes.mat Z-DOK pin # (datasheet)
------------- -----------------------
.zdok?_p[1] -> A1
.zdok?_p[2] -> A3
.
.
.
.zdok?_p[11] -> C1
.
.
.
.zdok?_p[21] -> D1
.
.
.
.zdok?_p[31] -> F1
.
.
.
.zdok?_p[40] -> F19
...
.zdok?_n[1] -> A2
.
.
.
.zdok?_n[40] -> F20
If you look at the ext_ports definitions in @xps_adc, @xps_quadc,
you'll see that this is the recommended indexing method.
Cheers,
Henry
Howard Liu wrote:
Hi David,
I’m trying to link ROACH and our 5G ADC board.
I load “BEE2_hw_routes.mat” into MATLAB and see the FPGA pin location table.
Because I need to redefine the mat file to fit the 5G ADC board, it’s
inevitable to adjust the index of “ext_ports”.
The trouble for me is that I don’t know how to get the index from MAT files.
Would you please tell me how to do that?
Thank you very much.
Howard Liu
ASIAA, Taiwan