- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How to decide numbers for counting..
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-17-2012 05:34 AM
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
Re: How to decide numbers for counting..
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-18-2012 08:33 AM
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.
Re: How to decide numbers for counting..
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-18-2012 08:45 AM
Hi Chris,
Thanks for your explanation...it really helps..











