Cannot generate HDL for a map with disabled alignment
Generating cheby HDL for a map with an attribute align=false causes an error:
$ cheby -i white_rabbit.cheby
Traceback (most recent call last):
File "/acc/local/share/ht_tools/noarch/cheby/cheby-latest/bin/cheby", line 11, in <module>
load_entry_point('cheby==1.4.dev0', 'console_scripts', 'cheby')()
File "/acc/local/share/ht_tools/noarch/cheby/cheby-latest/lib/python3.6/site-packages/cheby-1.4.dev0-py3.6.egg/cheby/main.py", line 286, in main
File "/acc/local/share/ht_tools/noarch/cheby/cheby-latest/lib/python3.6/site-packages/cheby-1.4.dev0-py3.6.egg/cheby/main.py", line 149, in handle_file
File "/acc/local/share/ht_tools/noarch/cheby/cheby-latest/lib/python3.6/site-packages/cheby-1.4.dev0-py3.6.egg/cheby/layout.py", line 699, in layout_cheby
File "/acc/local/share/ht_tools/noarch/cheby/cheby-latest/lib/python3.6/site-packages/cheby-1.4.dev0-py3.6.egg/cheby/layout.py", line 673, in layout_cheby_memmap
File "/acc/local/share/ht_tools/noarch/cheby/cheby-latest/lib/python3.6/site-packages/cheby-1.4.dev0-py3.6.egg/cheby/tree.py", line 225, in visit
File "/acc/local/share/ht_tools/noarch/cheby/cheby-latest/lib/python3.6/site-packages/cheby-1.4.dev0-py3.6.egg/cheby/tree.py", line 25, in visit
File "/acc/local/share/ht_tools/noarch/cheby/cheby-latest/lib/python3.6/site-packages/cheby-1.4.dev0-py3.6.egg/cheby/layout.py", line 550, in layout_root
File "/acc/local/share/ht_tools/noarch/cheby/cheby-latest/lib/python3.6/site-packages/cheby-1.4.dev0-py3.6.egg/cheby/layout.py", line 512, in layout_composite_children
TypeError: '>' not supported between instances of 'NoneType' and 'int'
It is possible that I am using 'align' attribute incorrectly. I am trying to join 3 submaps in the following way:
offset | map |
---|---|
0x0 | wrc.cheby |
0x20700 | wr_streamers_wb.cheby |
0x20800 | wrc_diags_wb.cheby |
With alignment enabled I get an element overlap error between wrc and wr_streamers_wb, even though wrc is smaller than 0x20700. Is there another way to achieve the illustrated layout?
Files illustrating the issue: