Altera_Forum
Honored Contributor
18 years agoIncrementing a vector
I'm using behavioral vhdl to make a finite state machine and I'm running into a simple problem I think.
This is what my code looks like:PC: OUT STD_LOGIC_VECTOR(15 DOWNTO 0);
<some more code>
BEGIN
PROCESS(clock)
BEGIN
IF Reset = '1' THEN
state<=A;
PC<="0";
<some more code>
WHEN B=>
PC <= PC + 1;
<some more code> It says that interface object "PC" of mode out cannot be read. Change object mode to buffer. What does that mean?