Open nipo opened 3 years ago
And I just noticed nextpnr-ice40 only takes the upper-case version as valid, else it fails with:
ERROR: cell type 'sb_gb' is unsupported (instantiated as 'gb16.gb')
We discussed this in a meeting today, and concluded that a reasonable approach here would be to add a new module attribute that GHDL could use. When this attribute is used, the hierarchy
pass would use case-insensitive comparisons for the referenced module names and ports.
I use ghdl plugin for parsing VHDL code to be synthesized with Yosys to iCE40.
GHDL 2.0.0-dev (1.0.0.r73.g691be6df) Yosys 0.9+4008 (git sha1 396ad17e, gcc 10.2.0-13ubuntu1 -fPIC -Os)
My library contains the following (trivial) adapter entity:
If used in a design, elaboration works, but when mapping to library, process fails with the following error:
If I change architecture in my VHDL code to (i.e. replace both port declaration and mapping to upper-case), it works.
Alternatively, if I change forward declaration to the following (note case change for component name):
it works as well.
There must be some unwanted case-sensitive matching somewhere.
Attached a test case: case-mapping.zip