yosys

What is a good “template” Yosys synthesis script?

半城伤御伤魂 提交于 2019-12-10 15:26:25
问题 I want to write my own Yosys synthesis script. What is a good template to start with? The manual and webpage contain various examples, but no "authoritative" hello world example. 回答1: The synth command runs the recommended script for general-purpose synthesis tasks. See help synth for a complete list of commands called by this meta-command. Your script should either borrow from synth or simply call synth to get the general-purpose stuff done. Many scripts call synth -run coarse for the coarse

Combinatorial synthesis: Better technology mapping results

醉酒当歌 提交于 2019-12-02 06:49:29
Using the following script, I am synthesising to a standard cell library for which I have a lib file, my_library.lib : read_liberty -lib my_library.lib script yosys_readfiles.ys proc; opt; memory; opt; fsm -norecode; opt techmap; opt dfflibmap -liberty my_library.lib abc -liberty my_library.lib hilomap -hicell LIB_TIEHI Y -locell LIB_TIELO Y clean write_verilog -noattr -noexpr output.v stat While this generally works, I found that some of the logic isn't mapped efficiently. For example, I have the following Verilog model of a 4-way multiplexer: module mux4( input i0, input i1, input i2, input