[问题] SystemC, range的使用限制

楼主: ccoococo (...)   2016-02-13 18:38:23
开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
Linux
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
问题(Question):
可以使用bit range sel的data type, 如sc_bv, bit选择的上下界可以代变量吗?
例如 data.range(x,y)
喂入的资料(Input):
预期的正确结果(Expected Output):
错误结果(Wrong Output):
程式码(Code):(请善用置底文网页, 记得排版)
补充说明(Supplement):
抱歉因为小弟这几天人都不会在电脑前 只能凭笔和纸想算法
偏偏目前想到的做法会有这疑虑发生
不希望想了三天觉得可行的做法最后因为语法本身就不支援而要全部打掉...
我担心的问题点是
如果 data.range(x,y) 可以用
compiler如何在compile时就检查出bit数mismatch?
谢谢

Links booklink

Contact Us: admin [ a t ] ucptt.com