# Yosys 安裝
[新網站](https://yosyshq.net/yosys/about.html)
[舊網站](http://bygone.clairexen.net/yosys/download.html)
[github](https://github.com/YosysHQ/yosys)
## 安裝指南
1. 舊網站側分欄選擇Download

2. 下載後放入C或D槽

3. 新增yosys.exe所在的資料夾路徑至環境變數

4. 終端機輸入yosys,若跳出以下畫面即可正常執行

5. 參考指令 [github上有詳細說明](https://github.com/YosysHQ/yosys)
```
# read design
read_verilog PE.v
hierarchy -top pe
#writing the design to the console in Yosys's internal format
write_json
# the high-level stuff
proc; opt; fsm; opt; memory; opt
#display design netlist using xdot
show
# mapping to internal cell library
techmap; opt
#write design netlist to a new Verilog file
write_verilog PE_synth.v
```