Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Regular Visitor
juansiahaan
Posts: 44
Registered: ‎04-16-2012
0

How to decide numbers for counting..

Hi everyone,

 

Suppose I'm trying to set my whole signals into 0s after 276 us...how do I declare that variable in my process? I put some numbers like 28, 276, and bigger numbers and simulated them but it seemed that the signals were still not all 0s...does this have to do with timing?

 

Regards,

 

Juan

Xilinx Employee
chrisar
Posts: 383
Registered: ‎08-01-2007
0

Re: How to decide numbers for counting..

Counters count with each clock cylce.  To understand how long it takes for a counter to read a particular time you need to know the frequency of the clock.  This can be set in the System Generator token.

 

i.e.

If the clock is 100MHz, then the period of the clock is 10ns.  That means in order to get 1 us you will need a counter that counts to 1000.

Chris
Regular Visitor
juansiahaan
Posts: 44
Registered: ‎04-16-2012
0

Re: How to decide numbers for counting..

Hi Chris,

 

Thanks for your explanation...it really helps..