Monday, 2020-01-13

*** tpb has joined #tomu00:00
*** CarlFK has joined #tomu00:04
*** im-tomu has left #tomu00:04
*** im-tomu has joined #tomu00:05
*** im-tomu has left #tomu00:10
*** im-tomu has joined #tomu00:10
mithroxobs: https://wishbone-utils.rtfd.io00:48
tpbTitle: Wishbone Utilities wishbone utils 0.5.0-9-g18511d7 documentation (at wishbone-utils.rtfd.io)00:48
xobsjnsquire: I find that there are several "bins" into which it'll fall. 99% actually converges sometimes. It's why I added the --seed option - sometimes changing the input verilog can affect the output timing.00:53
*** jnsquire has quit IRC01:02
*** jnsquire has joined #tomu01:36
jnsquireOK, it works! I was able to upload a foboot built with a DSP-using VexRiscv, and then upload and connect to a micropython image built with rv32im. Only thing I had to drop was the VexRiscv debug support.01:39
jnsquire...and then I noticed the micropython binary didn't actually include any mul instructions, so I hacked in one, rebuilt and re-uploaded, and it works as expected. Huzzah!01:52
xobsHooray!  What does your config look like?01:53
xobsI added a crypto config to https://github.com/xobs/VexRiscv-verilog/blob/master/src/main/scala/vexriscv/GenFomuCrypto.scala which ended up being 5050 LCs.  I'd love to get that number down so I could fit in a fancier touchpad implementation.01:54
tpbTitle: VexRiscv-verilog/GenFomuCrypto.scala at master · xobs/VexRiscv-verilog · GitHub (at github.com)01:54
jnsquireVexriscv-verilog has:01:54
jnsquireVexRiscv_Fomu_Dsp.v: src/main/scala/vexriscv/GenFomuDsp.scala01:54
jnsquireSo no hardware breakpoints or riscv debugging, unfortunately. Not sure if there's anything else that can be squeezed out to make more room.01:55
jnsquire=== top ===01:56
*** jnsquire has quit IRC01:56
*** jnsquire has joined #tomu01:57
jnsquireoops01:57
*** xkapastel has quit IRC02:01
*** whatnick has joined #tomu02:03
jnsquireWould using the hard SPI blocks in place of the litex SPI help?02:04
xobsI was researching that. The hard spi blocks require you to program the registers first.02:07
xobsThey're also single spi only, not quad spi.02:07
mithrojnsquire: I really want to move the spimem controller into it's own clock domain -- it should be possible to get the SPI controller to run at like >50MHz while the CPU core stays at 12MHz02:11
jnsquireCSR support seems to take up a fair bit of room. Maybe pack the functional bit in there together more tightly.02:11
jnsquireIs it possible to get 32-bit wide CSRs out of litex?02:13
xobsYes, you can initialise BaseSoC02:14
xobshttps://github.com/enjoy-digital/litex/blob/d92bd8ffaa9a9d1f3d51498c8e382f7041e69274/litex/soc/integration/soc_core.py#L9402:14
tpbTitle: litex/soc_core.py at d92bd8ffaa9a9d1f3d51498c8e382f7041e69274 · enjoy-digital/litex · GitHub (at github.com)02:14
mithrojnsquire: "Packing things together" might actually end up taking more resources depending on how things are encoded02:16
*** whatnick has quit IRC02:31
*** whatnick has joined #tomu04:10
jnsquireOK, looks like ditching the icache allows re-enabling the debug support, as well as allows for compressed instructions, and micropython build with rv32imc still seems happy enough. place and route completed pretty painlessly.04:21
jnsquire5229 out 5280 LCs used04:21
*** whatnick has quit IRC04:31
*** CarlFK has quit IRC04:41
*** CarlFK has joined #tomu04:43
*** rohitksingh has joined #tomu05:49
*** jnsquire has quit IRC06:25
*** im-tomu has left #tomu06:33
*** im-tomu has joined #tomu06:33
*** rohitksingh has quit IRC07:02
*** dwg has quit IRC08:07
*** dwg has joined #tomu08:07
*** krogozinski_ has joined #tomu08:07
*** krogozinski has quit IRC08:09
mithroxobs: Does the terminal do local echo?08:55
xobsmithro: no, it just displays what it receives from the other device.08:56
mithroxobs: `./target/debug/wishbone-tool --serial /dev/ttyUSB1 --server terminal --csr-csv ~/github/timvideos/litex-buildenv/build/ice40_hx8k_b_evn_base_vexriscv.minimal+debug/test/csr.csv`08:56
mithroxobs: If I hit characters, should I get anything?08:57
mithroxobs: As far as I can tell, it is doing local echo08:57
xobsI would imagine that you wouldn't get local echo, because of how the terminal is working.08:58
xobsWhat if you do "help"?08:58
mithroWell seeing as I get output when the device is not plugged in....09:08
mithroThink it's a Linux verse windows difference?09:08
xobsRight, because I have it only take over the terminal once the bridge has been opened.09:08
*** CarlFK has quit IRC09:38
*** gio has quit IRC10:15
*** gio has joined #tomu10:18
*** im-tomu has left #tomu10:38
*** im-tomu has joined #tomu10:38
*** im-tomu has left #tomu11:46
*** im-tomu has joined #tomu11:46
xobsmithro: I had someone test it on a debian-unstable system, and it behaved the same way as on windows.  Maybe the csv parsing isn't working?  Or maybe you were using the version of litex with a different register offset?12:27
xobsAlso, as we were talking about this earlier today, here's the automatically-generated Rust documentation for Fomu: https://docs.rs/fomu-pac/0.0.3/fomu_pac/12:40
*** im-tomu has left #tomu13:17
*** im-tomu has joined #tomu13:17
*** dontrash[m] has joined #tomu13:29
*** MatrixBridge has joined #tomu13:31
*** MatrixBridge has left #tomu13:31
*** Jesse[m] has joined #tomu13:35
*** Jesse[m] is now known as jesse_m[m]13:38
*** CarlFK has joined #tomu13:58
*** krogozinski_ has quit IRC14:06
*** gio has quit IRC14:13
*** gio has joined #tomu14:20
*** im-tomu has left #tomu14:35
*** im-tomu has joined #tomu14:35
*** jas4711 has joined #tomu14:41
*** im-tomu has left #tomu15:21
*** im-tomu has joined #tomu15:22
*** im-tomu has left #tomu15:47
*** im-tomu has joined #tomu15:47
*** emeb has joined #tomu15:51
*** im-tomu has left #tomu16:26
*** im-tomu has joined #tomu16:26
*** tommythorn has joined #tomu16:30
tommythornTrying to update the boot loader on my PVT fomu fails on all platforms (Windows, macOS, multiple Linux).  dfu-util fails in the middle with16:32
tommythornstate(10) = dfuERROR, status(8) = Cannot program memory due to received address that is out of range16:32
tommythornThis happens 40% in16:32
tommythornNote, my last failure was on Windows 10 with the latest release of the fomu toolchain and the dfu from https://workshop.fomu.im/en/latest/bootloader.html#updating-the-fomu-bootloader16:35
tommythornMy other fomu didn16:39
tommythorndidn't have issues and show a very different LED pattern16:41
*** tommythorn has quit IRC16:46
*** space1nvader is now known as spaceinvader18:57
*** david-sawatzke[m has quit IRC21:14
*** CarlFK has quit IRC21:44
*** wrtlprnft has quit IRC22:28
*** wrtlprnft has joined #tomu22:42
*** CarlFK has joined #tomu23:02

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!