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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 8220|回复: 13

[求助] DC 综合问题请教

[复制链接]
发表于 2012-3-21 14:52:45 | 显示全部楼层 |阅读模式

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

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

x
代码很简单
module mul(a,b,c);
  input [5:0]a;
  input [5:0]b;
  output [10:0]c;
   reg  [10:0]c;

always @(posedge clk)
   begin
       if(!rst_n)
            begin
                c<=0;
            end
       else
            begin
                  c <= a*b;
           end
    end
endmodule


然后综合结果显示Warning: In design 'Lens_mul', cell 'B_2' does not drive any nets.
Warning: Module Lens_mul contains unmapped components.  The output netlist might not be read back into the system.


没有error,但是面积报告上都是0,请问是什么情况
发表于 2012-3-21 15:30:18 | 显示全部楼层
我觉得是你敏感列表里没有rst_n的缘故,改成always @(posedge clk or negedge rst_n)试试
发表于 2012-3-21 15:31:53 | 显示全部楼层
综合的脚本能不能贴出来?
发表于 2012-3-21 16:04:18 | 显示全部楼层
c为什么是11位而不是12位?当然这不是根本问题,不过最好先修正了吧。
 楼主| 发表于 2012-3-21 16:07:10 | 显示全部楼层
是我自己在脚本里忘记加compile了,但是综合出来还是有warning
Warning: In design 'Lens_mul_DW02_mult_0', the same net is connected to more than one pin on submodule 'FS_1'. (LINT-33)
   Net 'n3' is connected to pins 'B[3]', 'B[2]', 'B[1]'.
   Net '*Logic0*' is connected to pins 'B[0]', 'CI'.
Warning: In design 'Lens_mul_DW01_add_0', port 'A[9]' is not connected to any nets. (LINT-28)
Warning: In design 'Lens_mul_DW01_add_0', input port 'A[4]' is connected directly to output port 'SUM[4]'. (LINT-29)
Warning: In design 'Lens_mul_DW01_add_0', input port 'A[3]' is connected directly to output port 'SUM[3]'. (LINT-29)
Warning: In design 'Lens_mul_DW01_add_0', input port 'A[2]' is connected directly to output port 'SUM[2]'. (LINT-29)
Warning: In design 'Lens_mul_DW01_add_0', input port 'A[1]' is connected directly to output port 'SUM[1]'. (LINT-29)
Warning: In design 'Lens_mul_DW01_add_0', input port 'A[0]' is connected directly to output port 'SUM[0]'. (LINT-29)
Warning: In design 'Lens_mul_DW01_add_0', port 'B[9]' is not connected to any nets. (LINT-28)
Warning: In design 'Lens_mul_DW01_add_0', port 'B[4]' is not connected to any nets. (LINT-28)
Warning: In design 'Lens_mul_DW01_add_0', port 'B[3]' is not connected to any nets. (LINT-28)
Warning: In design 'Lens_mul_DW01_add_0', port 'B[2]' is not connected to any nets. (LINT-28)
Warning: In design 'Lens_mul_DW01_add_0', port 'B[1]' is not connected to any nets. (LINT-28)
Warning: In design 'Lens_mul_DW01_add_0', port 'B[0]' is not connected to any nets. (LINT-28)
Warning: In design 'Lens_mul_DW01_add_0', port 'CI' is not connected to any nets. (LINT-28)
Warning: In design 'Lens_mul_DW01_add_0', port 'SUM[9]' is not connected to any nets. (LINT-28)
Warning: In design 'Lens_mul_DW01_add_0', port 'CO' is not connected to any nets. (LINT-28)
请问下我需要关注么
 楼主| 发表于 2012-3-21 16:07:56 | 显示全部楼层
回复 3# everhappy


    我看了下网表 增加了一个adder 但是没有用到
发表于 2012-3-21 18:22:22 | 显示全部楼层
2楼应该是正解
发表于 2012-3-21 22:42:42 | 显示全部楼层
应该有两个问题:
  1.  C的位宽应该改为12位。否则乘积可能会有问题。
  2.  rst_n似乎未声明。
发表于 2012-3-22 09:43:22 | 显示全部楼层
你是不是还有其他code没有贴出来,warning里面还有加法器,你应该整体看看问题在哪里,有些没有连的端口,为什么悬空,看影不影响你的design。
发表于 2012-3-22 16:38:41 | 显示全部楼层
顶一下8楼
此外,乘法器就是加法器来实现的,所以出来的网表有一些悬空是正常的现象,比如有的进位位没有驱动其他单元,仔细检查网表,看看具体的原因。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

×

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

GMT+8, 2024-4-28 06:09 , Processed in 0.035790 second(s), 9 queries , Gzip On, Redis On.

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