Thursday, 2022-01-27

*** tpb <[email protected]> has joined #litex00:00
jevinskie[m]Ok time to do some fpga stuff again, it’s been too long. I’ll be trying to merge the useful bits of this to litex mainline :) https://pbs.twimg.com/media/FKANoSaUYAAl_BV?format=jpg&name=large00:13
jevinskie[m]What’s the policy on migen patches? Have to get them upsteamed first?00:14
jevinskie[m]First order of business will be altera JTAGbone. It seems to be broken from a simple copy-pasta from that old branch so time to use ol’ reliable uartbone and litescope to debug the TAP FSM. Here’s the code so far, I hope it’s not too far off from mergable standards :) https://github.com/jevinskie/litex/commit/8e1c68fd45ec49d05d67cc6c2cf09563fb0f8e0a00:18
*** nelgau_ <[email protected]> has quit IRC (Remote host closed the connection)00:25
*** bl0x_ <bl0x_!~bastii@p200300d7a70f0d00a1664e82e90d61a6.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 268 seconds)02:14
*** bl0x_ <bl0x_!~bastii@p200300d7a714a600e29495d171cdb113.dip0.t-ipconnect.de> has joined #litex02:15
*** nelgau_ <[email protected]> has joined #litex02:25
*** nelgau_ <[email protected]> has quit IRC (Ping timeout: 256 seconds)02:30
*** rtucker <[email protected]> has quit IRC (Quit: Client closed)02:41
*** rtucker <[email protected]> has joined #litex02:41
*** nelgau_ <[email protected]> has joined #litex03:43
*** Degi_ <[email protected]> has joined #litex04:20
*** Degi <[email protected]> has quit IRC (Ping timeout: 250 seconds)04:20
*** Degi_ is now known as Degi04:20
*** nelgau_ <[email protected]> has quit IRC (Remote host closed the connection)04:59
*** Martoni <Martoni!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has joined #litex06:19
*** nelgau_ <[email protected]> has joined #litex06:40
*** nelgau_ <[email protected]> has quit IRC (Remote host closed the connection)06:56
*** nelgau_ <[email protected]> has joined #litex06:58
*** nelgau_ <[email protected]> has quit IRC (Ping timeout: 240 seconds)07:03
*** FabM <FabM!~FabM@2a03:d604:103:600:adbe:3811:b407:9138> has joined #litex07:36
*** Martoni <Martoni!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has quit IRC (Ping timeout: 268 seconds)07:39
_florent_jevinskie[m]: Nice work on the SPI Flash Emulator, this could be useful for lots of things (even for FPGA development)!08:03
_florent_jevinskie[m]: We could indeed start merging your JTAGBone support for Altera. I'm happy reviewing/adapting the code a bit while merging, I'll just also need a way to reproduce it (if you could do a PR for one Altera board and provide the commands you are using).08:05
*** tnt <tnt!~tnt@osmocom/tnt> has quit IRC (Ping timeout: 256 seconds)10:38
*** RaYmAn <[email protected]> has quit IRC (Ping timeout: 256 seconds)10:38
*** RaYmAn <[email protected]> has joined #litex10:38
*** tnt <tnt!~tnt@osmocom/tnt> has joined #litex10:38
*** Martoni <Martoni!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has joined #litex10:51
*** Martoni <Martoni!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has quit IRC (Ping timeout: 260 seconds)10:56
acathla_florent_, the default target for the ice40up5k_evn freezes trying to enable SPI quad mode (in BIOS) and takes 3741LC, if I add "with_master=False" to the SPI flash initialization parameters it works fine and takes 3440 LC11:22
acathla(I'm trying to make spiflash work again after updating LiteX)11:24
acathlaHow can I add bitbang spi to LiteSPI now?11:38
*** rtucker <[email protected]> has quit IRC (Quit: Client closed)12:56
*** nelgau_ <[email protected]> has joined #litex13:00
*** nelgau_ <[email protected]> has quit IRC (Ping timeout: 250 seconds)13:06
*** hexagon5un <hexagon5un!~elliot@hackaday/elliot> has quit IRC (Quit: WeeChat 3.1)14:36
_florent_acathla: bitbang is not supported yet in LiteSPI, if you want to use the functionalities of the old SPI Flash core, you can copy it in your project and just reintegrate it in your target15:07
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has quit IRC (Ping timeout: 250 seconds)16:03
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has joined #litex16:04
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has quit IRC (Ping timeout: 256 seconds)16:50
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has joined #litex16:51
*** nelgau_ <[email protected]> has joined #litex17:03
*** nelgau_ <[email protected]> has quit IRC (Ping timeout: 252 seconds)17:09
jevinskie[m]_florent_: Thanks! I'll provide instructions in the eventual PR but I think it should mostly Just Work once I add the openocd config file generation for USB Blasters (I also have examples for using an openocd-only flow if that's of interest, lets you use something like a FTDI dongle instead of a blaster, if that is of interest). I'll add support for the DECA in the PR since A) I know you have one as well B) with no built-in usb-serial17:15
jevinskie[m]adapter, Atlantic JTAG UART is painfully slow and JTAGbone + crossover UART is far superior. :)17:15
jevinskie[m]_florent_: I figured out my issue when I cherry-picked the JTAG changes to top of trunk. It was missing my migen modification to allow for FSM ongoing states to reset to non-zero (needed for the TEST_LOGIC_RESET ongoing signal). See the 4 line change in the link. For migen changes, do you want to get it upstreamed to the migen repo first? I've noticed you've avoided forking it so far. My other thought was some surgical monkey-patching to fix17:21
jevinskie[m]up/enhance a couple of methods (the new approach I'm taking). https://github.com/jevinskie/migen/commit/f9bd7241c8d3cc534154fe762fa8e941bc8011af#diff-dc256a57d35c9990bef2595d62dbb024e2aacdd48692e18f2c91d502c5f58045R232-R23617:21
jevinskie[m]Don't be afraid, the "iffy" modifications were other parts of that commit. ;-)17:21
acathla_florent_, I did that first, it builds but does not boot. I don't know yet what's the problem.18:36
jevinskie[m]Good, the JTAG issue was the lack of my migen FSM patch. Hmm I guess I can just make a ResetFixedFSM wrapper around FSM instead of monkey patching migen. Some of my other changes like signal naming enhancements can’t be done that way though.19:35
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Ping timeout: 250 seconds)21:13
*** nelgau_ <[email protected]> has joined #litex22:14
jevinskie[m]Here are the Altera JTAG PRs: https://github.com/enjoy-digital/litex/pull/1188 https://github.com/litex-hub/litex-boards/pull/34122:17
*** nelgau_ <[email protected]> has quit IRC (Ping timeout: 240 seconds)22:18
jevinskie[m]Time to clean up the Altera MII/RGMII work now :)22:22
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:cf1:8507:720a:c17> has quit IRC (Quit: Leaving)22:42
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:6d9c:a44f:9ccf:eacc> has joined #litex22:58
*** nelgau <[email protected]> has joined #litex23:08
*** nelgau <[email protected]> has quit IRC (Remote host closed the connection)23:09
*** nelgau <[email protected]> has joined #litex23:10
*** nelgau <[email protected]> has quit IRC (Quit: Leaving...)23:19

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!