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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 6845|回复: 8

[求助] DC中set_flatten命令的问题

[复制链接]
发表于 2010-11-11 16:12:34 | 显示全部楼层 |阅读模式

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

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

x
最近看书和一些脚本,发现有个脚本在输出网表前,使用set_flatten -effort high 命令,但之后没有编译直接输出网表,感觉有点问题,就做了个实验,测试代码如下,可是不管是否加set_flatten命令编译,结果都是一样的,谁能解答下我的问题,我看了一下资料讲解set_flatten,可是我的实验做不出他们讲的那种效果。

module test(clk,q,d1,d2,d3,d4);

input clk;
input d1,d2,d3,d4;
output q;
reg q;

always @ (posedge clk)
begin
q <=(d1+d2)*d4+d3;
end

endmodule
发表于 2010-11-11 17:55:35 | 显示全部楼层
flatten是说将有hierarchy的设计打平,去掉层次结构
你的这个代码没有内部子模块,打平与不打平都是一层,当然没区别了
 楼主| 发表于 2010-11-13 21:31:31 | 显示全部楼层
回复 2# benjaminweber
ungroup是把层次打平吧,
flatten和structure相对,hierarchy和ungroup相对
发表于 2010-11-14 00:41:09 | 显示全部楼层
sorry, I am wrong.
发表于 2010-11-14 23:00:26 | 显示全部楼层
这命令应该很少用到吧
发表于 2011-3-1 14:12:01 | 显示全部楼层
回复 1# 追天鹅的青蛙
Flattening
The goal of this process is to convert combinational logic paths
of the design to a two-level, sum-of-products representation.
Flattening is carried out independently of constraints. It is useful
for speed optimization because it leads to just two levels of
combinational logic.
During flattening, Design Compiler removes all intermediate
variables, and therefore all its associated logic structure, from a
design. Flattening is not always practical, however, because it
requires a large amount of CPU time and can increase area.
By default, Design Compiler does not flatten your design. Use the
set_flatten command to control flattening of your design. The
set_flatten command and its options set the following
attributes: flatten, flatten_effort, flatten_minimize,
and flatten_phase.
发表于 2011-3-23 18:16:22 | 显示全部楼层
回复 6# 盗墓者


    这段话是官方的吗?
发表于 2011-3-24 09:55:16 | 显示全部楼层
如果把程序中input和output的位宽加几位就有区别了。
发表于 2014-9-27 15:10:23 | 显示全部楼层
好像是的,set_flatten ture  和 set_flatten false 的综合后的电路图一样,
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

×

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

GMT+8, 2024-5-28 18:44 , Processed in 0.031580 second(s), 8 queries , Gzip On, Redis On.

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