arkoulikosta
Newbie level 5
Hi, i need help programming a flex10k
I am trying to change the display of a seven segment every time the clock rises.
here is my main code:
My problem is that i have no idea how to put different outputs every time an event happens.
My theory so far is to have a matrix with the values that i want for the 7 segment and rotate them.
Why can this be done in VHDL?
I appreciate any help!
I am trying to change the display of a seven segment every time the clock rises.
here is my main code:
Code VHDL - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 LIBRARY ieee; USE ieee.std_logic_1164.all; ENTITY roll IS PORT (Clock :IN STD_LOGIC; out7seg :OUT STD_LOGIC_VECTOR (6 DOWNTO 0)); END roll; ARCHITECTURE Behavior OF roll IS BEGIN PROCESS(Clock) BEGIN IF Clock'EVENT AND Clock='1' THEN out7seg<= END IF; END PROCESS; END Behavior;
My problem is that i have no idea how to put different outputs every time an event happens.
My theory so far is to have a matrix with the values that i want for the 7 segment and rotate them.
Why can this be done in VHDL?
I appreciate any help!
Last edited by a moderator: