EDABOSS电子论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 518|回复: 4

[咨询求助] 用ModelSim仿真时出现的error

[复制链接]

6

主题

4

回帖

35

E币

技术员

Rank: 2

积分
16
发表于 2019-10-30 13:32:53 | 显示全部楼层 |阅读模式
不知道大侠们能不能给指指路,不知道是怎么会是出现了这些error。
# Loading work.testbench
# Loading work.top5
# ** Warning: (vsim-3009) [TSCALE] - Module 'top5' does not have a `timescale directive in effect, but previous modules do.
#         Region: /testbench/UUT
# Loading work.HSYNC_BLOCK
# ** Warning: (vsim-3009) [TSCALE] - Module 'HSYNC_BLOCK' does not have a `timescale directive in effect, but previous modules do.
#         Region: /testbench/UUT/HSYNC_BLOCK
# Loading work.D_FF
# ** Warning: (vsim-3009) [TSCALE] - Module 'D_FF' does not have a `timescale directive in effect, but previous modules do.
#         Region: /testbench/UUT/D_FF_HSYNC
# Loading work.VSYNC_BLOCK
# ** Warning: (vsim-3009) [TSCALE] - Module 'VSYNC_BLOCK' does not have a `timescale directive in effect, but previous modules do.
#         Region: /testbench/UUT/VSYNC_BLOCK
# Loading work.DATA_OUT
# ** Warning: (vsim-3009) [TSCALE] - Module 'DATA_OUT' does not have a `timescale directive in effect, but previous modules do.
#         Region: /testbench/UUT/DATA_OUT
# Loading work.IMAGE
# ** Warning: (vsim-3009) [TSCALE] - Module 'IMAGE' does not have a `timescale directive in effect, but previous modules do.
#         Region: /testbench/UUT/IMAGE
run -all
# Success! Annotation Simulation Complete.
# Break at test_top5.ant line 84
run -all
# Break key hit
# Break at test_top5.ant line 37
run -all
# Break key hit
# Simulation stop requested
积分规则
回复

使用道具 举报

17

主题

20

回帖

106

E币

技术员

Rank: 2

积分
54
发表于 2019-10-30 15:57:18 | 显示全部楼层
只是warning。因为你有的文件加了`timescale 有的没有加,所以会有这种告警。
回复 支持 反对

使用道具 举报

83

主题

19

回帖

275

E币

技术员

Rank: 2

积分
185
发表于 2019-10-30 15:57:38 | 显示全部楼层
我也没有看见err信息
回复 支持 反对

使用道具 举报

6

主题

4

回帖

35

E币

技术员

Rank: 2

积分
16
 楼主| 发表于 2019-10-30 15:58:39 | 显示全部楼层
# Break at test_top5.ant line 84
run -all
# Break key hit
# Break at test_top5.ant line 37
那上面为什么为什么会有Break?
用modolsim仿真时,会在这一行停下来。
并且,
在modolsim中compile设计的.v文件时显示success,
可是compile .tbw文件时显示有error,如下:
com -reportprogress 300 -work work {C:/Xilinx/Mypro/top7/test_top7.tbw}
# Model Technology ModelSim XE II vcom 5.7c Compiler 2003.03 Mar 15 2003
# -- Loading package standard
# ** Error: C:/Xilinx/Mypro/top7/test_top7.tbw(1): near "info": syntax error
# ** Error: C:/Xilinx/Mypro/top7/test_top7.tbw(117): near "3604238527": Numeric value exceeds INTEGER'high.
# WARNING[4]: C:/Xilinx/Mypro/top7/test_top7.tbw(122): A space is required between a number and an identifier.
回复 支持 反对

使用道具 举报

38

主题

9

回帖

171

E币

技术员

Rank: 2

积分
85
发表于 2019-10-30 15:59:00 | 显示全部楼层
# Break key hit
应该是你点击了modelsim中的暂停键,或者你的testbench中有$stop函数?
后面的error也很明白
# ** Error: C:/Xilinx/Mypro/top7/test_top7.tbw(117): near "3604238527": Numeric value exceeds INTEGER'high
interger的范围如果没有特别说明最大是65535。
# WARNING[4]: C:/Xilinx/Mypro/top7/test_top7.tbw(122): A space is required between a number and an identifier
数字和标识之间要用空格隔开。
不知道你要问的是不是这个。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|EDABOSS电子论坛

GMT+8, 2024-4-20 15:49 , Processed in 0.040555 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表