Jul 9, 2004 #1 K 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
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
Jul 9, 2004 #2 A aeneas81 Junior Member level 1 Joined Jun 14, 2004 Messages 19 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 198 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.
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.