[myhdl-list] difficulty using itertools with MyHDL
Brought to you by:
jandecaluwe
From: George P. <ge...@ga...> - 2006-10-20 03:03:05
|
Hi Jan, I'm having difficulty using itertools objects in MyHDL simulations. It seems this is the case because, from some crazy reason, the Python itertools objects are *not* of type GeneratorType! In fact, it looks like each one is its own type! (eg itertools.izip, itertools.chain). This causes myhdl._Simulation._checkArgs to raise an "Inappropriate Argument Type" SimulationError. I'd really like to be able to use itertools.izip() and itertools.chain() at least. What could be done about the situation? Is there anyway to "coerce" the iterools into GeneratorTypes? Thanks, George |