Quick Start
This guide walks you through the shortest path to a working TMRX run. For the reasons behind the pass order, see Yosys Integration.
Procedure
-
Create a configuration file
tmrx_config.toml:[global] tmr_mode = "LogicTMR" insert_voter_after_ff = true clock_port_names = ["clk_i", "clk"] reset_port_names = ["rst_ni", "rst_n"] -
Create a Yosys synthesis script
synth.ys:read_verilog my_design.v hierarchy -check -top top proc; opt techmap tmrx_mark read_liberty -lib cells.lib dfflibmap -liberty cells.lib abc -liberty cells.lib tmrx -c tmrx_config.toml opt -noff techmap dfflibmap -liberty cells.lib abc -liberty cells.lib write_verilog -noattr output.v -
Run Yosys with the TMRX plugin:
yosys -m build/tmrx.so -s synth.ys
Next Steps
-
Learn about TMR Strategies and when to use each one.
-
Explore the Configuration guide and the Configuration Reference.
-
See complete Examples including hierarchical designs.