Altera_Forum
Honored Contributor
18 years agoData type used in VHDL
Hi,
I am newbie to VHDL design. I came across a question of using VHDL. I'd like to output a 17 bit data through one port (one pin in an Altera chip) to my DSP on the the same circuit board. Each bit, either 0 or 1, stands for an error detected in my circuit. Say, if the second bit turns to 1, I will know something is wrong with my temperature sensor.... But, when I set the port as STD_LOGIC_VECTOR (0 To 16), I got the error message that I can not send such data through one pin but 17 pins.... Now, I want to know if I want to send my 17-bit data through one port. What data type should I use? Your help is highly appreciated! :confused: