Display array data according to clock pulse

Status
Not open for further replies.

k_cheng_aun2000

Newbie level 4
Joined
Jul 9, 2004
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
34
i have a question on how to display an array data one by one according to the clock, which means one clock one data. Thanks
 

Don't quite understand what do you mean by display, if you wish to output an array at once, maybe you can try this:

assuming you have an output pin:
display_array : OUT std_logic_vector(your array size)

then declare a signal:
SIGNAL array_count : INTEGER

PROCESS(clk)
BEGIN
IF clk'EVENT AND clk = '1' THEN
display_array <= your_arrayname(array_count);
array_count <= array_count + 1;
END IF;

END PROCESS;


Just an attempt, pls correct me if I'm wrong.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…