在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 3853|回复: 9

[求助] 为什么我的DC不认`ifdef

[复制链接]
发表于 2010-9-15 16:28:58 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
DC2000  如果不支持verilog2000 不认`ifndef 我也忍了,

为什么遇到`ifdef的语句也报错呢?  哪里没设置好么?  

`define到可以认,哪位帮帮我啊
发表于 2010-9-15 16:54:39 | 显示全部楼层
USE:

ex.
analyze -f verilog -work MY_LIB ${VERILOG_SRC}
 楼主| 发表于 2010-9-15 17:38:30 | 显示全部楼层
能讲得具体点么?

我是这样弄的:
define_design_lib WORK -path "work"
analyze -liberary WORK -f verilog  {xx.v xx.v xx.v}

报错:Error: Undefined macro `ifdef at or near token '`ifdef'

2# spikeyen
发表于 2010-9-15 21:13:08 | 显示全部楼层
dfsfdsfds
发表于 2010-9-15 21:24:15 | 显示全部楼层
dc2000还不支持verilog2000,不会吧
发表于 2010-9-16 08:36:44 | 显示全部楼层
Verilog-1995 supports limited conditionalcompilation
  : `ifdef, `else, `endif and `undef compiler directives
Verilog-2001 adds more extensive conditional compilation control
New directives: `ifndef and `elsif

ex.
analyze -f verilog -work MY_LIB  chip_define.h
analyze -f verilog -work MY_LIB {trim_test_macro.v}

//////////////////////////////////////////////////////
chip_define.h

`define USE_OSC_MUX

//////////////////////////////////////////
`ifdef  USE_OSC_MUX


Good Luck !!
发表于 2010-9-17 10:12:16 | 显示全部楼层
弱问:有verilog 2000?
我只听过verilog 95,verilog 2001,还有一个不是很大变化的verilog 2005
发表于 2010-9-22 02:26:56 | 显示全部楼层
学习了
发表于 2010-10-18 13:56:09 | 显示全部楼层
看看。
发表于 2010-10-18 15:43:54 | 显示全部楼层
没用过,纯学习的路过
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-14 23:42 , Processed in 0.045445 second(s), 8 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表