1

I tried Chris Felton's myHDL sample code.

I could not get the Simulation module imported functions to compile with the following errors:

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

Could someone kindly advise what I'm doing wrong? Python 2.7 should be ok? Tried it both as a file and the python interactive command line.

Avanz
  • 7,466
  • 23
  • 54
  • Do you have the code that shows how you are using the example code? The example included with the code: flt = SIIR(Fc=9200, Fs=96000, W=(24,0)), last check this still works. – Christopher Felton May 05 '14 at 20:03

0 Answers0