[英]Is it possible to get the attributes of an sc_fix thats been passed into a function?
Fairly new to systemc, I have been reading the documentation and I know that the sc_fix
type has attributes for the word length and the integer length. 对于systemc来说,这是很新的知识,我一直在阅读文档,而且我知道
sc_fix
类型具有字长和整数长的属性。 Is it possible to pull these attributes? 是否可以提取这些属性? I can't seem to find mention of any function that would return, say, the number of bits a particular passed
sc_fix
variable would contain. 我似乎找不到任何会返回的函数,例如,特定传递的
sc_fix
变量将包含的位数。
Any help or direction to relevant documentation would be appreciated. 任何帮助或对相关文档的指导将不胜感激。
Unless sc_fixed
would be a better option? 除非
sc_fixed
会是更好的选择? currently I am working on the assumptionthat sc_fixed is better to use as it is more flexible. 当前,我正在假设sc_fixed更好,因为它更灵活。
Use wl()
and iwl()
methods. 使用
wl()
和iwl()
方法。
sc_fixed
is derived from sc_fix
, which itself is derived from sc_fxnum
. sc_fixed
是从sc_fix
派生的,而sc_fix
本身是从sc_fxnum
派生的。 You can read documentation for sc_fxnum
to learn about basic features of all fixed-point types. 您可以阅读
sc_fxnum
文档,以了解所有定点类型的基本功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.