Thread: [myhdl-list] ExtractHierarchyError
Brought to you by:
jandecaluwe
From: Wesley N. <we...@sk...> - 2012-06-30 20:50:25
|
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. Thanks Wes |
From: Christopher F. <chr...@gm...> - 2012-07-01 01:50:17
|
On 6/30/12 3: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. > > Thanks > > Wes I haven't run across this particular error before. My guess is either, some how, to functions were sent for the top-level (??) or not all the generators were returned. Regards, Chris |
From: Jan D. <ja...@ja...> - 2012-07-03 11:31:19
|
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 |
From: Wesley N. <we...@sk...> - 2012-07-03 12:30:28
|
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 <ja...@ja...> 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 list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > |
From: Md B. M. <mma...@vo...> - 2016-06-28 22:25:16
|
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 |