iwikal has joined #openFPGALoader
<
iwikal>
Hello! I was wondering what the workflow is for adding support for a new board (with preexisting fpga support)
<
iwikal>
Like how much do I need to know about the board and your codebase?
<
iwikal>
Also, can I brick the board if I do it wrong?
<
iwikal>
Specifically I have a Nexys 3
<
trabucayre>
but you have to update docs/boards.yml and src/board.hpp
<
iwikal>
Wait, is that it? I don't have to specify anything about all the other hardware on board?
<
iwikal>
I just add one line to board.hpp and update the docs?
<
iwikal>
I'll try it out as soon as I can verify that it works
<
trabucayre>
The only thing is to know fpga model (xilinx & altera), jtag cable (if onboard)
<
iwikal>
I'm pretty sure it's an xc6slx16, I'll have to look into the jtag thing
<
iwikal>
Pull request might follow
<
trabucayre>
thanks!
<
trabucayre>
which package is it ?
<
trabucayre>
for xilinx a bridge has to be loaded to have access to the flash
<
trabucayre>
this bridge is based on model+size+package
<
iwikal>
xc6slx16-3-csg324
<
iwikal>
I found this string somewhere in my existing Makefile
<
iwikal>
csg324 should be the package, right? idk what the 3 in the middle means
<
trabucayre>
3 is speed grade
<
trabucayre>
ok your device is already supported by spiOverJtag
<
iwikal>
xc6slx16csg324 is used elsewhere in board.hpp, so I assume that's what I'm supposed to put
<
iwikal>
great! Not sure what spiOverJtag is
<
trabucayre>
spiOverJtag is bridge used to access SPI flash
<
trabucayre>
alinx_ax516 is a good starting point
<
trabucayre>
have you an onboard jtag or have you to use external one?
<
iwikal>
See I don't actually know, I'm very new to this stuff, and the board belongs to my school
<
iwikal>
We haven't really talked about jtag in this course, but I assume that's the cable I plug in to flash the board?
<
trabucayre>
if it's only an usb cable jtag interface is onboard
<
iwikal>
That's probably it then!
<
iwikal>
Wait, no, the usb cable is some other protocol, JTAG is just accessed through a header
<
iwikal>
They call it the "Adept USB prog" port
<
iwikal>
Although I don't think I have a cable for that
<
iwikal>
If I'm lucky the usb port works for jtag too
<
iwikal>
Wait, since the board is from Digilent and the USB port seems to be their proprietary thing, does that mean cable type should be "digilent"?
<
iwikal>
No, that seems to be something else. The cable is just a regular USB cable.
<
iwikal>
If the Nexys 3 is anything like the Nexys a7 which is a rebrand of Nexys 4, the "digilent" cable type is worth a shot I guess
<
trabucayre>
the most easiest way is to try with openFPGALoader -c digilent --detect
<
trabucayre>
but yes I assume it's a digilent cable
<
iwikal>
I'll try it and report back after the weekend!
Guest55 has joined #openFPGALoader
Guest55 has quit [Client Quit]