Saturday, 2019-07-20

*** tpb has joined #yosys00:00
*** cr1901 has quit IRC00:23
*** cr1901 has joined #yosys00:24
*** emeb_mac has joined #yosys00:46
*** emeb_mac has quit IRC02:19
*** AlexDaniel has quit IRC02:27
*** PyroPeter has quit IRC02:30
*** PyroPeter has joined #yosys02:43
*** emeb has quit IRC03:07
*** emeb_mac has joined #yosys03:23
*** s_frit has quit IRC03:38
*** s_frit has joined #yosys03:39
*** citypw has joined #yosys03:40
*** attie has quit IRC04:14
*** citypw has quit IRC04:15
*** citypw has joined #yosys04:15
*** TFKyle has joined #yosys04:17
*** attie has joined #yosys04:23
*** s_frit_ has joined #yosys05:27
*** s_frit has quit IRC05:29
*** fevv8[m] has left #yosys06:33
*** dys has joined #yosys06:34
*** Jybz has joined #yosys06:47
*** indy has joined #yosys07:05
*** emeb_mac has quit IRC07:14
*** s_frit_ has quit IRC07:40
*** _whitelogger has quit IRC08:45
*** _whitelogger has joined #yosys08:47
*** proteusguy has quit IRC09:05
*** proteusguy has joined #yosys09:07
pepijndevos_Warning: Yosys has only limited support for tri-state logic at the moment. (../benchmarks/MCPU.v:61)10:20
pepijndevos_Trying to synthesize https://github.com/cpldcpu/MCPU/blob/master/verilog/MCPU_0.1a.v and failing10:20
tpbTitle: MCPU/MCPU_0.1a.v at master · cpldcpu/MCPU · GitHub (at github.com)10:20
tntpepijndevos_: yeah. "assign data   = states!=3'b001 ?  8'bZZZZZZZZ : accumulator[7:0]; " needs some change.10:26
tntAlso, is that supposed to be a top level ?  I mean tristate really only makes sense for IOs. No modern fpga has internal tristates.10:27
corecodeyea too bad that there is no easy way to communicate an output enable other than explicit second line10:27
corecodebut i guess it makes it more explicit10:27
pepijndevos_tnt, not totaly sure tbh, just some core I snatched from the web.10:29
corecodetnt: do you think it would make sense to automatically convert tristates to (hidden) enable signals and then connect to buffer OE?10:32
corecodeseems messy and too implicit10:32
corecodevery behavioral, not RTL10:32
*** adjtm has joined #yosys10:35
*** _whitelogger has quit IRC10:54
*** _whitelogger has joined #yosys10:56
*** Jybz has quit IRC11:13
*** Jybz has joined #yosys11:17
*** dys has quit IRC11:25
*** adjtm has quit IRC11:58
*** maikmerten has joined #yosys11:59
maikmertenwith latest yosys master LUT usage is back to normal (nextpnr can pack things together nicely again)12:16
maikmertenso thanks a lot! :-)12:16
maikmertenwith relut being at work and nextpnr being able to pack things again, LUT-usage overall is now lower than ever12:24
*** rrika has quit IRC12:33
maikmertenf_max is also back to normal, which means ~35 MHz (which I'm used to, caused by a carry chain) vs. ~45 MHz (with the original relut branch merged, with the carry chain no longer being the critial path). I wonder how the pre-fix yosys/nextpnr flow managed that.12:33
*** rrika has joined #yosys12:33
*** cr1901 has quit IRC13:17
*** cr1901 has joined #yosys13:17
*** dys has joined #yosys13:22
*** adjtm has joined #yosys13:36
*** Jybz has quit IRC13:41
pepijndevos_Huh, I'm confused. Looking at rtlil.h I swear I saw the actual implementations of add* functions, but I can't find them. I guess I'm being thick.15:03
pepijndevos_git grep addAdd does not seem to find any actual implementation.15:03
pepijndevos_oh, addAdff is there alright... but where are the others...15:05
pepijndevos_ah... DEF_METHOD15:06
pepijndevos_Is $mux always two-way? Because there is a $_MUX4_ but I've never seen $mux4, yet in rtlil.h it seems only two-way.15:11
daveshahLarger muxes would end up either as $pmux or $shiftx depending on coding style15:12
daveshahOr perhaps even a tree of $mux if coded using a tree of ?:15:13
pepijndevos_ah ok15:14
pepijndevos_I was looking at this code https://github.com/tgingold/ghdlsynth-beta/blob/db6d9f374de1eb1c074c2b9828bc6d99055b3624/ghdl/ghdl.cc#L34015:14
tpbTitle: ghdlsynth-beta/ghdl.cc at db6d9f374de1eb1c074c2b9828bc6d99055b3624 · tgingold/ghdlsynth-beta · GitHub (at github.com)15:14
pepijndevos_For a mux4 it indeed creates a tree of muxes, and was curious if that's the correct way to do it.15:14
daveshahIt's as good as any15:15
pepijndevos_Cool15:15
daveshahI'm not sure why ghdl has a mux4 cell in the first place...15:15
pepijndevos_I'm going to try to add module instatiations. We'll see if just adding it as a cell and connecting wires does the job.15:16
daveshahYes, modulo parameterisation15:16
pepijndevos_I think that's handled on the ghdl side, but not totally sure. Tristan mentioned he implemented modules in synthization but not on the yosys side, so I thought I'd try doing something useful.15:18
daveshahFor anything that isn't a blackbox leaf cell, you'll probably want to strip parameters from the instance and give each parameterised variant a unique name15:19
pepijndevos_right15:19
maikmertenis there a list of nextpnr python console commands?15:28
daveshahNo, unfortunately not15:31
maikmertenah, okay :-)15:33
daveshahFor querying the Arch database you can follow https://github.com/YosysHQ/nextpnr/blob/master/docs/archapi.md15:33
tpbTitle: nextpnr/archapi.md at master · YosysHQ/nextpnr · GitHub (at github.com)15:33
maikmertenjust wondering if there is a way to highlight critical paths in the graphical overview15:34
maikmertenbut perhaps stuff like that is not what the python console is actually meant for15:34
maikmerten(I imagine it's more for orchestrating processing steps)15:34
daveshahNo, unfortunately there's no Python or C++ api to get critical paths yet15:35
daveshahThe timing stuff isn't really integrated very well15:35
maikmertenit's still plenty neat :-)15:36
maikmertenhelp() at the time being is a halt-and-catch-fire alias15:38
maikmertenI guess that's because it's doing interactive stuff with stdin and stdout presumably15:39
daveshahTab completion should work15:40
maikmertenit does!15:40
*** emeb has joined #yosys16:07
*** citypw has quit IRC16:29
pepijndevos_What's a blackbox module supposed to look like in `dump`? Currently ghdl just makes a module \name end16:40
*** adjtm has quit IRC16:40
daveshahIt also needs ports and a blackbox attribute set on it16:40
pepijndevos_I thought as much... some work to do then.16:42
*** adjtm has joined #yosys18:16
*** maikmerten has quit IRC18:26
*** emeb_mac has joined #yosys18:53
*** pie_ has quit IRC19:05
*** cr1901 has quit IRC19:12
*** cr1901 has joined #yosys19:12
*** Thorn has quit IRC20:05
*** pie_ has joined #yosys21:32
*** pie_ has joined #yosys21:33
*** pie_ has joined #yosys21:35
*** emeb_mac has quit IRC21:35
*** Thorn has joined #yosys21:54
*** cr1901 has quit IRC22:02
*** cr1901 has joined #yosys22:02
*** _whitelogger has quit IRC23:48
*** _whitelogger has joined #yosys23:50

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