WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2009-Jul-29 02:09:47

ragha
Member
Registered: 2008-Aug-07
Posts: 35

warp_timer migration from 11 to 12

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

 

#2 2009-Jul-29 02:19:17

ragha
Member
Registered: 2008-Aug-07
Posts: 35

Re: warp_timer migration from 11 to 12

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

 

#3 2009-Jul-29 02:30:34

ragha
Member
Registered: 2008-Aug-07
Posts: 35

Re: warp_timer migration from 11 to 12

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

 

#4 2009-Jul-29 10:36:18

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: warp_timer migration from 11 to 12

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

 

#5 2009-Jul-29 10:46:24

ragha
Member
Registered: 2008-Aug-07
Posts: 35

Re: warp_timer migration from 11 to 12

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

 

#6 2009-Jul-29 11:02:11

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: warp_timer migration from 11 to 12

No- the register map is entirely different. You should use the _pause()/_resume() functions or the _clear() function from the new code.

Offline

 

#7 2009-Jul-30 02:19:22

ragha
Member
Registered: 2008-Aug-07
Posts: 35

Re: warp_timer migration from 11 to 12

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

 

#8 2009-Jul-30 09:32:33

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: warp_timer migration from 11 to 12

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

 

#9 2009-Jul-30 09:50:35

ragha
Member
Registered: 2008-Aug-07
Posts: 35

Re: warp_timer migration from 11 to 12

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

 

Board footer