========================== sim - simulate the circuit ========================== .. raw:: latex \begin{comment} .. cmd:def:: sim :title: simulate the circuit .. code:: yoscrypt sim [options] [top-level] :: This command simulates the circuit using the given top-level module. .. code:: yoscrypt -vcd :: write the simulation results to the given VCD file .. code:: yoscrypt -fst :: write the simulation results to the given FST file .. code:: yoscrypt -aiw :: write the simulation results to an AIGER witness file (requires a *.aim file via -map) .. code:: yoscrypt -hdlname :: use the hdlname attribute when writing simulation results (preserves hierarchy in a flattened design) .. code:: yoscrypt -x :: ignore constant x outputs in simulation file. .. code:: yoscrypt -date :: include date and full version info in output. .. code:: yoscrypt -clock :: name of top-level clock input .. code:: yoscrypt -clockn :: name of top-level clock input (inverse polarity) .. code:: yoscrypt -multiclock :: mark that witness file is multiclock. .. code:: yoscrypt -reset :: name of top-level reset input (active high) .. code:: yoscrypt -resetn :: name of top-level inverted reset input (active low) .. code:: yoscrypt -rstlen :: number of cycles reset should stay active (default: 1) .. code:: yoscrypt -zinit :: zero-initialize all uninitialized regs and memories .. code:: yoscrypt -timescale :: include the specified timescale declaration in the vcd .. code:: yoscrypt -n :: number of clock cycles to simulate (default: 20) .. code:: yoscrypt -noinitstate :: do not activate $initstate cells during the first cycle .. code:: yoscrypt -a :: use all nets in VCD/FST operations, not just those with public names .. code:: yoscrypt -w :: writeback mode: use final simulation state as new init state .. code:: yoscrypt -r :: read simulation or formal results file File formats supported: FST, VCD, AIW, WIT and .yw VCD support requires vcd2fst external tool to be present .. code:: yoscrypt -append :: number of extra clock cycles to simulate for a Yosys witness input .. code:: yoscrypt -summary :: write a JSON summary to the given file .. code:: yoscrypt -map :: read file with port and latch symbols, needed for AIGER witness input .. code:: yoscrypt -scope :: scope of simulation top model .. code:: yoscrypt -at