matrixofdynamism
Advanced Member level 2
- Joined
- Apr 17, 2011
- Messages
- 593
- Helped
- 24
- Reputation
- 48
- Reaction score
- 23
- Trophy points
- 1,298
- Activity points
- 7,681
When writing a Timer code, the idea is for it to count certain number of clock cycles to be able to count a given time duration. When dealing with timer in C code we can define a header file with a #define for the clock frequency. The code deep down will use to figure out how many clock cycles shall be equal to 10ms for example and this way we can use a 10ms Timer interrupt.
How can we achieve the same effect in VHDL? Is it possible lets in Quartus for the design entity to know what frequency the design shall run at through SDC file, or can we describe it another way such that all entities deep down the hierarchy can use it?
How can we achieve the same effect in VHDL? Is it possible lets in Quartus for the design entity to know what frequency the design shall run at through SDC file, or can we describe it another way such that all entities deep down the hierarchy can use it?