【Vivado使用】从0开始 综合后生成门级网表

1、创建工程

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

vivado界面介绍

在这里插入图片描述
在这里插入图片描述
源码视图,加号添加文件。Design Sources 为设计源文件, Constraints 约束文件,Simulation Sources 仿真文件
在这里插入图片描述
工艺流程视图。用的多的为图中红色 SIMULATION 仿真,可以做行为仿真和综合后仿真;RTL ANALYSIS RTL代码分析,转换成门电路原理图;SYNTHESIS 综合,将硬件描述语言转换成原理图;IMPLEMENTATION 实现,设计流程中的后端设计(布局布线)并生成可烧录的bit流文件。

2、编写RTL代码 Verilog

在这里插入图片描述
在这里插入图片描述
创建Verilog文件
在这里插入图片描述
编写Verilog代码

module yihuo(
    input  x1,
    input  x2,
    output f
    );
    assign f=(x1 & ~x2) | (~x1 & x2);
endmodule

3、RTL 分析

在这里插入图片描述在这里插入图片描述
得到门级电路原理图

4、综合

在这里插入图片描述
在这里插入图片描述
综合后打开综合后的电路图
在这里插入图片描述
右上角选择debug模式即可看到原理图

5、生成网表

在这里插入图片描述
在这里插入图片描述
Settings 为full
在这里插入图片描述
在下方Tcl Console中输入指令

导出空壳引脚描述文件,输出文件名随意(路径注意是 / )
write_verilog -mode synth_stub D:/Vivado/test/netlist/yihuo.v
需要用以调用仿真
write_verilog -mode funcsim D:/Vivado/test/netlist/yihuo2.v

导出综合后的网表文件。
   1、不含Xilinx IP
write_edif D:/Vivado/test/netlist/yihuo3.edf
   2、包含Xilinx IP
write_edif -security_mode all D:/Vivado/test/netlist/yihuo4.edf
这里由于没有引入IP核  yihuo3.edf和yihuo4.edf是一样的文件

在这里插入图片描述
生成文件展示
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

6、使用生成的网表仿真

新建项目,导入edf和.v文件只需要yihuo.v和yihuo3.edf
在这里插入图片描述

在这里插入图片描述
创建testbench并例化yihuo模块,同时将yihuo3.edf删除并改名为yihuo.edf后重新导入(之前的失误,文件得与module名字绑定)
在这里插入图片描述
RTL分析,可以看到之前的模块是能够被读取出来的,然后进行综合
在这里插入图片描述
OVER

  • 12
    点赞
  • 78
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
iscas2spice spice netlist generation tool -- version 2.2 by Jingye Xu @ VLSI Group, Dept. of ECE, UIC, June, 2008 This tool reads the ISCAS85 benchmark circuit "*.bench" file and translate the file into SPICE netlist using the given technology and the standard cell library. platform: linux x86 sytem Input: ISCAS85 benchmark circuit: *.bench; standard cell library: stdcells.sclb; standard cell models: stdcells.lib; interconnect paramaters: *.int; Output: SPICE netlist: out.sp The whole procedure of the tools can be divided into several steps: 1. Gate replacement: replace the gates that can't be found in the with the gates in the standard cell lib. (break.pl) Output: *.bench, *.bench.bak 2. Generate the GSRC files: generate the GSRC files for the fengshui placer. (gsrcgen.pl) Output: gsrcfile/iscas.* 3. Placement: using the fengshui placement tool to perform the component placement. (fs50) Output: gsrcfile/iscas_fs50.pl 4. Generate ISPD file: tanslate the placement results into ISPD98 format file that can be used as the input of the global router. (gsrc2ispd.pl) Output: gsrcfile/iscas.laby.txt 5. Perform the routing: use the labyrinth global router to perform the routing. (mazeRoute) Output: gsrcfile/output 6. Generate the SPICE netlist: use all the available information to generate the final SPICE netlist. (spicegen.pl) Output: out.sp Usage: iscas2spice.pl Iscas85BenchmarkFile [-C/L/N] options: -C :default value, use the RC model for interconnect -L :use the RLC model for interconnect -N :treat interconnect as short circuit wire This package used the fengshui placement tools and labyrinth global routing tools, for information regarding these two free tools, please vist: http://www.ece.ucsb.edu/~kastner/labyrinth/ http://vlsicad.cs.binghamton.edu/software.html For information regarding this software itself please visit: http://wave.ece.uic.edu/~iscas2spice Many thanks to my advisor Masud H. Chowdhury for his support!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值