Forum Discussion
Altera_Forum
Honored Contributor
16 years ago[VHDL] Problem with signal type "std_logic_vector(0 downto 0)"
Hello, I use IP module, where data bus width is set to '1'. In VHDL code it is declared as type "std_logic_vector(0 downto 0)", but for compiler this is not the same as "std_logic", type of sig...
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- It's working. I tried data(0 downto 0) and it failed, but data(0) is ok. Thanks! --- Quote End --- That is because data(0 downto 0) returns a std_logic_vector of length 1. data(0) returns a std_logic VHDL is strongly typed so it wont let you connect incorrect types without converting them properly.