![]() |
IET | ![]() |
|
search :
help :
home
|
||
|
Latest News:
|
|
|


|
Topic Title: VHDL couter 3bit xlinx ISE 11.1 Topic Summary: Created On: 15 February 2010 01:00 AM Status: Post and Reply |
Linear : Threading : Single : Branch |
Search Topic |
Topic Tools
|
|
|
|
|
Hello
I am trying to make a counter 3bit in VHDL some on can help me please ? I have such this code process (C, CLR) begin if (CLR='1') then tmp = "0000"; elsif (C'event and C='1') then tmp = tmp + 1; end if; end process; Q = tmp; end archi; But I really do not understand how can i create a variable "tmp", also what means "event" Tk so much cheers Antonio |
|
|
|
|
|
|
|
|
Hi Antonio,
"elsif (C'event and C='1') then" event is a VHDL reserved word and in this instance is describing the rising edge of a clock. i.e has been an 'event' on C and it is also now equal to '1'. Personally, these days I use elsif rising_edge(C) then to describe the clock. |
|
|
|
|
|
IET
» Electronic engineering
»
VHDL couter 3bit xlinx ISE 11.1
|
Topic Tools |
FuseTalk Standard Edition v3.2 - © 1999-2013 FuseTalk Inc. All rights reserved.