VHDL: BCD to Sevensegment

Guest #6872666
Im a beginner at VHDL (vivado) and I have a task. Could someone explain 
to me why i have an error near signal which says: no viable alternative 
near input 'signal'. There is also an error near SevenSegm which says 
that its a duplicate declaration. Could someon explain to me what i have 
to do to fix this?
TY very much
Attached files:
Moderator (Company: Titel) #6872712
Tobias Hagenaars wrote:
> Could someone explain to me why i have an error near signal which says:
> no viable alternative near input 'signal'.
You always must look at the code just before the reported error also. 
Here the synthesizer does not expect the keyword "signal" in line 27 
after the comma in line 26.

BTW: instead of the unlit segments "1111111" in the lines 20 to 26 you 
could show the hex characters A, b, c, d, E, F on the 7 segment 
displays...
Moderator (Company: Titel) #6873134
Tobias H. wrote:
> but what to do with the duplicate declaration error?
1. Have a look at your code.
2. Use a text search tool and search for "SevenSegm".
3. Keep in mind: VHDL is NOT case sensitive!
4. How often does the text occure?
5. Where does ist occure?

I see at least 2 definitions. One as a port and the second as a signal.

Reply

A question of your own? This thread is over 5 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.