Search code examples
vhdlquartus

VHDL What does this error mean, Net, "Name", which fans out to "*name*", cannot be assigned more than one value


Part of my project is to design a 16bit Multiplier with an arrayMultiplier structure. In this array Multiplier instead of using 1 bit adders, I made a 16bit Adder (which is working, I've done simulations). I'm using it as a component in the multiplier.

Note I have attach my last name to every variable according to the professor, please ignore that

I have to put it into a pastebin cause it's too long for posting. Please ignore the comments that say like +16, FA, -1. This is for me to just follow a diagram for proper indexing.

This is an example diagram https://d2vlcm61l7u1fs.cloudfront.net/media%2F27b%2F27b41d2f-aa6c-4a81-bdc0-16ff1c681fc7%2FphpQ0V3VI.png

**REDACTED ** Third is the error itself

Code Redacted

https://pastebin.com/tZ6ptLYp

I'm not sure what the error is saying so I can't solve the issue. Been working on this for hours so maybe I'm just tired and am not seeing it. Thanks


Solution

  • The problem is that you bind multiple wires to the same output wire.

    For example :

    Line 57 : ... Arena_16bitOUT_Cout_fa => Arena_Cout_vec(0) ...
    Line 61 : ... Arena_16bitOUT_Cout_fa => Arena_Cout_vec(0));
    

    I guess it is just copy/paste errors. I did not read all the logic but if it is not the case, you will need some multiplexing logic.