Forum Discussion
Altera_Forum
Honored Contributor
15 years ago7segment decoder
This is my code for a 7segment decoder, but I get an error! package sevenDecoderLib is type sevenSegment is array(7 downto 1) of bit; variable segment: sevenSegment; function ...
Altera_Forum
Honored Contributor
15 years agoOkay it made sense,
but I still have this syntax error: Error (10511): VHDL Qualified Expression error at Lab5.vhd(51): integer2SevenSegment type specified in Qualified Expression must match std_logic_vector type that is implied for expression by context as the output would be a signal should I then change my function to sth like this: function integer2SevenSegment(i: in integer range 0 to 15) return sevenSegment is variable segment: sevensegment; begin case i is when 0=> segment <= "1111100";