[myhdl-list] shadowing error
Brought to you by:
jandecaluwe
|
From: George P. <ge...@ga...> - 2005-11-21 10:55:51
|
Hi Jan,
I had a module Foo, where I accidentally re-created the signal in_a even
though it was already there as an input. As a result, it used the
"local" in_a which was fixed to 0, and this resulted in incorrect
simulation results. I spent a lot of time debugging before I found my
stupid mistake. It would be nice if myHDL gave an error in this situation.
def Foo(clk, in_a):
in_a = Signal(bool(0)) # should not be here!
INST_0 = Bar(clk, in_a, ... )
return INST_0
Thanks,
George
|