yosys/docs/source/code_examples/selections/memdemo.ys

10 lines
328 B
Plaintext

read_verilog memdemo.v
prep -top memdemo; memory; opt
cd memdemo
show -format dot -prefix memdemo_00
show -format dot -prefix memdemo_01 y %ci2
show -format dot -prefix memdemo_02 y %ci2:+$dff[Q,D]
show -format dot -prefix memdemo_03 y %ci2:-[CLK] %ci2
show -format dot -prefix memdemo_04 y %ci2:+$dff[Q,D] %ci*:-$mux[S]:-$dff