微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 嵌入式设计讨论 > FPGA,CPLD和ASIC > verilog如何实现底层与顶层module采用不同timescale值

verilog如何实现底层与顶层module采用不同timescale值

时间:10-02 整理:3721RD 点击:
比如底层module ·timescale 1ns/1ps ,顶层module ·timescale 100ps/100ps。谢谢指点

你在每一个module都定义一个timescale 就可以了

在需要100ps/100ps 的RTL代码的module之前使用
`timescale  100ps / 100ps
然后在endmodule 后使用
`timescale  1ns / 1ps 切换回来



   那样会选择最小的时间单位与时间精度的



   我试了一下,好像还是不行啊,还是选择最小的时间精度跟单位的。用的VCS。



   我试了一下,好像还是不行啊,还是选择最小的时间精度跟单位的。用的VCS。

单位应该是可以切换的 但精度是统一使用最小的



   明白了,十分感谢



   明白了,十分感谢



   明白了,十分感谢

The time_precision argument specifies how delay values are rounded before being used in simulation.The values used are accurate to within the unit of time specified here, even if there is a smaller time_precision argument elsewhere in the design.
The smallest time_precision argument of all the`timescale compiler directives in the design determines the precision of the time unit of the simulation.

非常个感谢

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top