Regarding a given port declaration given like this :
ENTITY john_doe IS PORT ( clk : IN STD_LOGIC; reset_n : IN STD_LOGIC; address : OUT STD_LOGIC_VECTOR (31 DOWNTO 0) ; read : OUT STD_LOGIC := '0'; data : IN STD_LOGIC_VECTOR (31 DOWNTO 0); request : IN STD_LOGIC; valid : STD_LOGIC ); END john_doe ; Quartus does not recognize the missing "IN" / "OUT" tag above. How are these signals handeled ? Does Quartus "look" for the component declaration in the top module, where this entity is used?链接已复制
6 回复数
Quartus II assume that the port is by default a IN port.
If you try to assign a value to the signal VALID, Quartus II will then return an error saying "that you try to assign a value to a input port"Ah!.
I love being able to learn something now every day. Thanks for the reply, I am now a little smarter (?). Let's hope that the decay rate of the remaining brain cells is less then the learning rate for todays new awareness. Cheers--- Quote Start --- Quartus follows the VHDL standard, which says that a port declaration without a mode defaults to IN. Josh --- Quote End --- Bingo!:) (and another Bingo, to meet the requiriement of writing at least 10 charaters to be able to post)
