J
Jack
Guest
I am puzzled by the "event" attribute. I am not the most experienced digital
designer yet, so apologize if my questions seems odd/simple.
If I write the simple VHDL code (not showing entity,
architecture-decleration etc.):
SIGNAL myvector1: std_logic_vector(15 DOWNTO 0);
SIGNAL mystate: std_logic_vector(2 DOWNTO 0);
PROCESS
BEGIN
IF(myvector'EVENT) THEN
mystate <= "001";
END IF;
END PROCESS
What does the "EVENT" attribute actually translate to in hardware? How do
you make an event detector. My problem is that I would like to have a
statemachine that has two states and jumps to either states when an event
occurs on two inputs. I could write the VHDL code but I am not sure how the
event statement is actually implemented in regards to logic...anyone knows
an answer to this question?
Best Regards
Jack
designer yet, so apologize if my questions seems odd/simple.
If I write the simple VHDL code (not showing entity,
architecture-decleration etc.):
SIGNAL myvector1: std_logic_vector(15 DOWNTO 0);
SIGNAL mystate: std_logic_vector(2 DOWNTO 0);
PROCESS
BEGIN
IF(myvector'EVENT) THEN
mystate <= "001";
END IF;
END PROCESS
What does the "EVENT" attribute actually translate to in hardware? How do
you make an event detector. My problem is that I would like to have a
statemachine that has two states and jumps to either states when an event
occurs on two inputs. I could write the VHDL code but I am not sure how the
event statement is actually implemented in regards to logic...anyone knows
an answer to this question?
Best Regards
Jack