File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -306,14 +306,15 @@ yosys> show -color maroon3 c:fifo_reader -color cornflowerblue @new_cells -notit
306306Writing dot description to `rdata_proc.dot'.
307307Dumping selected parts of module fifo to page 1.
308308
309- yosys> flatten
309+ yosys> echo off
310+ echo off
311+ yosys> flatten;;
310312
31131315. Executing FLATTEN pass (flatten design).
312314Deleting now unused module $paramod\addr_gen\MAX_DATA=s32'00000000000000000000000100000000.
313315<suppressed ~2 debug messages>
314-
315- yosys> clean
316316Removed 3 unused cells and 25 unused wires.
317+ echo on
317318
318319yosys> select -set rdata_path o:rdata %ci*
319320
Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ show -color maroon3 c:fifo_reader -color cornflowerblue @new_cells -notitle -for
3939
4040# ========================================================
4141
42+ echo off
43+ log "yosys> flatten;;"
4244flatten;;
45+ echo on
4346select -set rdata_path o:rdata %ci*
4447select -set new_cells @rdata_path o:rdata %ci3 %d i:* %d
4548show -color maroon3 @new_cells -notitle -format dot -prefix rdata_flat @rdata_path
Original file line number Diff line number Diff line change @@ -292,8 +292,8 @@ optimizations between modules which would otherwise be missed. Let's run
292292
293293.. literalinclude :: /code_examples/fifo/fifo.out
294294 :language: doscon
295- :start-at: yosys> flatten
296- :end-before: yosys> select
295+ :start-at: yosys> flatten;;
296+ :end-before: echo on
297297 :name: flat_clean
298298 :caption: output of :yoscrypt: `flatten;; `
299299
@@ -313,13 +313,6 @@ and merged with the ``raddr`` wire feeding into the ``$memrd`` cell. This wire
313313merging happened during the call to :cmd:ref: `clean ` which we can see in the
314314:ref: `flat_clean `.
315315
316- .. note ::
317-
318- :cmd:ref: `flatten ` and :cmd:ref: `clean ` would normally be combined into a
319- single :yoterm: `yosys> flatten;; ` output, but they appear separately here as
320- a side effect of using :cmd:ref: `echo ` for generating the terminal style
321- output.
322-
323316Depending on the target architecture, this stage of synthesis might also see
324317commands such as :cmd:ref: `tribuf ` with the ``-logic `` option and
325318:cmd:ref: `deminout `. These remove tristate and inout constructs respectively,
You can’t perform that action at this time.
0 commit comments