whitequark changed the topic of #yosys to: Yosys Open SYnthesis Suite: https://github.com/YosysHQ/yosys/ | Channel logs: https://libera.irclog.whitequark.org/yosys/ | Bridged to #yosys:matrix.org
tpb has quit [Remote host closed the connection]
tpb has joined #yosys
GenTooMan has quit [Ping timeout: 272 seconds]
GenTooMan has joined #yosys
<cr1901> Is it possible to get yosys' stat command to return stats of submodules, or, for instance "do a select for all cells that originated from a specific verilog module 'foo' and count them"
<cr1901> (cell overlap w/ other modules allowed, for the case where yosys reused cells between two modules after flattening)
<cr1901> I did "run yosys on the constituent submodules alone and print stats for each one", but that doesn't tell the whole story for "where is the cell/LUT/FF usage highest in my design?"
GenTooMan has quit [Remote host closed the connection]
GenTooMan has joined #yosys
GenTooMan has quit [Ping timeout: 272 seconds]
<cr1901> Answer to my question: 'submod -name "my_name" [selection]'. Then run "stat -json"
<cr1901> yosys flattening preserves the original module name for all cells at least for Amaranth-generated Verilog; so a command like "submod -name submodule_name TopLevelModule/each_submodule_name.*" does the job. Idk if this applies in general
skipwich has quit [Quit: DISCONNECT]
skipwich has joined #yosys
GenTooMan has joined #yosys
whitequark[cis] has joined #yosys
<whitequark[cis]> cr1901: that's not specific to Amaranth
<whitequark[cis]> hdlname composition is done for everything
<cr1901> I'm not selecting based on the hdlname attribute (and don't remember the syntax for selecting on attribute), but noted
<cr1901> I wrote a script that calls yosys and tabulates resource usage by extracting the JSON from stats: http://gopher.wdj-consulting.com:70/paste/48ed014a-b038-44c0-a852-779a68180f16.txt
<cr1901> (oh right, this depends on not-merged features of Amaranth (#904), so not useful to general public yet...)
<whitequark[cis]> ah right
corecode has joined #yosys
notgull has quit [Ping timeout: 240 seconds]
GenTooMan has quit [Ping timeout: 260 seconds]
notgull has joined #yosys
GenTooMan has joined #yosys
FabM has joined #yosys
FabM has joined #yosys
notgull has quit [Ping timeout: 245 seconds]
notgull has joined #yosys
killjoy has quit [Ping timeout: 252 seconds]
killjoy has joined #yosys
killjoy has quit [Changing host]
killjoy has joined #yosys
lexano has joined #yosys
cr1901_ has joined #yosys
cr1901 has quit [Read error: Connection reset by peer]
ZipCPU has quit [Ping timeout: 272 seconds]
ZipCPU has joined #yosys
killjoy has quit [Ping timeout: 260 seconds]
cr1901_ is now known as cr1901
FabM has quit [Ping timeout: 246 seconds]
tokamak has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
tokamak has joined #yosys
ec has quit [Ping timeout: 252 seconds]
ec has joined #yosys
ec has quit [Ping timeout: 252 seconds]
ec has joined #yosys
ec has quit [Remote host closed the connection]
flokli has quit [Quit: WeeChat 4.0.2]
flokli has joined #yosys
ec has joined #yosys
tokamak has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
tokamak has joined #yosys
nonchip has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nonchip has joined #yosys
lexano has quit [Ping timeout: 240 seconds]
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #yosys
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #yosys
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #yosys
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #yosys
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #yosys