You are not logged in.
Hi Rice,
Currently i am using OFDMXX_12.1 and i was modifying a timer module which was based on OFDMXX_11.0 to fit to the OFDMXX_12.1.
In the process i came across 2 functions which were similar and i would want to know whether my understanding about them relation is right.
reference design function parameters
OFDMXX_11.0 warp_timer_setVal (timer, time*TIMERCLK_CYCLES_PER_USEC)
OFDMXX_12.1 warp_timer_setTimer (timer, 0, time*TIMERCLK_CYCLES_PER_USEC)
if i call the above functions in the way i have represented does it mean that i am using the functions in the same way or is there any other function in OFDMXX_12.1 that will replace the warp_timer_setVal (x,y) function in OFDMXX_11.0.
please help me out
thanks,
Ragha
Offline
Hi again,
warp_timer_stop which was in OFDMXX_11.0 is removed from OFDMXX_12.1 how can i replace it in OFDMXX_12.1?
-Ragha
Offline
Hi again,
warp_timer_timeLeft which was in OFDMXX_11.0 is removed from OFDMXX_12.1 how can i replace it in OFDMXX_12.1?
-Ragha
Offline
We redesigned the warp_timer core for reference design v12.1. The updated core has 8 separate timers (instead of 4) and a more compact register map. The timer control functions changed in v12.1 to support the new core. None are missing; they're just less redundant.
Offline
Hi Murpho,
Thank you for replying.
Does it mean that i can copy the function definition (of warp_timer_stop() ) directly from warpphy.c of OFDM_11.0 to warpphy.c of OFDM_12.1 and call warp_timer_stop() from let us say csmamac.c of OFDM_12.1 ? without changing anything .
-Ragha
Offline
No- the register map is entirely different. You should use the _pause()/_resume() functions or the _clear() function from the new code.
Offline
Hi Murpho,
Thanks for the suggestion so now i can replace
OFDMXX_11.0 OFDMXX_12.1
use warp_timer_setVal for warp_timer_setTimer(timer, time*TIMERCLK_CYCLES_PER_USEC)
use warp_timer_stop() for warp_timer_pause() / warp_timer_clear()
use warp_timer_timeLeft() for ???
warp_timer_timeLeft() is very important for me can you suggest which function i should use in OFDMXX_12.1
thanks,
Ragha
Offline
The re-designed warp_timer core doesn't have registers capturing the value of the timer counters (we had never used them, and were trying to save space). You could add these easily in the warp_timer.mdl (just a To Register block connected to the counter output for each timer). Otherwise you can revert the hardware to the previous version, and use the old function calls.
Offline
Hi Murpho,
I thought i could get away from my TIMER problems without touching the warp_timer.mdl :) but i guess it is now inevitable then. Thank you very much for the suggestion. I will change the .mdl file and customize the TIMER functionality.
regards,
Ragha
Offline