Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to VHDL

Status
Not open for further replies.

ditt0

Technical User
Dec 3, 2008
1
MY
Hi all,

I'm very new to VHDL n i need some help here.

1) the program sounds like this

package abc is
subtype counter_type is interger range 0 to ((2**13)-1);
constant clock_cycle : counter_type :=8000;

this first lines means my value will go from 0 to 8191, but why the second line means the clock cycle is 8 sec?? i don't understand that.

2) what does

architecture example of abc is
begin
main : process
variable counter : counter_type :=0;
begin
............................. means??

3) how can i implement a wait statement with the following situation.
the traffic light of the main street has to stop when the clock cycle elapsed and there is car on the sideway or there is pedestrian request to cross the road..

THANK YOU SO MUCH!!

Regards,
VHDL noob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top