Monday, 2020-04-20

*** tpb has joined #yosys00:00
*** twnqx has quit IRC00:08
*** Degi_ has joined #yosys00:14
*** Degi has quit IRC00:17
*** Degi_ is now known as Degi00:17
*** Cerpin has quit IRC00:23
*** jfcaron_ has joined #yosys00:45
*** jfcaron_ has quit IRC00:49
*** Cerpin has joined #yosys01:03
*** adjtm has quit IRC01:47
*** adjtm has joined #yosys01:48
*** az0re has joined #yosys01:49
*** craigo has joined #yosys02:29
*** citypw has joined #yosys02:31
*** az0re has quit IRC02:39
*** emeb has quit IRC03:05
*** az0re has joined #yosys03:44
*** ashfaq1717 has joined #yosys04:56
*** kraiskil has joined #yosys05:22
*** FabM has joined #yosys06:13
*** ashfaq1717 has quit IRC06:30
*** npe has quit IRC06:36
*** ashfaq1717 has joined #yosys06:52
*** emeb_mac has quit IRC06:54
*** ashfaq1717 has quit IRC07:02
*** dys has joined #yosys07:22
*** jakobwenzel has joined #yosys07:46
*** futarisIRCcloud has quit IRC08:02
*** ashfaq1717 has joined #yosys08:04
ashfaq1717is there any channel for OpenSTA tool? on github, stackoverflow, reddit, irc?08:05
*** vidbina_ has joined #yosys08:08
*** ashfaq1717 has quit IRC08:23
*** FFY00 has quit IRC08:31
*** FFY00 has joined #yosys08:31
*** FFY00 has quit IRC08:34
*** FFY00 has joined #yosys08:35
*** Ultrasauce has quit IRC08:44
*** ashfaq1717 has joined #yosys09:15
ashfaq1717is there any channel for OpenSTA tool? on github, stackoverflow, reddit, irc?09:15
*** ashfaq1717 has quit IRC09:41
*** Ultrasauce has joined #yosys09:44
*** vidbina_ has quit IRC09:50
*** FFY00 has quit IRC10:08
*** FFY00 has joined #yosys10:11
*** vidbina_ has joined #yosys10:13
*** twnqx has joined #yosys10:29
*** Vinalon has quit IRC11:42
*** vidbina_ has quit IRC11:45
*** kraiskil has quit IRC11:52
*** kraiskil has joined #yosys12:06
*** jfcaron_ has joined #yosys13:23
*** vidbina_ has joined #yosys13:34
*** jfcaron_ is now known as jfcaron13:41
*** emeb has joined #yosys13:47
*** X-Scale` has joined #yosys14:50
*** X-Scale has quit IRC14:52
*** X-Scale` is now known as X-Scale14:52
*** jakobwenzel has quit IRC14:53
*** Vinalon has joined #yosys14:56
*** jakobwenzel has joined #yosys14:57
*** X-Scale` has joined #yosys14:58
*** X-Scale has quit IRC14:59
*** X-Scale` is now known as X-Scale14:59
*** npe has joined #yosys15:02
*** citypw has quit IRC15:20
*** elGamal has quit IRC15:20
*** jakobwenzel has quit IRC15:21
*** jakobwenzel has joined #yosys15:22
*** elGamal has joined #yosys15:22
*** jakobwenzel has quit IRC15:32
*** kraiskil has quit IRC15:59
Sarayan30% faster?  Now that's interesting16:20
ZirconiumXSarayan: ?16:33
ZirconiumXIf you mean the performance work that's happened recently, yeah, Yosys is a fair bit faster now16:33
Sarayanhttps://twitter.com/whitequark/status/125227037195445043316:34
whitequarkSarayan: if you are directly poking posedge_p_clk it will not apply to you16:34
Sarayanwq: I wasn't, there was too many caveats, so I'm using the slow, safe version16:35
whitequarkwhat it does mean is that some designs that would previously converge in >1 delta cycle for no good reason, now always converge in 1 delta cycle16:35
whitequarkah16:35
whitequarkthen it very much may apply to you16:35
whitequarkI am slowly getting to the point where those caveats may be automatically checked16:35
SarayanI know that my designs can be fully converged in one delta cycle16:35
Sarayanup to this point at least16:36
whitequarkhow many do they currently take?16:36
SarayanDunno.  Suspect one, I do nothing weird16:36
whitequarkthree, if you don't do anything weird16:36
Sarayanok16:36
whitequarkone to propagate the clock pulse, one to propagate the *results* of the posedge, one to determine that the design converged16:37
Sarayan:-)16:37
Sarayanfuck, need to recompile yosys16:37
Sarayanyosys: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory16:37
whitequarkin theory, this can be reduced to just one, while remainign fully safe16:37
whitequarkthe patch i mentioned on twitter makes it always 316:37
whitequarkinstead of "usually 3 but sometimes *far* more"16:38
Sarayanurgh, I have slang in there, compile takes even longer16:38
*** vidbina_ has quit IRC16:38
Sarayanargh, the interface changed16:44
whitequarkof what?16:44
Sarayanmain.cc:371:3: error: use of undeclared identifier 'value'16:44
Sarayanmain.cc:183:1: error: use of undeclared identifier 'cxxrtl_design'16:45
SarayanI guess I must be missing a namespace or something16:45
whitequarkoh16:45
whitequarkwhat -I flag do you use?16:45
Sarayanwait, I have bigger isues16:46
whitequarkit should be -I <yosys-root> or -I /usr/local/share/yosys16:46
Sarayanyosys.cmd went wrong16:46
whitequarkwithout the backends/cxxrtl/...16:46
SarayanI had an empty c++ file generated for some reason16:47
whitequarkh16:47
whitequark*ah16:47
whitequarkbtw, you can use separate compilation now16:47
whitequark-b 'cxxrtl -header' -o design.cc makes design.cc + design.h16:48
Sarayanoh, interesting16:48
whitequarkso you don't have to spend time recompiling your stuff16:48
SarayanI still have to recompile my stuff given the header changes16:48
Sarayanor at least pretends to16:48
whitequarkthat's true; I can make it so that it won't update the .cc or .h file if it is about to write the exact same thing inside16:49
whitequarkhm, not the .cc file, but for the .h file, I can16:49
Sarayandoesn't the header have to change as soon as the internal state layout changes anyway?16:50
whitequarkSarayan: actually, if your design converges in 1 delta cycle, the header only contains registers16:52
whitequarkie sync signals16:52
Sarayanok, my step sizes vary between 2 and 516:52
whitequarkyes, then you'll benefit from the PR I am about to send16:52
Sarayancool16:52
whitequarkbtw, can you show me your driver code again?16:52
Sarayanpushing the current state16:53
*** dys has quit IRC16:53
Sarayanhttps://github.com/galibert/retrofpga/tree/master/overdrive16:53
tpbTitle: retrofpga/overdrive at master · galibert/retrofpga · GitHub (at github.com)16:53
Sarayanvia6522 has even simpler equivalent code16:53
*** elms has quit IRC16:54
*** emilazy has quit IRC16:54
Sarayanyeah, via still compiles16:54
whitequarkSarayan: oof, that's some complex driver code16:55
whitequarkok, so here is what i wanted you to ensure, because i got it wrong in example code earlier16:55
*** elms has joined #yosys16:55
Sarayanoverdrive yes16:55
*** emilazy has joined #yosys16:55
Sarayancheck via6522, the cxxrtl aspects are identical16:55
whitequarkyou should *never* change inputs to a design at the same time as you trigger flops16:56
whitequarkfor example if you have posedge flops, at the step where p_clk goes 0->1, there should be *nothing else* going on16:56
whitequarkyou can think of it as the simulator version of setup/hold violation16:56
Sarayanso I should change values just before setting clk to 0?16:56
whitequarkif you have just posedge flops, yep, that would be safe16:57
whitequarkand also the fastest way to do it16:57
Sarayanposedge is default, right?16:57
whitequarkyep16:57
Sarayanthen I have everything posedge16:57
SarayanI've learned my lesson, I have one clock, period16:57
whitequarkthen make sure you only change inputs on clk 1->016:57
Sarayanok, I have to change both drivers then16:58
whitequarkor your design will mysteriously break at some point later16:58
whitequarkwith some options, opt level, netlist and so on16:58
whitequarkyou know how race conditions look. you will get that.16:58
whitequark(or how setup/hold violations look...)16:59
Sarayanwell, maybe it explains why I can't read stuff out of the via6522 (yeah right)16:59
whitequarkpossibly?16:59
SarayanI was starting to be out of ideas, so maybe, even16:59
SarayanI read after putting the clock back to 1 *and* stepping, right?17:00
whitequarkyes17:01
Sarayangah, I don't even know what the test is supposed to do anymore :-)17:02
*** kraiskil has joined #yosys17:05
SarayanI feel like I'm not on the correct branch17:07
Sarayanyeah, I was on a write_cxxrtl branch17:08
*** kraiskil has quit IRC17:21
*** kraiskil has joined #yosys17:22
*** Cerpin has quit IRC17:28
*** marex-cloud has quit IRC17:29
*** marex-cloud has joined #yosys17:52
*** kraiskil has quit IRC18:04
*** kraiskil has joined #yosys18:11
*** gtw has quit IRC18:13
*** gtw has joined #yosys18:16
*** kraiskil has quit IRC18:35
*** craigo has quit IRC18:58
*** rcl` has joined #yosys19:03
*** Cerpin has joined #yosys19:28
*** strobokopp has joined #yosys19:31
*** FabM has quit IRC19:57
*** strobokopp has quit IRC20:04
*** FFY00 has quit IRC20:08
*** FFY00 has joined #yosys20:09
*** rjeli has quit IRC20:14
*** rjeli has joined #yosys20:15
*** jhol has quit IRC20:16
*** jhol has joined #yosys20:16
*** vidbina_ has joined #yosys20:20
*** jfcaron has quit IRC20:31
*** twnqx has quit IRC20:34
*** vidbina_ has quit IRC20:36
*** FFY00 has quit IRC21:20
*** FFY00 has joined #yosys21:21
*** mmicko has quit IRC23:09
*** mmicko has joined #yosys23:09

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