Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

7segment decoder

Hi,

I am trying to implement a 7segment decoder, but I get an error as Error (10568): VHDL error at Lab5.vhd(54): can't write to interface object "a" of mode IN

Inside Architecture :

process(a)

begin

a<=1;

output <= integer2SevenSegment(a);

end process;

I declared the a as an integer of input and output as a signal of vector size 8

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    "a" cannot be an input and an output. Inputs and outputs have to be separate

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    but if I want to initialize the value of a in a range between 0 and 15 and put it into my function that I defined in a package library? What can I do in this case, then it is both an input and output