"UUU" output in ModelSim on a specific output
- 5 years ago
Hello Pablovick
First: Your topic is related to VHDL Basics and simulation - not specific for this part of this community!
Please take a closer look to basic documents for VHDL (instances, connecting blocks together, building hierarchical designs ...) and how to control the final performace in silicon at the beginning of every HDL design.
Here a quick-and-dirty-answer:
The signal
ri
is not connected. A function how to build up the "ri" signal is missing also. So, "ri" is always undefined in all cases.
The output of your multiplier is "r" NOT "ri".
The interfacing to generate the final output stage is wrong. You use a simple multiplexer to switch between the two outputs of "alu" and "multpl." which are running in parallel. This is generally not wrong - but you must know HOW TO before doing such things.
Try to rename the output of the multplier from "r" to "ri" and delete the "signal ri ..." line...It should help (if the multplier was tested before and is functional as intended) to give other results before/while/after simulation to you and to step further like try-and-error.
Btw: You run into other problems later because of different bus widths of "a" and "b" and missing registering of in-/outputs.
However, care must be taken to choice the right libraries for the simulation AND target system without produce different - unintended and probably hidden - results.
Good luck,
Regards