当前位置:网站首页>达芬奇pro的FPGA学习笔记6.2--vcs和verdi开发蜂鸟e203
达芬奇pro的FPGA学习笔记6.2--vcs和verdi开发蜂鸟e203
2022-07-15 18:12:00 【爱发明的小兴】
参考博客:1、在vcs中编译及运行测试E203例子
2、开源RISC-V处理器(蜂鸟E203)学习(一)修改仿真环境(vcs2018+verdi2018)
3、 VCS常用命令详解
上一个教程中,e203使用开源iverilog来编译代码。本次主要讲解如何搭建vcs和verdi的e203开发环境。
按照上一节的教程,用git clone来下载蜂鸟的项目工程,并修改文件夹的名字为e200_opensource_vcs_verdi。
1、进入到下图指定的路径下,用gvim打开run.makefile文件。

2、修改仿真器。

3、修改vcs编译的参数
-timescale=1ns/1ns -fsdb -full64 -R +vc +v2k -sverilog -debug_all -P ${LD_LIBRARY_PATH}/novas.tab ${LD_LIBRARY_PATH}/pli.a -l vcs.log +incdir+${VSRC_DIR}/core/+${VSRC_DIR}/perips/

-timescale=1ns/1ns 时延单位为1ns,时延精度为1ns。
-fsdb 调用verdi的PLI库,支持fsdb波形。
-full64 支持64位模式运行。
-R 编译后立即运行,即编译完成后立即执行 ./simv。
+vc 使用DirectC接口时,使能verilog直接调用C/C++函数。
+v2k 支持Verilog-2001标准。
-sverilog 支持systemverilog。
-debug_all 用于产生debug所需的文件。
-P 指定PLI表文件。
-l vcs.log 用于将编译产生的信息放在log文件内。
+incdir+ 指定VCS搜索`include指令使用的包含文件的目录,可以用“+”定义多个目录。
4、修改SIM_EXEC的参数

5、修改MAV_TOOL和MAV_OTPIONS的参数
-2001 -sv -top tb_top +incdir+${VSRC_DIR}/core/+${VSRC_DIR}/perips/

6 修改make的wave命令的操作代码

${WAV_TOOL} ${WAV_OPTIONS} ${RTL_V_FILES} ${TB_V_FILES} &
7 修改tb文件

使用gvim来修改tb文件。
8 加载rtl文件
这里使用的命令是
make install CORE=e203

会再vsim目录下会生成install文件夹。
9 编译和运行工程
这里使用的命令是
make compile
make run_test

会显示出一个大大的PASS。
9 查看rtl代码以及仿真波形
这里使用的命令是
make wave

10 回归测试以及查看回归测试结果
这里使用的命令是
make regress_run
make regress_collect

11 清除工程
make clean
边栏推荐
- 家居建材企业如何打造智慧供应链管理体系?数商云供应链系统深耕采购、物流多业务应用场景
- Tens of billions of data were compressed to 600gb, and tdengine was launched on GCL energy mobile energy platform
- 8254 timer / counter application experiment
- Create and generate WiFi QR code mobile phone scanning link
- Handwriting recognition in MATLAB deep learning practice (including detailed notes)
- Broadcast mechanism in pytoch
- Torch in pytoch full(),torch. Ones() and torch Analysis of zeros() function
- LDAP introduction
- go 语言学习笔记(1)
- 《MySQL高级篇》二、逻辑架构分析
猜你喜欢

Torch in pytoch Unsqueeze() and torch Squeeze() function parsing

From March to June, after summary, more than 200 pages of true question notes and detailed explanations (including core test sites and 6 major factories)

Refute 'all management without assessment is nonsense'

How to set the allure test report

图片待传递

SAP S/4HANA New Simplified Data Model (NSDM) 模型介绍

Li Mu hands on deep learning V2 target detection SSD

CRMEB Pro v1.4,让用户体验更出彩!

Software architecture and design (I) -- key principles

Today, another chip IPO came out of Shenzhen Huaqiangbei
随机推荐
MySQL安装时一直卡在starting the server的解决方案
Lifecycle: the foundation of lifecycle aware components - jetpack series (1)
浩辰CAD建筑版 2022软件安装包下载及安装教程
Replace specific characters / text improvements in word with POI
MYSQL和 ORACLE 的常见区别(二)
EasyGBS平台编辑设备管理分组时,出现崩溃该如何解决?
第三讲:翻转单词顺序
Unity iotar augmented reality tutorial
数据库:使用WHERE语句进行检索(头歌)
Refute 'all management without assessment is nonsense'
Is it safe for tongdaxin to open an account? Which securities are good for opening an account
YesDev:轻松协作每一个项目
Handwriting recognition in MATLAB deep learning practice (including detailed notes)
Common methods of golang net network package
PostgreSQL自带的单机并行查询的执行方法是什么?
Today, another chip IPO came out of Shenzhen Huaqiangbei
@Repository @ [email protected] Understanding of annotations
Consumer start flash back
GeoServer complete tutorial
Signification physique de la transformation de Fourier