Forum Discussion
Altera_Forum
Honored Contributor
14 years agoThanks for clearing that up for me, but could you explain what you mean by "independent ports". For a specific example, if I have a set of chip select lines which is to be divided into memory segments (e.g. CS1~8 for bank1 data, CS9~16 for bank2 data, CS17~30 reserved for future use, CS31~CS40 bank1 checksum) but some of the lines in between are reserved and therefore no decoding logic shall be implemented. Which of the following is the preferred way (or the recommended way) of declaring output signals for ease of coding:
1) Individual CS lines port ( CS1, CS2, ... CS40 : out std_logic; -- omit CS17~30 ) 2) Single std_logic_vector signal port ( CS : out std_logic_vector (1 to 40); -- exclude CS17~30 from P&R pin assignment ) 3) Multiple std_logic_vector signals port ( CS_B1 : out std_logic_vector (1 to 8); CS_B2 : out std_logic_vector (9 to 16); -- CS_RSV : out std_logic_vector (17 to 30); CS_B1_CHECKSUM : out std_logic_vector (31 to 41); ) Thanks in advance.