锡尔.py无法运行

2024-04-26 12:39:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我试过克里斯·费尔顿的myHDLsample code。你知道吗

我无法使模拟模块导入的函数编译,出现以下错误:

Traceback (most recent call last)
File "siir.py", line 497, in <module>
tb = flt.TestFreqResponse(Nloops=3, Nfft=1024)
File "siir.py", line 408, in TestFreqResponse
dut = traceSignals(self.RTL, clk, x, y, ts)
File "C:\WinPython-32bit-2.7.6.3\python-2.7.6\lib\site-   packages\myhdl\_traceSignals.py", line 82, in __call__
h = _HierExtr(name, dut, *args, **kwargs)
File "C:\WinPython-32bit-2.7.6.3\python-2.7.6\lib\site- packages\myhdl\_extractHierarchy.py", line 233, in __init__
_top = dut(*args, **kwargs)
File "siir.py", line 370, in RTL
hdl = siir_hdl(clk, x, y, ts, A=self.fxa, B=self.fxb, W=self.W)
File "siir.py", line 87, in siir_hdl
assert len(A) == 3, "Tuple of denominator coefficients length 3"
AssertionError: Tuple of denominator coefficients length 3
Exception TypeError: 'isinstance() arg 2 must be a class, type, or tuple of classes and   types' in 
<generator object _LabelGenerator at 0x023ADD00> ignored

有人能告诉我我做错了什么吗?Python2.7应该可以吗?将其作为文件和python交互命令行进行了尝试。你知道吗


Tags: ofinpyselflinecallfilertl