<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