|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
本帖最后由 sdustyj 于 2011-9-28 13:42 编辑
今天看designware的文档,《DesignWare Building Block IP User Guide》,里边提到可以在hdl里手工例化desigware里的元件,但是这样的数据怎么仿真呢?这样用的情况多吗? O(∩_∩)O谢谢!
Suppose you want to instantiate the carry-lookahead implementation of a synthetic adder module in your design. The Verilog description in the following example accomplishes this.
-
- module DW01_add_inst_cla(in1, in2, ci, sum, cout);
- parameter wordlength = 8;
- input [wordlength-1:0] in1, in2;
- input ci;
- output [wordlength-1:0] sum;
- output cout;
- // synopsys dc_script_begin
- // set_implementation cla U1
- // synopsys dc_script_end
- // instantiate DW01_add
- DW01_add #(wordlength)
- U1(.A(in1), .B(in2), .CI(ci), .SUM(sum), .CO(cout));
- endmodule
复制代码 |
|