trabucayre changed the topic of #openFPGALoader to: Universal utility for programming FPGA / Github: https://github.com/trabucayre/openFPGALoader/ Logs: https://libera.irclog.whitequark.org/openFPGALoader
<cr1901> trabucayre: https://github.com/trabucayre/openFPGALoader/blob/master/src/lattice.cpp#L1315 This line is incorrect as I've discovered by testing (need to remove the -1). I'll submit a PR when I've had the chance to check all variants
<cr1901> the "minus 1" _is_ correct for 7000. No, I don't know what Lattice is thinking (file under "Lattice can't count")
<trabucayre> specific case :)
<cr1901> Also tangential... what would it take to remove the lone seek here? I want to stream a JED file over the network and strong suspect that this line is causing it to error: https://github.com/trabucayre/openFPGALoader/blob/d8bc361e7f7d0100f366d28e884d3751b6b954a4/src/jedParser.cpp#L257
<cr1901> Nevermind ignore
<cr1901> I can't duplicate the crash
<cr1901> Although it's interested streaming a .jed file works b/c I thought a pipe would die if you seek on it
<cr1901> (I _did_ crash it previously, but I don't think I can duplicate the conditions)
<cr1901> (This was a few weeks ago?)
<trabucayre> openFPGALoader is able to use stdin
<trabucayre> a buffer is used to receive full bitstream before doing anything
<cr1901> Is that reused for JED files?
<trabucayre> seek is used for a std::istringstream with the buffer as input
<trabucayre> configBitstreamParser is super class for all bitstream parser
<cr1901> Ahhh, then whatever crash I saw isn't relevant to seeking. Sorry I don't have any detailed info to give. I can't dup the bug and it was a week or two ago :(
<trabucayre> ulimit -c unlimited && openFPGALoader xxxx && gdb openFPGALoader core :)
<trabucayre> ok if it's not possible to reproduce it's more hard to find why :)
<cr1901> I'll keep that command in mind tho
Guest45 has joined #openFPGALoader
Guest45 has quit [Client Quit]
<cr1901> pushed my branch, opened PR. Going to bed now lol
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #openFPGALoader
<trabucayre> Applied!
<cr1901> tyvm