Forum Discussion
James_B
Contributor
4 years agoNurina,
I have posted an example design with the VHDL overloading issue to github here:
https://github.com/saturn77/monitorX
What I did to illustrate the issue:
Nios does the following:
- Writes a value to an output register
- This register is then converted to signed, unsigned, and std_logic_vector type
- The VHDL overloaded "bits" function is then applied to these three signals
- Nios then reads these signals back in along with the original value written
Now what I found was interesting, that the values agree to their types. This is in contrast to my cyclone V design where the values are disagreeing with each other; it seems to be at reset.
However, the fundamental issue remains as to whether Quartus should throw a compiler error to VHDL overloading functions without unique signature, and the project on github does indeed show that Quartus allows these non-unique argument signatures to be compiled.
Thanks,
James