siir.py无法运行

时间:2014-04-21 08:05:09

标签: python myhdl

我尝试了Chris Felton的myHDL sample code

我无法使用以下错误编译Simulation模块导入的函数:

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

有人可以建议我做错了什么吗? Python 2.7应该可以吗?尝试将它作为文件和python交互命令行。

0 个答案:

没有答案