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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 6595|回复: 7

[求助] Error : fail to find 'glbl' in hierarchical name?

[复制链接]
发表于 2012-6-11 22:09:19 | 显示全部楼层 |阅读模式

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

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

x
如题。。。谢谢
发表于 2012-6-11 22:21:28 | 显示全部楼层
Are you running behavioral simulation with Xilnx verilog models? If so, you have to compile the "glbl.v" file in $Xilinx/verilog/src directory before running the simulation.
 楼主| 发表于 2012-6-13 22:41:55 | 显示全部楼层
回复 2# peppermint


    i compiled all the Xilinx lib files,special the glbl.v
发表于 2012-6-13 22:58:17 | 显示全部楼层
To my memory, you have to load all top module(s) for some old simulators. If the top module name of your testbench is called "testbench" and you have compiled both "testbench.v" and "glbl.v", then you should run

  vsim testbench glbl

rather than

  vsim testbench
 楼主| 发表于 2012-6-14 23:04:17 | 显示全部楼层
回复 4# peppermint


    en,u are right,thanks.
i have another question.
code : reg [4:0]data;
...
          if (data[4] == 1'b1)
          begin
                 tmp <= a;
          end
          else if (data[3] == 1'b1)
          begin  
                 tmp <= b;
          end
          ...
          else if (data[0] == 1'b1)
          begin
                 tmp <= e;
          end
          ...
i think this is not a good coding and when data == 5'b11111,the DC's result may be different.
what about your idea?
发表于 2012-6-15 10:59:10 | 显示全部楼层
That is a priority encoder. I think it is OK if you want it to be that way.
 楼主| 发表于 2012-6-15 23:22:32 | 显示全部楼层
回复 6# peppermint


    thanks.
but i think it's better to use case clause for it.
发表于 2012-6-16 06:29:07 | 显示全部楼层
It would be easier to read the casez or casex statements. For a priority encoder, the resultant synthesized netlist will be the same.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

X

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

GMT+8, 2025-6-2 04:08 , Processed in 0.025188 second(s), 9 queries , Gzip On, MemCached On.

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