*** tpb has joined #yosys | 00:00 | |
emeb | well sort of. touched the code and reran synth and now it doesn't work. | 00:00 |
---|---|---|
emeb | time to re-write this with synchronous logic. | 00:03 |
*** lutsabound has joined #yosys | 00:28 | |
*** Degi has quit IRC | 01:59 | |
*** Degi has joined #yosys | 01:59 | |
*** citypw has joined #yosys | 02:20 | |
*** lutsabound has quit IRC | 02:37 | |
az0re | whitequark: Understood. TBH the only reasons I've found for wanting boost are: 1) as a dependency for minipart2, but daveshah's hypergraph partitioning implementation will eliminate the need for that; 2) boost bimap for the .hgr file formatting code in `partition`, which would reduce memory usage. Not a big deal. | 03:40 |
az0re | But frankly I disagree about boost in particular, and I would much sooner introduce a dependency boost bimap than scons, for example. But I will always try to avoid boost (or any dependencies) if possible | 03:41 |
az0re | Then again I don't do much cross-compiling, so I'm ignorant of the challenges boost can cause for that. Is there anything in particular? | 03:43 |
az0re | Especially for header-only libraries (IIRC bimap is one) I wouldn't expect any serious difficulties | 03:45 |
*** emeb has quit IRC | 03:47 | |
*** _whitelogger has quit IRC | 05:54 | |
*** _whitelogger has joined #yosys | 05:56 | |
*** emeb_mac has quit IRC | 05:58 | |
az0re | Oh shit, how did I miss this? https://vlsicad.ucsd.edu/GSRC/bookshelf/Slots/Partitioning/MLPart/ | 06:00 |
daveshah | The dependency chain is quite annoying for that one | 06:03 |
az0re | I can't even download the source code lol | 06:03 |
az0re | I have to send an email to a GMail account | 06:03 |
az0re | lolwut | 06:03 |
daveshah | I did find a link somewhere | 06:04 |
az0re | It *does* seem MIT licensed, though | 06:04 |
az0re | https://vlsicad.ucsd.edu/GSRC/bookshelf/Slots/Partitioning/MLPart/COPYRIGHT | 06:04 |
daveshah | http://vlsicad.eecs.umich.edu/BK/PDtools/tar.gz/OLD_RELEASES/ | 06:04 |
tpb | Title: Index of /BK/PDtools/tar.gz/OLD_RELEASES (at vlsicad.eecs.umich.edu) | 06:04 |
az0re | Sooo once a copy is obtained, it could henceforth be published as part of Yosys | 06:04 |
daveshah | Some of the dependencies have weird licenses | 06:04 |
daveshah | And you effectively need a big chunk of UCLAPack, not just MLPart | 06:04 |
az0re | Oh, nice catch | 06:05 |
az0re | I see | 06:05 |
daveshah | It could be possible to get it to work and strip out the dubious bits | 06:05 |
az0re | I'll look around later and see if it might be worth the effort | 06:08 |
az0re | The attractive part is that it's permissively licensed and apparently a performance-competitive Real Serious Tool actually used to tape out real designs | 06:09 |
daveshah | Yes, other bits might be useful too | 06:13 |
daveshah | A more general package with the dodgy bits stripped out would be handy | 06:13 |
*** _whitelogger has quit IRC | 08:06 | |
*** _whitelogger has joined #yosys | 08:08 | |
*** indy has quit IRC | 08:14 | |
*** Asu has joined #yosys | 08:51 | |
*** indy has joined #yosys | 09:31 | |
*** indy has quit IRC | 10:41 | |
*** indy has joined #yosys | 10:46 | |
*** kraiskil has joined #yosys | 11:02 | |
*** kraiskil has quit IRC | 11:23 | |
*** dys has quit IRC | 11:40 | |
*** mirage335 has quit IRC | 11:48 | |
*** mirage335 has joined #yosys | 12:00 | |
*** thardin has joined #yosys | 12:31 | |
*** kraiskil has joined #yosys | 12:44 | |
*** esden has quit IRC | 12:45 | |
*** esden has joined #yosys | 12:47 | |
*** elGamal has quit IRC | 13:31 | |
*** elGamal has joined #yosys | 13:31 | |
*** dys has joined #yosys | 14:04 | |
*** emeb has joined #yosys | 14:09 | |
*** m4ssi has joined #yosys | 14:43 | |
*** mirage335 has quit IRC | 14:45 | |
*** X-Scale` has joined #yosys | 14:55 | |
*** X-Scale has quit IRC | 14:57 | |
*** X-Scale` is now known as X-Scale | 14:57 | |
*** X-Scale` has joined #yosys | 14:59 | |
*** X-Scale has quit IRC | 15:01 | |
*** X-Scale` is now known as X-Scale | 15:01 | |
*** mirage335 has joined #yosys | 15:13 | |
*** m4ssi has quit IRC | 15:39 | |
*** mirage335 has quit IRC | 16:05 | |
whitequark | az0re: boost's build system is technically documented, but not in any useful way, so if you want to get it to work, you'd better start reading its sources and guessing what all the different parts do | 16:12 |
whitequark | it's significantly worse than cmake in that aspect | 16:12 |
whitequark | it took me a day to get yosys compiled to wasm. it took me a week consisting of nothing but pain to get boost to do the same thing | 16:13 |
az0re | I see, so the pain comes from building boost from source, not necessarily from the dependency itself | 16:20 |
az0re | For platforms without boost packages, though, I guess it's a distinction without a difference | 16:21 |
whitequark | az0re: note that b2 is just a part of the problem | 16:22 |
whitequark | there's also the other part of the problem, namely that boost is one of those libraries with infinite scope | 16:22 |
whitequark | you can't just pull in a small part of boost. you take a large part of the entire thing and then it starts creeping all over your code | 16:23 |
whitequark | you're no longer writing c++. you're writing boost::c++. i do not like boost::c++ and i do not want to maintain it. | 16:23 |
*** mirage335 has joined #yosys | 16:23 | |
az0re | Meh, that shouldn't be a problem with code review and requiring a justification for using boost stuff | 16:37 |
az0re | I agree it should not be relied on heavily | 16:38 |
az0re | But boost has some great stuff and ideally it wouldn't be categorically rejected | 16:38 |
*** mirage335 has quit IRC | 16:40 | |
whitequark | mwk: on #2195, do you want my review on the content or on the tex stuff? | 16:43 |
*** mirage335 has joined #yosys | 16:47 | |
mwk | whitequark: both really | 16:48 |
whitequark | so I can't really do much wrt tex, I cargo culted stuff in my own changes to the manual | 16:49 |
whitequark | it's quite frustrating to work with | 16:50 |
az0re | mwk: WRT #2195 I think you cannot do line breaks inside `lstinline` | 16:51 |
mwk | I did mention I hate tex already, right | 16:51 |
az0re | lol yes | 16:51 |
az0re | Though to be pedantic, you probably hate LaTeX | 16:51 |
az0re | TeX is fine | 16:51 |
whitequark | after seeing how the verbatim environment is implemented i'm pretty sure tex is not fine | 16:52 |
mwk | what I hate most is the fucking cult about tex, and it being the most perfect thing ever | 16:52 |
az0re | I know very few people who believe LaTeX is the most perfect thing ever | 16:54 |
az0re | Actually I only ever met one person like that | 16:54 |
az0re | I don't think it's so much a cult as a lack of realistic alternatives | 16:54 |
* mwk points to the entire faculty at her university | 16:54 | |
az0re | You must be at a funny university! | 16:54 |
whitequark | seems similar to verilog, then | 16:54 |
qu1j0t3 | az0re: yeah mostly that | 16:54 |
whitequark | people converting stockholm syndrome into obsession with the tool | 16:54 |
whitequark | "i have suffered for years to learn all the pitfalls, if you don't too, you're just bad at it" | 16:55 |
mwk | as for alternatives, how about sphinx for software documentation? | 16:56 |
Sarayan | What's better? What's even equivalent w.r.t collaborative work? | 16:56 |
az0re | From what I understand after collaborating on multiple papers with a skilled LaTeX user is that cargo culting gets you 95% of the way but you really have to go and understand LaTeX from first principles, and that's not something I'm willing to do for that extra 5% | 16:56 |
Sarayan | At least for reports and papers, that kind of stuff | 16:56 |
mwk | I don't know, fucking libreoffice? | 16:57 |
az0re | Oh god please no | 16:57 |
whitequark | you can't version control libreoffice files | 16:57 |
mwk | yeah, just | 16:57 |
az0re | If only there was a markup language widely deployed, something flexible and powerful that everyone can render | 16:57 |
mwk | annoyed at the contempt you get here if you submit PDFs from something that isn't tex | 16:58 |
Sarayan | I've done reports with fucking libreoffice, I almost killed some people | 16:58 |
az0re | ;) | 16:58 |
whitequark | ah, yeah | 16:58 |
az0re | Why not HTML? | 16:58 |
Sarayan | it can't manage tables worth shit | 16:58 |
daveshah | I did my masters project in libreoffice | 16:58 |
daveshah | It definitely wound a lot of people up | 16:58 |
Sarayan | what I loved with libreoffice is when I had a 89 pages document, did backspace on a page end and went to 81, did undo and went 82 | 17:00 |
Sarayan | it's the 82 I wanted, but, errr | 17:01 |
az0re | Yeah, layout needs to be specified by markup text in the source file, otherwise it's a nightmare trying to get a consistent look and layout, especially with collaborators | 17:02 |
az0re | So no libreoffice | 17:03 |
az0re | I haven't seen sphinx before | 17:03 |
az0re | Markdown would be a good choice except it's too limited for this context | 17:03 |
daveshah | Yeah sphinx could well be a good option for Yosys | 17:03 |
az0re | HTML I think is a good alternative | 17:03 |
az0re | Not ideal, but arguably better than LaTeX | 17:04 |
az0re | Yeah Sphinx looks interesting, maybe better than raw HTML | 17:06 |
daveshah | I haven't looked at it much, but I think you can extend it with Python which could be useful | 17:06 |
Sarayan | Sphinx is quite good for docs | 17:06 |
whitequark | reST isn't *great* but it's fairly easy to work with | 17:17 |
whitequark | the main problem i found is that it's not composable | 17:17 |
whitequark | e.g. you cannot make a link italic | 17:17 |
whitequark | it's so much more accessible than TeX and the non-pdf outputs are so vastly better that I'll take it any day of year | 17:18 |
*** kraiskil has quit IRC | 17:18 | |
*** citypw has quit IRC | 17:18 | |
qu1j0t3 | yeah composeability can't be an afterthought (in prog langs either) | 17:19 |
* qu1j0t3 is just glad nobody said DocBook | 17:20 | |
Sarayan | I'd love something with the style/content separation of latex, the text format, and the typesetting quality, but I suspect network effects are such that it will never happen | 17:21 |
qu1j0t3 | someone on twitter announced they were embarking on another LaTeX replacement about six weeks ago | 17:24 |
*** craigo has joined #yosys | 17:41 | |
Sarayan | qu1j0t3: I suspect the hard part is deciding what the documents markup should look like | 17:56 |
Sarayan | so much bideshdding | 17:56 |
qu1j0t3 | heh | 17:57 |
qu1j0t3 | so many ways to reinvent badly | 17:57 |
*** kraiskil has joined #yosys | 18:02 | |
*** craigo has quit IRC | 18:16 | |
*** kraiskil has quit IRC | 18:57 | |
thardin | do I understand correctly that ram blocks in the iCE40 can be programmed with default values? with the caveat that one needs to wait 36 cycles for the values to "take" | 20:21 |
whitequark | 36 cycles? | 20:25 |
whitequark | where'd you get that number? | 20:25 |
*** az0re has quit IRC | 20:26 | |
thardin | found somewhere when searching for the "Warning: Replacing memory \pp with list of registers." warning | 20:27 |
thardin | https://github.com/YosysHQ/icestorm/issues/76#issuecomment-289270411 | 20:28 |
tpb | Title: Block ram reads within ~36 cycles of device reset always return 0, but only on the first reset after device reconfiguration. · Issue #76 · YosysHQ/icestorm · GitHub (at github.com) | 20:28 |
whitequark | right so this delay isn't cycle-based | 20:29 |
whitequark | https://github.com/nmigen/nmigen/blob/master/nmigen/vendor/lattice_ice40.py#L350-L366 | 20:29 |
tpb | Title: nmigen/lattice_ice40.py at master · nmigen/nmigen · GitHub (at github.com) | 20:29 |
thardin | hmm.. I wonder how the reset circuitry actually works | 20:31 |
thardin | I've done a couple of passes over the family datasheets so far | 20:31 |
thardin | if it works the way I want then it seems very handy for say a sine LUT | 20:35 |
thardin | block RAM that is | 20:35 |
whitequark | yes, you can use initialized block RAMs on iCE40 if that's the question | 20:35 |
whitequark | just like on most other FPGAs | 20:35 |
thardin | "By preloading the RAM block during the chip configuration cycle and disabling the write controls, the sysMEM block can also be utilized as a ROM." | 20:36 |
thardin | sweet | 20:36 |
thardin | could be used to replace some logic blocks too, if it starts getting cramped | 20:37 |
thardin | *reading TN1250* | 20:39 |
whitequark | yep | 20:39 |
thardin | and the bram location in the gui corresponds nicely with what the datasheet says | 20:42 |
*** emeb_mac has joined #yosys | 20:51 | |
*** Asuu has joined #yosys | 20:56 | |
*** Asu has quit IRC | 20:56 | |
thardin | just about the perfect size for a sine LUT for a 12-bit DAC | 20:58 |
*** Asuu has quit IRC | 21:26 | |
*** alexhw has quit IRC | 21:59 | |
*** alexhw has joined #yosys | 21:59 | |
*** maartenBE has quit IRC | 22:07 | |
mithro | whitequark / daveshah / az0re: About 2 years ago I tried to convince Yosys to convert to sphinx based documentation, even offering to pay for people to do the conversion but was told it was not something that was needed or wanted. I've been trying to improve sphinx for documenting HDL related projects with things like http://sphinxcontrib-verilog-diagrams.rtfd.io/ for a while now. | 22:10 |
tpb | Title: Sphinx Verilog Diagrams Sphinx Verilog Diagrams 0.0-86-g8c16b8f documentation (at sphinxcontrib-verilog-diagrams.rtfd.io) | 22:11 |
mithro | This was back when prjxray / vpr / prjtrellis and fasm started using Sphinx. | 22:12 |
*** maartenBE has joined #yosys | 22:41 | |
whitequark | mithro: whoa neat i'm going to use verilog-diagram in nmigen i think | 22:47 |
whitequark | well | 22:47 |
whitequark | can we get nmigen-diagram? :p | 22:47 |
mithro | whitequark: I mean it is just yosys + netlistsvg | 22:48 |
whitequark | sure, i mean | 22:48 |
whitequark | can you consider renaming the project to something like sphinxcontrib-hdl-diagram and allowing other inputs? | 22:48 |
whitequark | rtlil or nmigen or vhdl or... | 22:48 |
mithro | whitequark: oh - sure | 22:48 |
mithro | If Yosys' opinion has changed on using sphinx for documentation, I might still be able to scrounge together some funding to pay people to do the boring part of transferring over existing documentation | 22:49 |
whitequark | I do not speak for the project, but I would personally be in favor of Sphinx | 22:50 |
whitequark | the current latex docs are a massive PITA to contribute to, and more than once I just gave up | 22:50 |
whitequark | I can raise that on the next meeting | 22:50 |
mithro | whitequark: The OpenROAD project, Verilog to Routing and the SkyWater PDK I'm working on also use Sphinx -- so it would enable inter-linking docs | 22:51 |
mithro | I've been meaning to resurrect the sphinx documentation for LiteX stuff I did a long time ago | 22:52 |
whitequark | yes, there are multiple good things in sphinx | 22:52 |
mithro | It's by no mean perfect -- but perfect is the enemy of getting things done :-) | 22:52 |
whitequark | it's okay. reST is not all that good, but neither is TeX | 22:53 |
mwk | seconded about sphinx for yosys | 23:15 |
*** emeb has quit IRC | 23:25 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!