Re: ExtractHierarchyError

Md Badruddoja Majumder <[email protected]> Tue, 28 Jun 2016 22:19:31 +0000 (UTC)
Newsgroups gmane.comp.python.myhdl
Message-ID <[email protected]>
Wesley New <wesley <at> ska.ac.za> writes:

> 
> 
> Yes, Chris and Jan are right.
> 
> If you have the wrong amount of objects being returned you get an 
error saying as as much. 
> 
> I was returning the correct amount of objects, but one was a Signal 
and not a Method.
> 
> 
> Thanks
> 
> Wes
> 
> On Tue, Jul 3, 2012 at 1:30 PM, Jan Decaluwe <jan <at> 
jandecaluwe.com> wrote:
> On 06/30/2012 10:50 PM, Wesley New wrote:
> > I am getting this error when running the toVerilog method:
> >
> > raise ExtractHierarchyError(_error.InconsistentToplevel % 
(top_inst.level, name))
> > myhdl.ExtractHierarchyError: Inconsistent top level 2 for toplevel - 
should be 1
> >
> > Can anyone shed some more light on this error.
> Something strange with the hierarchy definition, as
> Chris F points out you should check whether all
> modules return generators/instances correctly.
> --
> Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com
>      Python as a HDL: http://www.myhdl.org
>      VHDL development, the modern way: http://www.sigasi.com
>      World-class digital design: http://www.easics.com
> 
> ----------------------------------------------------------------------
--------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. 
Discussions
> will include endpoint security, mobile security and the latest in 
malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> myhdl-list mailing listmyhdl-list <at> 
lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/myhdl-
list
> 
> 
> 
> 
> 
> 
> 
> 
> ----------------------------------------------------------------------
--------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. 
Discussions 
> will include endpoint security, mobile security and the latest in 
malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> 
> _______________________________________________
> myhdl-list mailing list
> myhdl-list <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/myhdl-list
> 
Yes, this is due to incorrect return of a function. Sometimes we forget 
to include the return statement at the end of a module, or make spelling 
mistake in the return value. Thats are some possible reasons behind the 
error

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
myhdl-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/myhdl-list