*** tpb <[email protected]> has joined #litex | 00:00 | |
*** Hammdist <[email protected]> has quit IRC (Quit: Client closed) | 00:01 | |
Hoernchen_ | oh | 00:27 |
---|---|---|
Hoernchen_ | that bad? | 00:27 |
Hoernchen_ | please document that somewhere so someone can take a look at it | 00:27 |
Hoernchen_ | but tbh.. the ddr pins should be fine up to ~400Mhz or something like that, so well above 125mhz rgmii | 00:28 |
Hoernchen_ | well below the 1.25gsps xilinx claims for all of their ios, but still.. | 00:28 |
*** jk- <[email protected]> has quit IRC (Remote host closed the connection) | 01:29 | |
*** Hammdist <[email protected]> has joined #litex | 01:35 | |
*** ElfenKaiser <ElfenKaiser!~deadsalmo@2a0a-a540-cd41-0-71e0-e69c-6993-6dfd.ipv6dyn.netcologne.de> has quit IRC (Quit: Konversation terminated!) | 01:52 | |
Hammdist | I thought of doing one last experiment on the versa board. I put a copy of the expected rx packet in a BRAM. now when I send packets it counts the number of errors in each of the 8 GMII bit positions. this produces basically a fingerprint of io cell performance that should not vary if I recompile my design (which would normally produce slight | 02:22 |
Hammdist | variations in P&R). indeed it did not vary. switching to the other port produced a different fingerprint that again didn't vary when I recompiled the design. so barring some terrible misunderstanding of how RGMII is supposed to be hooked up to the FPGA, and assuming the delay values are OK (which I've checked several times now), I think it must be | 02:22 |
Hammdist | a flaw in the io cell design, however improbable that may seem a priori | 02:22 |
Hoernchen_ | uh | 02:29 |
Hoernchen_ | the actual test is to use diamond to synthesize the design with proper constraints and/or io buffers | 02:31 |
Hammdist | well I suppose it's possible that there's a bug in nextpnr that causes it not to configure DDR correctly, or cause arbitrary other problems. I don't have diamond installed though and I don't have experience using it. basically I need/want to use an open source toolchain so it's not practically helpful to me if it works in diamond | 02:57 |
Hoernchen_ | without diamond your io timing is basically guessing and hoping that it just works.. | 03:18 |
Hammdist | what do you mean by I/O timing, exactly? I expect nextpnr measures the delay from where logic outputs to where the ODDR is, doesn't it? | 03:19 |
Hammdist | is there additional travel from ODDR to pin that isn't accounted for, or what? | 03:20 |
Hoernchen_ | see https://github.com/YosysHQ/nextpnr/issues/399 | 03:21 |
*** Degi <[email protected]> has quit IRC (Ping timeout: 256 seconds) | 03:21 | |
*** Degi <[email protected]> has joined #litex | 03:21 | |
Hammdist | interesting read. seems like I might need to add IFS1P3DX/OFS1P3DX? | 03:25 |
*** Hammdist <[email protected]> has quit IRC (Quit: Client closed) | 03:28 | |
*** Hammdist <[email protected]> has joined #litex | 03:28 | |
Hoernchen_ | and/or use the newly introduced https://github.com/YosysHQ/yosys/commit/10589c57bfd0e5dd29c739e9d9db044cdb8ad8ed | 03:29 |
Hammdist | I don't know what to make of this info. on the one hand this seems to a huge blind spot and that if I can learn about these I/O issues I can potentially improve my design. on the other hand there seems to be only a very small trickle of information on this topic | 03:37 |
Hammdist | is there a chance that blindly applying -iopad would just automatically fix things? | 03:38 |
Hoernchen_ | well you could give it a try.. | 03:38 |
Hoernchen_ | but, again, without running diamond at least once you're pretty much guessing | 03:38 |
Hammdist | well -iopad did ... nothing | 03:43 |
Hammdist | anyways none of this is litex-specific. I will ask more about I/O constraints in the ##fpga channel tomorrow | 03:45 |
Hammdist | maybe I will put together a super-minimal tx-only mac that repeatedly broadcasts a fixed ethernet packet as a case study to see if the tx errors can be fixed with OFS1P3DX | 03:48 |
*** Hammdist <[email protected]> has quit IRC (Quit: Client closed) | 04:22 | |
*** Hammdist <[email protected]> has joined #litex | 04:33 | |
*** Hammdist <[email protected]> has quit IRC (Quit: Client closed) | 04:49 | |
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 06:56 | |
*** TMM_ <[email protected]> has joined #litex | 06:56 | |
*** FabM <FabM!~FabM@2a03:d604:103:600:2e60:8c7c:e8fb:7990> has joined #litex | 07:33 | |
*** Hammdist <[email protected]> has joined #litex | 13:13 | |
*** Hammdist <[email protected]> has quit IRC (Quit: Client closed) | 15:20 | |
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 15:27 | |
*** TMM_ <[email protected]> has joined #litex | 15:27 | |
ysionneau | hmm I'm trying to build a LiteX SoC with some Module I am writing, and abc9 dies saying something about a combinatorial loop : ERROR: Assert `no_loops' failed in passes/techmap/abc9_ops.cc:795. | 15:59 |
ysionneau | by running the yosys cmd in debug I think I've understood that the issue might come from a FSM | 15:59 |
ysionneau | the FSM seems to be translated in verilog as always @(*) and maybe the state <= next_state causes a loop | 16:00 |
ysionneau | but I'm not sure... | 16:00 |
ysionneau | has anyone ever got this issue? | 16:00 |
zyp | yes, I had the same issue the other day, code that built fine with an older yosys refused to build after yosys switched to abc9 by default | 16:06 |
zyp | in my case it was some logic in a FSM that caused a loop with some stream flow control signals | 16:09 |
ysionneau | same here, I am using streams | 16:10 |
ysionneau | (and a pretty recent yosys) | 16:11 |
ysionneau | I'll try with -noabc9 | 16:12 |
zyp | yeah, -noabc9 worked for me, but it's better to fix the problem :) | 16:13 |
ysionneau | it works for me as well, thanks | 16:13 |
*** Hammdist <[email protected]> has joined #litex | 16:15 | |
zyp | here's how I fixed my code: https://paste.jvnv.net/view/gNjOq | 16:17 |
tpb | Title: JVnV Pastebin – View paste – Untitled (at paste.jvnv.net) | 16:17 |
ysionneau | both version are really similar | 16:24 |
ysionneau | which signal was giving you a comb loop ? | 16:24 |
zyp | probably ready feeding into last | 16:28 |
Hammdist | the two pieces of code seem to have different behavior though if I understand correctly. in the first, the else block is executed whenever we don't go to output state, but it is not the same in the second | 16:30 |
zyp | no, the stream signals are moot unless the stream is valid & ready | 16:31 |
Hammdist | cool, that's all right then | 16:39 |
ysionneau | ah now it's nextpnr who is complaining about a comb loop | 17:08 |
ysionneau | but this time I get a nice error message saying explicitely which signal is the problem | 17:09 |
ysionneau | nice | 17:09 |
ysionneau | ah, found my issue ... I was doing s.eq(s+1) in a fsm.act() instead of NextValue(s, s+1) | 17:16 |
*** Hammdist <[email protected]> has quit IRC (Quit: Client closed) | 19:00 | |
*** Hammdist <[email protected]> has joined #litex | 19:40 | |
*** Hammdist <[email protected]> has left #litex | 20:37 | |
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Ping timeout: 256 seconds) | 21:19 | |
*** Hoernchen_ <Hoernchen_!~hornulus@osmocom/hoernchen> has quit IRC (Ping timeout: 252 seconds) | 21:24 | |
*** Hoernchen <Hoernchen!~hornulus@osmocom/hoernchen> has joined #litex | 21:25 | |
*** josuah <[email protected]> has joined #litex | 23:26 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!