US20090293072A1 - System having plurality of hardware blocks and method of operating the same - Google Patents

System having plurality of hardware blocks and method of operating the same Download PDF

Info

Publication number
US20090293072A1
US20090293072A1 US12/307,648 US30764807A US2009293072A1 US 20090293072 A1 US20090293072 A1 US 20090293072A1 US 30764807 A US30764807 A US 30764807A US 2009293072 A1 US2009293072 A1 US 2009293072A1
Authority
US
United States
Prior art keywords
hardware
power
counter
hardware devices
tasks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US12/307,648
Inventor
Olivier ELSHOCHT
John Hornsby
Joel Grad
Panagiotis Arkoudopoulos
Philip Marivoet
Tom Appermont
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Europe Belgium NV
Original Assignee
Sony Service Center Europe NV
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from GB0614549A external-priority patent/GB0614549D0/en
Priority claimed from GB0614548A external-priority patent/GB0614548D0/en
Priority claimed from GB0614547A external-priority patent/GB0614547D0/en
Application filed by Sony Service Center Europe NV filed Critical Sony Service Center Europe NV
Assigned to SONY SERVICE CENTRE (EUROPE) N.V. BELGIAN BODY CORPORATE reassignment SONY SERVICE CENTRE (EUROPE) N.V. BELGIAN BODY CORPORATE ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: APPERMONT, TOM, HORNSBY, JOHN, ARKOUDOPOULOS, PANAGIOTIS, ELSHOCHT, OLIVIER, GRAD, JOEL, MARIVOET, PHILIP
Publication of US20090293072A1 publication Critical patent/US20090293072A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • G06F9/4887Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues involving deadlines, e.g. rate based, periodic
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3228Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3237Power saving characterised by the action undertaken by disabling clock generation or distribution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the present invention relates to a system having a plurality of hardware blocks and a method of operating the same, in particular where power consumption is of concern, for instance in the demodulator of a digital television receiver.
  • the present application is based on a recognition that the hardware blocks could be controlled to help save power.
  • a method of operating a system having a plurality of hardware blocks including controlling the power to each hardware block independently according to whether or not the respective block is needed for use.
  • a system having a plurality of hardware blocks, the system being configured to control the power to each hardware block independently according to whether or not the respective hardware block is needed for use.
  • the system includes device drivers for respective hardware blocks and is configured to support a plurality of tasks, each task using one or more hardware blocks by communicating with respective device drivers.
  • a counter is implemented in each respective device driver, the counter being configured to be incremented each time one of the plurality of tasks requests use of the respective hardware block and to be decremented each time one of the plurality of tasks ceases use of the respective hardware block.
  • the counter is implemented as an application programming interface.
  • the counter provides an output to power down the respective hardware block when the counter indicates that there is no outstanding request for use of the respective hardware block.
  • the counter provides an output to power up the respective hardware block when the counter indicates that the use of the respective hardware block is required.
  • the counter has an initial value of zero such that the output enables powering up of the respective hardware block only when the counter has a non-zero value.
  • the system may further include a hardware clock block having a clock input for a clock signal of the system, power inputs for receiving respective outputs of said counters, clock outputs for respective hardware blocks and a plurality of respective logic gates.
  • Each respective logic gate is connected to the clock input, a respective power input and a respective clock output and is configured to provide selectively the clock signal to the respective clock output according to the power input.
  • Hardware blocks are powered down by removing from them the system clock signal. In this respect, it will be appreciated that most power consumption arises as a result of clock transitions.
  • the output of the counter can be used easily to control whether or not the system clock signal is provided to the respective hardware block.
  • Hardware blocks can include at least one of a timer, a UART, an SPI, an SDIO, a tuner, a demodulator, a filter and an MPE-FEC.
  • the timer provides an indication of the system time and allows configuring alarms to go off after a pre-determined amount of time.
  • the UART Universal Asynchronous Receiver/Transmitter
  • the SPI Serial Peripheral Interface
  • the SPI is a standard synchronous communication data link, used to inter-connect devices such as integrated circuits, used in the DVB-H receiver to communication with and be controlled by a host application processor (i.e. receiver commands and send responses including command results).
  • the SDIO Secure Digital Input/Output
  • the tuner is an analog integrated circuit used to extract and isolate a specific radio frequency channel in the frequency spectrum and convert it down to base band (i.e. bring the carrier frequency to 0 Hz).
  • the demodulator is a digital integrated circuit used to demodulate a DVB-H signal.
  • the filter is a digital integrated circuit used to extract specific packets of data, identified among other things by their packet ID (PID) and table id, as a subset of and from an MPEG-2 transport stream.
  • the MPE-FEC Multi-Protocol Encapsulation—Forward Error Correction
  • MPE-FEC Multi-Protocol Encapsulation—Forward Error Correction
  • FEC is a method that includes encapsulating extra codes in the MPEG-2 transport stream, at the transmitter side, and using these codes at the receiver side to detect and correct transmission errors in the MPE data.
  • the system may be provided as a demodulator, for instance, as an interchangeable module such as an integrated circuit.
  • the system may be provided in a digital television receiver, for instance as a demodulator within that receiver.
  • the demodulator and/or receiver conforms to the DVB-H standards.
  • the present invention also provides a computer program for conducting the process as described.
  • a computer program such as an application program interface may be provided for use in a device driver as described.
  • FIG. 1 illustrates an example of a device in which the present invention may be embodied
  • FIG. 2 illustrates schematically a system embodying the present invention
  • FIG. 3 provides an alternative schematic illustration of an embodiment of the present application
  • FIG. 4 illustrates a reset process for the arrangement of FIG. 3 ;
  • FIG. 5 illustrates an abort process for the arrangement of FIG. 3 ;
  • FIG. 6 illustrates schematically an example of tasks, services and device drivers operated in the arrangement of FIG. 3 ;
  • FIG. 7 illustrates schematically a device driver
  • FIG. 8 illustrates schematically power control of hardware devices
  • FIG. 9 illustrates various power up and down states
  • FIG. 10 illustrates the arrangement of FIG. 6 with additional time slicer tasks
  • FIG. 11 illustrates relative priority of various tasks.
  • the present invention is intended for use in a mobile television receiver ( 2 ), for instance a mobile telephone device ( 2 ) as illustrated in FIG. 1 .
  • a mobile television receiver may function according to the DVB-H (Digital Video Broadcast-Handheld) standards used in Europe.
  • DVB-H Digital Video Broadcast-Handheld
  • the illustrated receiver ( 2 ) includes a display ( 4 ) for displaying received television program images and a user interface ( 6 ), for instance including a plurality of keys ( 8 ), allowing a user to operate or control the receiver ( 2 ). Audio reproduction of the audio part of a received television program may be provided to the user for instance by means of a pair of headphones ( 10 ).
  • FIG. 2 illustrates schematically parts of the receiver ( 2 ) used in receiving digital television signals.
  • the receiver ( 2 ) includes its own application processor or host ( 12 ) which can be used to operate television functions of the receiver ( 2 ) as well as other functions, such as telephone operations where the receiver ( 2 ) is operable also as a telephone.
  • the application processor ( 12 ) can include a variety of middleware ( 14 ) and associated memories for storing such middleware.
  • the receiver ( 2 ) includes a module ( 16 ) specifically configured to handle the television functions.
  • the module ( 16 ) could be made and sold separately and provided for use in a number of different receivers.
  • the module ( 16 ) is configured to output video data for display on the display ( 4 ) and audio data for reproduction by the headphones ( 10 ).
  • Control of the module ( 16 ), for instance changing television channels, can be achieved by means of the application processor ( 12 ) under the control of the user interface ( 6 ).
  • An aerial ( 18 ) is provided for receiving a number of television signals modulated on a variety of radio frequency carriers.
  • a tuner ( 20 ) is configured to tune to a particular carrier frequency and provide the received modulated signal to a demodulator ( 22 ).
  • the demodulator ( 22 ) includes a number of hardware units ( 24 ) (in addition to the tuner ( 20 )) such as demodulator and filter blocks. These are operated under the control of firmware ( 26 ) previously downloaded from the application processor ( 12 ) so as to provide full operation of the module ( 16 ) and output of audio/video signals as required.
  • FIG. 3 provides an alternative schematic illustration of the structure of the module ( 16 ).
  • a bus ( 28 ) allows communication between the various components of the module ( 16 ).
  • the tuner ( 20 ) and other hardware blocks ( 24 ) are connected for communication with a processor ( 30 ).
  • a serial peripheral interface ( 32 ) is provided for communication with the application processor ( 12 ) of the receiver ( 2 ).
  • a ROM ( 34 ) and RAM ( 36 ) are provided.
  • FIG. 4 is a flow diagram illustrating schematically what happens in the arrangement for FIG. 3 during start-up of the module ( 16 ).
  • a reset signal is provided to the module ( 16 ) and to the processor ( 30 ). This causes the processor ( 30 ) to start executing instructions located at address 0x0000 which physically maps to the ROM ( 34 ) which itself contains a boot loader for downloading code from the application processor ( 12 ) of the receiver ( 2 ).
  • the boot loader uses the serial peripheral interface ( 32 ), the boot loader receives from the application processor ( 12 ) and stores in RAM ( 36 ) the boot configuration parameters. For example, these parameters could include the bandwidth of the device (for example 5, 6, 7 or 8 MHz) and the frequency of the receiver source clock.
  • step S 14 the boot loader then downloads, from the application processor ( 12 ), the firmware ( 26 ) and stores this in RAM ( 36 ).
  • the downloaded image as stored in RAM ( 36 ) will include the operating system for the module ( 16 ). For reasons to be discussed, significantly, this process takes an appreciable amount of time, for instance approximately 200 ms.
  • step S 16 the ROM boot loader remaps the memory such that address 0x0000 now physically points to the RAM ( 36 ) instead of the ROM ( 34 ).
  • step S 18 the processor ( 30 ) is made to start executing instructions at address 0x0000 again, which now (as a consequence of step S 16 ) physically maps to the RAM ( 36 ), which itself contains the firmware ( 26 ).
  • step S 20 the firmware stored in the RAM ( 36 ) causes the processor ( 30 ) to start the operating system as also stored in RAM ( 36 ).
  • step S 22 the firmware ( 26 ) retrieves the configuration parameter values as stored in step S 12 . These are preferably stored at a predetermined or fixed place in RAM ( 36 ). The values are then put in memory according to requirements such that, in step S 24 , the hardware blocks, including the tuner and filters etc. can be initialized. In particular, the firmware uses the configuration parameters in initializing the hardware.
  • step S 26 appropriate threads (to be discussed further below) for carrying out various tasks are created.
  • module ( 16 ) still awaits commands from the application processor ( 12 ) with regard to tuning or creating filters for appropriate television programmes etc.
  • the present application contemplates for the first time the use of an abort command which, rather than operate the entire reset process of FIG. 4 causes the module ( 16 ) to stop any and all current operations and release all resources without requiring the processor ( 30 ) to stop individually every single operation.
  • the firmware ( 26 ) controlling the processor ( 30 ) does not individually stop operations and release resources, but merely re-initializes the operating system kernel.
  • FIG. 5 is a flow diagram illustrating schematically what happens upon receiving the abort command.
  • step S 30 the abort command is sent from the application processor ( 12 ) to the module ( 16 ).
  • step (S 32 ) the firmware kills all threads, timers and events, as well as mutexes by which simultaneous operation by two threads is prevented. In this way, all processes being carried out by the module ( 16 ) stop what they are doing and all operating system memory structures are cleared.
  • a section of memory includes data of the operating system for active threads such that the operating system is aware of those active threads.
  • the firmware kills all threads it is not necessary to delete all stored threads, but only to clear the memory block used by the operating system to store the list of active threads. As a result, the operating system does not see any of the threads which were in existence. Significantly, this process is almost instantaneous.
  • step S 34 the firmware starts the operating system again. In other words, it re-initializes the bootstrap function and carries out a process similar to S 20 of FIG. 4 .
  • step S 22 it is not then necessary to conduct the step S 22 , because it is not necessary to re-store the configuration parameters; these will already be correctly stored in memory. At this point it is worth noting that, if it is required to use different configuration parameters, for instance to use a different bandwidth, then a full reset process would be required.
  • step S 36 of the abort process is more simple.
  • hardware relating to communication in particular the serial peripheral interface ( 32 ) is not re-initialized.
  • the serial peripheral interface ( 32 ) since the serial peripheral interface ( 32 ) handles communication with the application processor ( 12 ) regarding the abort process, the serial peripheral interface ( 32 ) is not re-initialized.
  • the processing state is kept in memory and restored to the serial peripheral interface ( 32 ) after initialization, then it would be possible to carry out a full hardware re-initialization similar to step S 24 of the reset process.
  • step S 38 the appropriate threads are created in the same manner as in step S 26 of the reset process.
  • step S 40 the firmware sends an abort response to the application processor ( 12 ) by means of the serial peripheral interface ( 32 ) so as to confirm to the application processor ( 12 ) that the abort process has completed.
  • the module configuration (as done in step S 22 ), the VIC (Vectored Interrupt Controller).
  • Some other blocks are only partially re-initialized: the demodulator, the SPI and SDIO controller (used for host protocol communication), and the DMA (Direct Memory Access) controller.
  • the module ( 16 ) may be provided as a demodulator chip, such as a DVB-H demodulator chip. Embedded firmware may be provided for the DVB-H demodulator chip.
  • the general approach applies to any software system, embedded or not, that performs a single basic operation, in particular where the system state after aborting or stopping the current operation is equivalent to the initial state after power-up.
  • the receiver ( 16 ) implements a communication protocol that enables a host application processor ( 12 ) to control it.
  • This protocol consists of commands to configure and initiate the main functions of the receiver ( 16 ), for instance scan the frequency spectrum to find DVB-H signals, tune on a specific frequency and set up SI and MPE filters and receive payload data.
  • the protocol also contains commands to stop operations such as stop an ongoing frequency spectrum scan and stop and release (clear) SI and MPE filters.
  • the receiver ( 2 ) however implements a communication protocol which is novel by 1) defining an additional #ABORT command that causes the receiver to stop any and all current operations and release all resources without requiring the host application processor to individually stop every single operation and 2) providing the embedded firmware implementation of the #ABORT command itself which does not individually stop operations and release resources, but, instead, re-initializes the operating system kernel.
  • the #ABORT command provides a quick and simple way for the host application processor ( 12 ) to return the receiver ( 16 ) to a clean state, e.g. in preparation for tuning to a different frequency or creating a different set of SI and MPE filters. Also, not having to iterate through all operations to stop, and all resources to release, reduces the amount of code and makes the embedded firmware smaller, therefore saving on embedded memory.
  • the receiver software (previously described as firmware) implementation operates on the embedded real-time kernel operating system ThreadX from Express Logic, Inc. In the initialization process of a ThreadX system one can distinguish a number of steps:
  • the system is in a known state X where it can start receiving commands from the host.
  • step 3.c. the implementation of software modules should take into account that global and static variables are initialized only in step 2 of the initialization process. If any global or static variable is expected to be re-initialized on #ABORT, it should be done explicitly in the initialization method of the particular module.
  • FIG. 6 illustrates schematically an example of the software side of digital television reception such as operated in a module such as module ( 16 ) discussed above.
  • each service can make use of one or more device drivers ( 44 ) corresponding to respective devices or hardware blocks ( 20 , 24 ).
  • the present application considers for the first time issues of power consumption of the various devices or hardware blocks ( 20 , 24 ). These devices or hardware blocks ( 20 , 24 ) consume power when turned on and the present application recognises the advantages, particularly for battery powered devices, to turn off the devices or hardware blocks ( 20 , 24 ) when they are not being used.
  • a digital television receiver it is quite usual for a digital television receiver to receive and process blocks of data in bursts. Hence, at different times during reception and processing of those burst, various hardware blocks or devices will or will not be in use.
  • the present application proposes the use of a power management application programming interface (API) ( 46 ) for each driver ( 44 ). This is illustrated schematically in FIG. 7 .
  • API application programming interface
  • the power management API includes a counter which is incremented each time a service ( 42 ) requests use of the corresponding device or hardware block ( 20 , 24 ) and is decremented each time use of that device or hardware block ( 20 , 24 ) is released.
  • the power management API ( 46 ) provides a power signal ( 48 ) for the respective device or hardware block ( 20 , 24 ). Responsive to this power signal ( 48 ), the respective device or hardware block ( 20 , 24 ) can be powered up or down.
  • the power signal ( 48 ) could be used in a number of different ways to control the power of respective devices or hardware blocks ( 20 , 24 ).
  • FIG. 8 illustrates schematically an arrangement where the power signal ( 48 ) is used in conjunction with the main clock signal ( 50 ) and a clock block ( 52 ).
  • the clock signal ( 50 ) is provided to the hardware blocks ( 20 , 24 ) by means of a clock block ( 52 ).
  • This may be embodied as a hardware block including a plurality of gates ( 54 ) corresponding respectively to hardware blocks ( 20 , 24 ). Each gate is enabled or not according to the respective power signal ( 48 ). In this way the power management API ( 46 ) of a driver ( 44 ) controls whether or not the clock signal ( 50 ) is supplied to the respective hardware block ( 20 , 24 ).
  • Either “or” or “and” gates can be used. With an “and” gate, setting the power signal ( 48 ) to “one” powers up the hardware; setting it to “zero” powers it down. With an “or” gate, setting the power signal ( 48 ) to “one” maintains the block clock at “one” thus freezing the clock and therefore powering down the block; setting the power signal ( 48 ) to “zero” makes the block clock equivalent to the system clock, thus powering up the block.
  • the hardware uses “or” gates and thus the power signal must be inverted (one means off, zero means on).
  • this arrangement can be used in any circuit where there are a plurality of the individual hardware blocks which can be selectively powered up or down. It is particularly useful in a digital television receiver, such as a DVB-H receiver or module, such as module ( 16 ) for use in such a receiver. However, it will have other applications, for instance in a mobile telephone or personal computer.
  • a system and a method of operating a system in particular using reference counting to save power by disabling the clocks of individual hardware blocks that are not needed.
  • the approach applies to any system in which the power state of hardware blocks can be controlled independently, and the hardware blocks are used by multiple software tasks or threads asynchronously.
  • the receiver hardware ( 20 , 24 . 52 ) will allow the power of each block ( 20 , 24 ) to be controlled independently, to save even more power. For example, once a burst has been received and stored in the MPE-FEC memory ( 24 ), the tuner ( 20 ), demodulator ( 24 ) and filter blocks ( 24 ) can be turned off while the burst is being error-corrected and transferred to the host or application processor ( 12 ). Only after this will the MPE-FEC block be turned off. As discussed above, difficulties in the embedded firmware implementation come from the fact that the power state of a single hardware block ( 20 , 24 ) may depend on the activities of multiple tasks ( 40 ).
  • the tuner may be used by the interface handler (or interface handler task ( 40 )) to perform a SCAN command or by the time slicer (or time slicer task ( 40 )) to receive a burst.
  • the MPE-FEC may have to process parallel IP services.
  • each device driver ( 44 ) can independently manage the power state of the hardware block it controls.
  • an example of a synchronous power management API is as follows:
  • a client or service ( 42 ) will call the PowerUp ( ) function to indicate that it requires the power state of the device to be held on POWERED_ON.
  • the driver ( 44 ) will immediately turn on the device ( 20 , 24 ) if it is not already on.
  • the client or service ( 42 ) then calls PowerDown( ) when the hold can be released.
  • the device power state will actually switch to POWERED_OFF only if no other client or service ( 42 ) is holding the power on. This is implemented by the driver ( 44 ) maintaining a power state counter.
  • the state is initialized to 0, incremented every time PowerUp( ) is called and decremented every time PowerDown( ) is called.
  • the device ( 20 , 24 ) is turned off when the counter value is 0.
  • Some services ( 42 ) (Tuning, SI extraction and IP extraction) will implement the same APIs.
  • Each device driver implements the power management API, by the use of which services or tasks can control the power state of the corresponding hardware block.
  • the tuning service knows that the tuner and demodulator blocks must be powered on to perform a tune operation. However, it does not know when these blocks can be powered down, which would be at the end of the reception of the current burst (i.e. time-slice), which only the IP reception tasks knows about.
  • tasks do not access device drivers and their APIs directly, but only through the intermediate services blocks in the service layer.
  • the services can forward power management requests from the tasks to the device drivers. This is achieved by having services implement the same power management API as device drivers.
  • the power management APIs are implemented in a way similar to how it is in the device drivers, i.e. with reference counting. The only difference is that instead of controlling a power signal, services call the PowerUp( ) and PowerDown( ) functions of the underlying device drivers, when the reference count is non-zero or zero respectively.
  • time slicer task illustrated in FIG. 6 can easily be implemented as shown in the following pseudo-code:
  • the present application proposes a new system where the power state of individual hardware blocks ( 20 , 24 ) that are used in combination by multiple software tasks can be controlled independently by disabling their individual clock signal.
  • Reference counting in the lowest software layer (device drivers) ( 44 ) may be used to determine when a hardware block can be powered on or off when 1) there are multiple software tasks sharing the same hardware resources; and 2) the multiple software tasks use the hardware resources (and need them to be powered up) asynchronously.
  • a standard power control reference counting API that can be implemented not only in the driver layer, but also in all the software layers above it, to shield the top layers from having to know which hardware blocks are indirectly used through function call to intermediate layers.
  • system architecture and implementation can be simplified as some global state is not required to be queried or modified by all software components using a specific power controlled hardware block.
  • IP extraction mainly requires the use of three main hardware components, namely, the Tuner/Demodulator block, Transport Filter block and FEC Frame Controller block.
  • the software architecture is composed of tasks on top of services which are on top of drivers.
  • every hardware block ( 20 , 24 ) is controller by a driver ( 44 ).
  • Hardware blocks ( 20 , 24 ) implementing power management functionalities have their PowerUp( ) and PowerDown( ) couple of functions.
  • Each PowerUp( ) function counts the number of times it is called, the first time it is called the hardware block is powered-on and the counter usage is incremented. All subsequent calls to this PowerUp( ) will only increment the usage counter.
  • the PowerDown( ) works the same way except that it decrements its usage counter until it reaches 0, at this point the hardware ( 20 , 24 ) will be really powered-off.
  • the hardware blocks and their power control functions are as follows.
  • the Tuner block is required to be powered-on prior to any other blocks.
  • the Demodulator block is also required to be active before data can be extracted.
  • Tuner and Demodulator blocks are coupled together.
  • the Tuner and Demodulator blocks can have their own PowerUp( ) and PowerDown( ) functions to save power.
  • the Transport Filter clock can be activated or deactivate to save power using the DrvDemux_PowerUp( ) and DrvDemux_PowerDown( ) functions.
  • the FEC Frame Controller clock can be activated or deactivate to save power using the DrvFec_PowerUp( ) and DrvFec_PowerDown( ) functions.
  • the FEC block requires the Transport Filter block to be active to actually receive data, therefore the DrvFec_PowerUp( ) resp. DrvFec_PowerDown( ) functions also internally invoke the DrvDemux_PowerUp( ) resp. DrvDemux_PowerDown( ) functions.
  • the services ( 42 ) can also have the PowerUp( ) and PowerDown( ) functions which are called by the tasks using those services. Generally they are also implemented using a usage counter and a call to a driver power control function.
  • each IP filter extraction running from a task powers up specific resources whenever it needs them and powers them off when they are not needed anymore, the key architecture point here is the fact that each IP or SI filter is treated independently and uses the power control functions of each shared resource.
  • FIG. 9 represents the power counter usage value of the three main drivers and the following shows Pseudo-code for 2 independent services running concurrently with values between parenthesis represents the power usage counter of every driver.
  • the number of tasks are required to be carried out simultaneously or at least in an overlapping manner.
  • Each time slicer task could have in use its own respective set of services (for instance tuning, S/PSI:extraction and IP:extraction services) or more preferably, and as illustrated, share the same set of services.
  • a first co-routine could be constructed with yield points after step A 1 and after step A 2 and, similarly, a co-routine could be constructed with yield points after step B 1 , after step B 2 and after step B 3 .
  • the overall process would proceed in a known manner by, for instance, starting with step A 1 and, at the yield point at the end of step A 1 , checking to see whether the system is ready to carry out step B 1 . If the system is ready, the process moves to step B 1 , otherwise, the process moves on to A 2 .
  • This arrangement provides some degree of flexibility without the memory demands of stacks for each process.
  • the present application proposes for the first time an arrangement in which co-routines are embedded within an individual thread.
  • processes alsowise described here as tasks
  • processes which have the same or similar priority can be arranged as co-routines within a single thread, allowing processes with quite different priorities to have their own individual threads.
  • only a single memory stack is needed for the multiple time slicer tasks.
  • the interface handler or signal locker needs to interrupt the time slicer tasks, this can be done, because they operate with separate threads having respective memory stacks.
  • the tasks to be performed by the software of the preferred embodiment are 1) configuring and controlling the tuner and the demodulator, scheduling time slices and extracting SI/PSI tables and IP services, and communicating with the host application processor ( 12 ).
  • the goal of the architecture is to make it possible to perform all the software tasks while optimizing timing, power consumption and memory usage.
  • tasks such as extracting SI/PSI tables, performing software AGC, or sending debug messages to the UART, are less time-critical than processing MPE-FEC frames and extracting IP services. They could have to be made pre-emptible by the IP service task
  • memory is a critically sparse resource in many devices, such as a DVB-H receiver.
  • no more than 64 kiB of RAM might be available. Therefore, the architecture should aim at minimizing: code size; data size; and stack space.
  • RTOS Real-Time Operating System
  • each RTOS thread requires a separate execution stack, which increases the total memory requirement of the system.
  • a DVB-H receiver ( 2 ) which assigns the software tasks to a combination of 1) RTOS pre-emptible threads, to achieve real-time constraints for tasks ( 40 ) that have them and 2) classical co-operative co-routines for tasks ( 40 ) that do not have relative real-time priorities.
  • Groups of co-routines are run within a single RTOS pre-emptible thread, and therefore share the same execution stack.
  • Multi-tasking is achieved by co-operative scheduling, which means each task (i.e. co-routine) co-operative yields control from time to time to allow other tasks (i.e. co-routine) to execute.
  • co-operative scheduling which means each task (i.e. co-routine) co-operative yields control from time to time to allow other tasks (i.e. co-routine) to execute.
  • the top layer blocks ( 40 ) are called tasks, but can be considered to be threads.
  • the time slicer thread runs several co-routines, each co-routine executing one respective IP reception task.
  • the number of RTOS threads in the system should be kept to a strict minimum.
  • some tasks should run asynchronously and within low timing constraints.
  • FIG. 11 An example of real time task scheduling is shown in FIG. 11 . Although the tasks involved have been mentioned above, a brief summary of each is given below.
  • the time slicer task is a low-priority task which controls the system heartbeat. For every (for example DVB-H) time slice, it 1) requests the Tuning service to wake up the hardware and reacquire the signal lock, 2) waits for SI/PSI or IP events and processes them, 3) requests the Tuning service to shut off the hardware, and 4) sleeps until the next time slice.
  • this thread actually runs several co-routines. Each co-routine performs the task of receiving a single IP service as listed above, allowing other IP services to be processed by using co-operative scheduling.
  • the interface handler is a medium-priority task which handles the host processor commands, which by nature are asynchronous to the stream handling. It manages the receiver state and uses the Tuning service to implement the SCAN and TUNE commands. Because the SPI host interface is a performance bottleneck, this task must have a higher priority than the time slicer task.
  • the signal locker is a high-priority task which responds to the signal lock lost event or any other events that require quick handling. In case of signal lock lost, it initiates the recovery procedure.
  • the idle task is the lowest priority task in the system. It is scheduled only when all the other tasks are sleeping and or pending on an event. Its only function is to set the processor ( 30 ) in a low-power state.
  • FIG. 11 illustrates typical scheduling scenarios and demonstrates how an RTOS helps construct a simple design that meets the low-latency timing and power constraints.
  • Section (a) shows the idle task being scheduled between time slices. The only thing this task does is to put the processor ( 30 ) into a low-power state. The processor ( 30 ) will wake up at the next time slice (timer set up by the time slicer task) or whenever a host command is received (SPI/SDIO interrupt) and to be processed by the interface handler.
  • Section (b) illustrates how the real-time scheduling properties enable serving host commands quickly, even if the time slicer is running. For example, if the host sends a SEND_STAT_DATA command while the time slicer is processing SI tables, basically the only delay before the request is served will be a context switch.
  • Section (c) illustrates multiple levels of pre-emption. It shows how an RTOS helps handling signal lock lost interrupts with virtually no delays.
  • the receiver will support the reception of up to four IP services simultaneously, each IP service having its own value for delta-t and its own power-up periods that may overlap with that of other IP services.
  • co-operative multi-tasking is used. This is could be implemented with state machines, but preferred embodiments use the more elegant, easier to read and easier to maintain co-routines.
  • co-routines allow multiple exit points in a function, while maintaining the execution state, which makes the control flow more explicit than in a switch-based state machine. Indeed a co-routine allow a co-operative task to be implemented in a way that is independent from other tasks.

Abstract

A system having a plurality of hardware blocks and a method of operating that system where power to each hardware block is independently controlled according to whether or not the respective hardware block is needed for use. A counter is provided in the respective device driver of each hardware block, the counter being configured to be incremented each time a task requests use of the respective hardware block and to be decremented each time a task ceases use of the respective hardware block. The value of the counter is used to control whether or not to power up or power down the respective hardware block.

Description

  • The present invention relates to a system having a plurality of hardware blocks and a method of operating the same, in particular where power consumption is of concern, for instance in the demodulator of a digital television receiver.
  • In systems, such as demodulators for digital television receivers, it is known to operate a plurality of hardware blocks. The system may operate a plurality of different tasks which make use of those hardware blocks at different times. Particularly where the system is provided in a battery powered device, for instance in a digital television receiver conforming to the digital broadcast-handheld (DVB-H) standards, power consumption is of great concern.
  • The present application is based on a recognition that the hardware blocks could be controlled to help save power.
  • According to the present invention, there is provided a method of operating a system having a plurality of hardware blocks, the method including controlling the power to each hardware block independently according to whether or not the respective block is needed for use.
  • According to the present invention, there is also provided a system having a plurality of hardware blocks, the system being configured to control the power to each hardware block independently according to whether or not the respective hardware block is needed for use.
  • In this way, only when a particular hardware block is to be used as part of a particular service or task running in the system is that hardware block powered up. At all other times, the hardware block can be powered down, thereby reducing power consumption in the system.
  • Preferably, the system includes device drivers for respective hardware blocks and is configured to support a plurality of tasks, each task using one or more hardware blocks by communicating with respective device drivers.
  • With this arrangement it can be relatively difficult, and hence require significant processing, to determine whether or not a hardware block should be powered up or powered down. Any one of the plurality of tasks, or indeed services being employed by those tasks, might be requiring the use of a particular hardware block at any one time. Just because one particular task ceases to need use of a hardware block does not mean that that hardware block can be powered down, because another task may require use of the same hardware block.
  • Preferably, a counter is implemented in each respective device driver, the counter being configured to be incremented each time one of the plurality of tasks requests use of the respective hardware block and to be decremented each time one of the plurality of tasks ceases use of the respective hardware block.
  • This provides a highly effective and advantageous way of determining whether or not a particular hardware block should be powered up or powered down. For example, where the counter has an initial value of zero, it can easily be determined that the respective hardware block should be powered up whenever the counter is at a non-zero value.
  • Preferably, the counter is implemented as an application programming interface.
  • This provides a straightforward way of implementing what would otherwise be a complex process.
  • Preferably, the counter provides an output to power down the respective hardware block when the counter indicates that there is no outstanding request for use of the respective hardware block. Thus, by implication, similarly, the counter provides an output to power up the respective hardware block when the counter indicates that the use of the respective hardware block is required.
  • Preferably, the counter has an initial value of zero such that the output enables powering up of the respective hardware block only when the counter has a non-zero value.
  • The system may further include a hardware clock block having a clock input for a clock signal of the system, power inputs for receiving respective outputs of said counters, clock outputs for respective hardware blocks and a plurality of respective logic gates. Each respective logic gate is connected to the clock input, a respective power input and a respective clock output and is configured to provide selectively the clock signal to the respective clock output according to the power input.
  • It will be appreciated, therefore, that the hardware blocks are powered down by removing from them the system clock signal. In this respect, it will be appreciated that most power consumption arises as a result of clock transitions. The output of the counter can be used easily to control whether or not the system clock signal is provided to the respective hardware block. Hardware blocks can include at least one of a timer, a UART, an SPI, an SDIO, a tuner, a demodulator, a filter and an MPE-FEC.
  • The timer provides an indication of the system time and allows configuring alarms to go off after a pre-determined amount of time. The UART [Universal Asynchronous Receiver/Transmitter] is a standard serial communication data link, used in the DVB-H receiver to trace logs of activities to e.g. a computer for debugging purposes. The SPI [Serial Peripheral Interface] is a standard synchronous communication data link, used to inter-connect devices such as integrated circuits, used in the DVB-H receiver to communication with and be controlled by a host application processor (i.e. receiver commands and send responses including command results). The SDIO [Secure Digital Input/Output] is a standard for connecting accessory devices to a host application processor, used in the DVB-H receiver as a possible alternative to SPI. The tuner is an analog integrated circuit used to extract and isolate a specific radio frequency channel in the frequency spectrum and convert it down to base band (i.e. bring the carrier frequency to 0 Hz). The demodulator is a digital integrated circuit used to demodulate a DVB-H signal. The filter is a digital integrated circuit used to extract specific packets of data, identified among other things by their packet ID (PID) and table id, as a subset of and from an MPEG-2 transport stream. The MPE-FEC [Multi-Protocol Encapsulation—Forward Error Correction] is standard way of encapsulating any kind of data (e.g. IP packets in the case of DVB-H) within an MPEG-2 transport stream. FEC is a method that includes encapsulating extra codes in the MPEG-2 transport stream, at the transmitter side, and using these codes at the receiver side to detect and correct transmission errors in the MPE data.
  • The system may be provided as a demodulator, for instance, as an interchangeable module such as an integrated circuit. Similarly, the system may be provided in a digital television receiver, for instance as a demodulator within that receiver. Preferably, the demodulator and/or receiver conforms to the DVB-H standards.
  • The present invention also provides a computer program for conducting the process as described. A computer program, such as an application program interface may be provided for use in a device driver as described.
  • The invention will be more clearly understood from the following description, given by way of example only, with reference to the accompanying drawings, in which:
  • FIG. 1 illustrates an example of a device in which the present invention may be embodied;
  • FIG. 2 illustrates schematically a system embodying the present invention;
  • FIG. 3 provides an alternative schematic illustration of an embodiment of the present application;
  • FIG. 4 illustrates a reset process for the arrangement of FIG. 3;
  • FIG. 5 illustrates an abort process for the arrangement of FIG. 3;
  • FIG. 6 illustrates schematically an example of tasks, services and device drivers operated in the arrangement of FIG. 3;
  • FIG. 7 illustrates schematically a device driver;
  • FIG. 8 illustrates schematically power control of hardware devices;
  • FIG. 9 illustrates various power up and down states;
  • FIG. 10 illustrates the arrangement of FIG. 6 with additional time slicer tasks; and
  • FIG. 11 illustrates relative priority of various tasks.
  • The present invention is intended for use in a mobile television receiver (2), for instance a mobile telephone device (2) as illustrated in FIG. 1. Such a mobile television receiver may function according to the DVB-H (Digital Video Broadcast-Handheld) standards used in Europe.
  • The illustrated receiver (2) includes a display (4) for displaying received television program images and a user interface (6), for instance including a plurality of keys (8), allowing a user to operate or control the receiver (2). Audio reproduction of the audio part of a received television program may be provided to the user for instance by means of a pair of headphones (10).
  • FIG. 2 illustrates schematically parts of the receiver (2) used in receiving digital television signals.
  • In the illustrated embodiment, the receiver (2) includes its own application processor or host (12) which can be used to operate television functions of the receiver (2) as well as other functions, such as telephone operations where the receiver (2) is operable also as a telephone. In this respect, the application processor (12) can include a variety of middleware (14) and associated memories for storing such middleware.
  • Also as illustrated, the receiver (2) includes a module (16) specifically configured to handle the television functions. The module (16) could be made and sold separately and provided for use in a number of different receivers. Although not illustrated the module (16) is configured to output video data for display on the display (4) and audio data for reproduction by the headphones (10). Control of the module (16), for instance changing television channels, can be achieved by means of the application processor (12) under the control of the user interface (6).
  • An aerial (18) is provided for receiving a number of television signals modulated on a variety of radio frequency carriers.
  • Within the module (16), a tuner (20) is configured to tune to a particular carrier frequency and provide the received modulated signal to a demodulator (22). The demodulator (22) includes a number of hardware units (24) (in addition to the tuner (20)) such as demodulator and filter blocks. These are operated under the control of firmware (26) previously downloaded from the application processor (12) so as to provide full operation of the module (16) and output of audio/video signals as required.
  • FIG. 3 provides an alternative schematic illustration of the structure of the module (16).
  • A bus (28) allows communication between the various components of the module (16). The tuner (20) and other hardware blocks (24) are connected for communication with a processor (30). A serial peripheral interface (32) is provided for communication with the application processor (12) of the receiver (2). Also, a ROM (34) and RAM (36) are provided.
  • FIG. 4 is a flow diagram illustrating schematically what happens in the arrangement for FIG. 3 during start-up of the module (16). In step S10, a reset signal is provided to the module (16) and to the processor (30). This causes the processor (30) to start executing instructions located at address 0x0000 which physically maps to the ROM (34) which itself contains a boot loader for downloading code from the application processor (12) of the receiver (2). In step S12, using the serial peripheral interface (32), the boot loader receives from the application processor (12) and stores in RAM (36) the boot configuration parameters. For example, these parameters could include the bandwidth of the device (for example 5, 6, 7 or 8 MHz) and the frequency of the receiver source clock.
  • In step S14, the boot loader then downloads, from the application processor (12), the firmware (26) and stores this in RAM (36). The downloaded image as stored in RAM (36) will include the operating system for the module (16). For reasons to be discussed, significantly, this process takes an appreciable amount of time, for instance approximately 200 ms.
  • In step S16, the ROM boot loader remaps the memory such that address 0x0000 now physically points to the RAM (36) instead of the ROM (34). In step S18, the processor (30) is made to start executing instructions at address 0x0000 again, which now (as a consequence of step S16) physically maps to the RAM (36), which itself contains the firmware (26).
  • In step S20, the firmware stored in the RAM (36) causes the processor (30) to start the operating system as also stored in RAM (36).
  • In step S22, the firmware (26) retrieves the configuration parameter values as stored in step S12. These are preferably stored at a predetermined or fixed place in RAM (36). The values are then put in memory according to requirements such that, in step S24, the hardware blocks, including the tuner and filters etc. can be initialized. In particular, the firmware uses the configuration parameters in initializing the hardware.
  • Finally, in step S26, appropriate threads (to be discussed further below) for carrying out various tasks are created. At this time, module (16) still awaits commands from the application processor (12) with regard to tuning or creating filters for appropriate television programmes etc.
  • There will be times during use of the receiver (2) when it is required to re-initialize a large number of the hardware components or blocks (20, 24). For instance, it may be decided to change RF channel, i.e. change carrier. Indeed, where a received signal is lost, the application processor (12) could decide to move to a different carrier, rather than merely wait for reception to be resumed.
  • It is possible to arrange for the processor (30) to release and then restart each hardware block (20, 24) individually. However, the present application recognises for the first time that such a process is complex and time consuming. The present application also contemplates the possibility of reapplying the reset process described with reference to FIG. 4. This is a simple and efficient process. However, it can be time consuming and reference is made to step S14 discussed above and the time taken to download the firmware to RAM (36).
  • The present application contemplates for the first time the use of an abort command which, rather than operate the entire reset process of FIG. 4 causes the module (16) to stop any and all current operations and release all resources without requiring the processor (30) to stop individually every single operation. In this respect, the firmware (26) controlling the processor (30) does not individually stop operations and release resources, but merely re-initializes the operating system kernel.
  • FIG. 5 is a flow diagram illustrating schematically what happens upon receiving the abort command.
  • In step S30, the abort command is sent from the application processor (12) to the module (16).
  • In response, in step (S32), the firmware kills all threads, timers and events, as well as mutexes by which simultaneous operation by two threads is prevented. In this way, all processes being carried out by the module (16) stop what they are doing and all operating system memory structures are cleared. In practice, a section of memory includes data of the operating system for active threads such that the operating system is aware of those active threads. When the firmware kills all threads, it is not necessary to delete all stored threads, but only to clear the memory block used by the operating system to store the list of active threads. As a result, the operating system does not see any of the threads which were in existence. Significantly, this process is almost instantaneous.
  • In step S34, the firmware starts the operating system again. In other words, it re-initializes the bootstrap function and carries out a process similar to S20 of FIG. 4.
  • Compared to FIG. 4, it is not then necessary to conduct the step S22, because it is not necessary to re-store the configuration parameters; these will already be correctly stored in memory. At this point it is worth noting that, if it is required to use different configuration parameters, for instance to use a different bandwidth, then a full reset process would be required.
  • The process then jumps to step S36 where the firmware initializes the hardware. Compared to step S24 of the reset process, step S36 of the abort process is more simple. In particular, hardware relating to communication, in particular the serial peripheral interface (32) is not re-initialized. In the preferred embodiment, since the serial peripheral interface (32) handles communication with the application processor (12) regarding the abort process, the serial peripheral interface (32) is not re-initialized. On the other hand, if the processing state is kept in memory and restored to the serial peripheral interface (32) after initialization, then it would be possible to carry out a full hardware re-initialization similar to step S24 of the reset process.
  • In step S38 the appropriate threads are created in the same manner as in step S26 of the reset process. In addition, in step S40, the firmware sends an abort response to the application processor (12) by means of the serial peripheral interface (32) so as to confirm to the application processor (12) that the abort process has completed.
  • The following are not re-initialized: the module configuration (as done in step S22), the VIC (Vectored Interrupt Controller). Some other blocks are only partially re-initialized: the demodulator, the SPI and SDIO controller (used for host protocol communication), and the DMA (Direct Memory Access) controller.
  • Thus, there may be provided a demodulator device and a method of operating the demodulator device, which, to avoid shutting down by releasing individual resources, bootstraps the operating system kernel to stop the receiver. The module (16) may be provided as a demodulator chip, such as a DVB-H demodulator chip. Embedded firmware may be provided for the DVB-H demodulator chip.
  • The general approach applies to any software system, embedded or not, that performs a single basic operation, in particular where the system state after aborting or stopping the current operation is equivalent to the initial state after power-up.
  • As will be clear from the above, the receiver (16) implements a communication protocol that enables a host application processor (12) to control it. This protocol consists of commands to configure and initiate the main functions of the receiver (16), for instance scan the frequency spectrum to find DVB-H signals, tune on a specific frequency and set up SI and MPE filters and receive payload data. As in any control system, the protocol also contains commands to stop operations such as stop an ongoing frequency spectrum scan and stop and release (clear) SI and MPE filters.
  • The receiver (2) however implements a communication protocol which is novel by 1) defining an additional #ABORT command that causes the receiver to stop any and all current operations and release all resources without requiring the host application processor to individually stop every single operation and 2) providing the embedded firmware implementation of the #ABORT command itself which does not individually stop operations and release resources, but, instead, re-initializes the operating system kernel.
  • The #ABORT command provides a quick and simple way for the host application processor (12) to return the receiver (16) to a clean state, e.g. in preparation for tuning to a different frequency or creating a different set of SI and MPE filters. Also, not having to iterate through all operations to stop, and all resources to release, reduces the amount of code and makes the embedded firmware smaller, therefore saving on embedded memory.
  • In one particular embodiment, the receiver software (previously described as firmware) implementation operates on the embedded real-time kernel operating system ThreadX from Express Logic, Inc. In the initialization process of a ThreadX system one can distinguish a number of steps:
  • Initialization Process:
      • 0. System Reset (interrupts are disabled)
      • 1. Jump to image entry point.
      • 2. Development tool initialization (including initialization of global variables). (This step can be removed in some embodiments.)
      • 3. main( ): Perform preliminary processing (This includes hardware initialization like setting up timers). (This step as the image entry point can be done in assembly such that there is no main( ) function.)
      • 4. Call tx_kernel_enter( ) to start ThreadX.
      • 5. tx_application_define( ) will be called by ThreadX to:
        • a. Create system resources (application threads, mutexes, event flags, timers)
        • b. Do device initialization, and
        • c. Call initialization methods of software modules.
      • 6. Enter thread scheduling loop (interrupts are enabled)
  • After this initialization, the system is in a known state X where it can start receiving commands from the host.
  • On reception of the #ABORT command, the system is forced to the same known state X by re-executing part of the initialization sequence above:
  • Abort Process:
      • 0. Host sends #ABORT.
      • 1. In a timer thread:
        • a. Disable interrupts.
        • b. Trash all OS resources (application threads, mutexes, event flags, timers), by re-initializing the OS resource structures to 0.
        • c. Set PostABORT flag (global variable that can be queried by module implementations to identify initialization following #ABORT).
      • Now, the state matches with the state after initialization step 3.
      • 2. Call tx_kernel_enter( ) tore-start ThreadX.
      • 3. tx_application_define( ) will be called by ThreadX to:
        • a. Re-create system resources (application threads, mutexes, event flags, timers).
        • b. Re-do device initialization,
        • c. Call initialization methods of software modules, and
        • d. Send response on #ABORT to host.
      • 4. Enter thread scheduling loop (interrupts are enabled)
  • As part of step 3.c., the implementation of software modules should take into account that global and static variables are initialized only in step 2 of the initialization process. If any global or static variable is expected to be re-initialized on #ABORT, it should be done explicitly in the initialization method of the particular module.
  • FIG. 6 illustrates schematically an example of the software side of digital television reception such as operated in a module such as module (16) discussed above.
  • In the top layer, a number of functions which are being implemented by the module (16) are illustrated as threads or tasks (40). These threads or tasks each make use of one or more services (42) available in the layer below them. In order to carry out the functions of those services (42) for the tasks (40), services (42) will, in at least some circumstances, require use of the hardware (20, 24) in the module (16). To do this, each service can make use of one or more device drivers (44) corresponding to respective devices or hardware blocks (20, 24).
  • The present application considers for the first time issues of power consumption of the various devices or hardware blocks (20, 24). These devices or hardware blocks (20, 24) consume power when turned on and the present application recognises the advantages, particularly for battery powered devices, to turn off the devices or hardware blocks (20, 24) when they are not being used. By way of example, it is quite usual for a digital television receiver to receive and process blocks of data in bursts. Hence, at different times during reception and processing of those burst, various hardware blocks or devices will or will not be in use.
  • Referring again to FIG. 6, it will be appreciated that, with different tasks and services operating simultaneously, it is possible for devices and device drivers to be required by different tasks and services at the same time. This makes it very difficult to establish at any one time whether or not a particular device or hardware block (20, 24) should be powered up or powered down. In particular, individual tasks will operate independently of one another and, similarly, individual services will operate independently of one another such that normally one task or one service will not know what devices or hardware other tasks or services are using.
  • As a solution to this problem, the present application proposes the use of a power management application programming interface (API) (46) for each driver (44). This is illustrated schematically in FIG. 7.
  • In essence, the power management API includes a counter which is incremented each time a service (42) requests use of the corresponding device or hardware block (20, 24) and is decremented each time use of that device or hardware block (20, 24) is released. Given this arrangement, it will be appreciated that whenever the counter has an incremented or non-zero state, there is an indication that at least one service requires use of the respective device or hardware block (20, 24) such that it should remain powered up. Only when the counter is at zero or non-incremented can the respective device or hardware block (20, 24) be powered down.
  • As illustrated schematically in FIG. 7, the power management API (46) provides a power signal (48) for the respective device or hardware block (20, 24). Responsive to this power signal (48), the respective device or hardware block (20, 24) can be powered up or down.
  • The power signal (48) could be used in a number of different ways to control the power of respective devices or hardware blocks (20, 24).
  • FIG. 8 illustrates schematically an arrangement where the power signal (48) is used in conjunction with the main clock signal (50) and a clock block (52).
  • There are two main sources of power consumption in the devices or hardware blocks (20, 24). Firstly, there is relatively significant power consumption with each transition according to the clock signal. Secondly, there is leakage, irrespective of the clock signal. Although all power to a particular device or hardware block (20, 24) could be turned off, according to the preferred embodiment, for instance as illustrated in FIG. 8, it is sufficient merely to stop the clock for a respective device or hardware block (20, 24) so as to prevent the power losses due to transitions.
  • In the embodiment illustrated in FIG. 8, the clock signal (50) is provided to the hardware blocks (20, 24) by means of a clock block (52). This may be embodied as a hardware block including a plurality of gates (54) corresponding respectively to hardware blocks (20, 24). Each gate is enabled or not according to the respective power signal (48). In this way the power management API (46) of a driver (44) controls whether or not the clock signal (50) is supplied to the respective hardware block (20, 24).
  • Either “or” or “and” gates can be used. With an “and” gate, setting the power signal (48) to “one” powers up the hardware; setting it to “zero” powers it down. With an “or” gate, setting the power signal (48) to “one” maintains the block clock at “one” thus freezing the clock and therefore powering down the block; setting the power signal (48) to “zero” makes the block clock equivalent to the system clock, thus powering up the block. Preferably, the hardware uses “or” gates and thus the power signal must be inverted (one means off, zero means on).
  • It will be appreciated that this arrangement can be used in any circuit where there are a plurality of the individual hardware blocks which can be selectively powered up or down. It is particularly useful in a digital television receiver, such as a DVB-H receiver or module, such as module (16) for use in such a receiver. However, it will have other applications, for instance in a mobile telephone or personal computer.
  • Thus, there may be provided a system and a method of operating a system, in particular using reference counting to save power by disabling the clocks of individual hardware blocks that are not needed. The approach applies to any system in which the power state of hardware blocks can be controlled independently, and the hardware blocks are used by multiple software tasks or threads asynchronously.
  • For power management, rather than have a single main power state (on or off), the receiver hardware (20, 24. 52) will allow the power of each block (20, 24) to be controlled independently, to save even more power. For example, once a burst has been received and stored in the MPE-FEC memory (24), the tuner (20), demodulator (24) and filter blocks (24) can be turned off while the burst is being error-corrected and transferred to the host or application processor (12). Only after this will the MPE-FEC block be turned off. As discussed above, difficulties in the embedded firmware implementation come from the fact that the power state of a single hardware block (20, 24) may depend on the activities of multiple tasks (40). For example, the tuner may be used by the interface handler (or interface handler task (40)) to perform a SCAN command or by the time slicer (or time slicer task (40)) to receive a burst. Or the MPE-FEC may have to process parallel IP services.
  • To simplify the implementation, each device driver (44) can independently manage the power state of the hardware block it controls. In this respect, an example of a synchronous power management API is as follows:
  • Request the device to hold its power Err_t DrvXXX_PowerUp( )
    state on POWERED_ON.
    Release the hold on the power state. Err_t DrvXXX_PowerDown( )
  • A client or service (42) will call the PowerUp ( ) function to indicate that it requires the power state of the device to be held on POWERED_ON. The driver (44) will immediately turn on the device (20, 24) if it is not already on. The client or service (42) then calls PowerDown( ) when the hold can be released. However, the device power state will actually switch to POWERED_OFF only if no other client or service (42) is holding the power on. This is implemented by the driver (44) maintaining a power state counter. The state is initialized to 0, incremented every time PowerUp( ) is called and decremented every time PowerDown( ) is called. The device (20, 24) is turned off when the counter value is 0.
  • Some services (42) (Tuning, SI extraction and IP extraction) will implement the same APIs. Each device driver implements the power management API, by the use of which services or tasks can control the power state of the corresponding hardware block. Only system tasks need have a notion of for example when the tuner and demodulator hardware blocks need to be powered on. For instance, the tuning service knows that the tuner and demodulator blocks must be powered on to perform a tune operation. However, it does not know when these blocks can be powered down, which would be at the end of the reception of the current burst (i.e. time-slice), which only the IP reception tasks knows about.
  • In the preferred firmware architecture, tasks do not access device drivers and their APIs directly, but only through the intermediate services blocks in the service layer. Preferably there should be a way by which the services can forward power management requests from the tasks to the device drivers. This is achieved by having services implement the same power management API as device drivers.
  • In services, the power management APIs are implemented in a way similar to how it is in the device drivers, i.e. with reference counting. The only difference is that instead of controlling a power signal, services call the PowerUp( ) and PowerDown( ) functions of the underlying device drivers, when the reference count is non-zero or zero respectively.
  • By way of example, with the APIs described above, the time slicer task illustrated in FIG. 6 can easily be implemented as shown in the following pseudo-code:
  • Loop forever:
    SrvTune_PowerUp( )
    SrvTune_AcquireSignalLock( ) /* asynchronous */
    SrvSi_PowerUp( )
    SrvIp_PowerUp( )
    SrvIp_ReceiveBurst( ) /* asynchronous */
    SrvTune_PowerDown( )
    SrvSi_PowerDown( )
    SrvIp_ProcessBurst( ) /* asynchronous */
    SrvIp_PowerDown( )
    RTOS sleep until SrvIp_GetNextTimeSlice( ) /* blocking /*
  • The present application proposes a new system where the power state of individual hardware blocks (20, 24) that are used in combination by multiple software tasks can be controlled independently by disabling their individual clock signal. Reference counting in the lowest software layer (device drivers) (44) may be used to determine when a hardware block can be powered on or off when 1) there are multiple software tasks sharing the same hardware resources; and 2) the multiple software tasks use the hardware resources (and need them to be powered up) asynchronously.
  • A standard power control reference counting API that can be implemented not only in the driver layer, but also in all the software layers above it, to shield the top layers from having to know which hardware blocks are indirectly used through function call to intermediate layers.
  • In this way, it is possible to save power in a multi-task multi-threaded system. Also, the system architecture and implementation can be simplified as some global state is not required to be queried or modified by all software components using a specific power controlled hardware block.
  • The following example, based on the embodiment of FIGS. 2 and 6 supposes that IP extraction mainly requires the use of three main hardware components, namely, the Tuner/Demodulator block, Transport Filter block and FEC Frame Controller block. The software architecture is composed of tasks on top of services which are on top of drivers.
  • As discussed above, every hardware block (20, 24) is controller by a driver (44). Hardware blocks (20, 24) implementing power management functionalities have their PowerUp( ) and PowerDown( ) couple of functions. Each PowerUp( ) function counts the number of times it is called, the first time it is called the hardware block is powered-on and the counter usage is incremented. All subsequent calls to this PowerUp( ) will only increment the usage counter. The PowerDown( ) works the same way except that it decrements its usage counter until it reaches 0, at this point the hardware (20, 24) will be really powered-off.
  • For example, the hardware blocks and their power control functions are as follows.
  • The Tuner block is required to be powered-on prior to any other blocks. The Demodulator block is also required to be active before data can be extracted. In this example, to simplify the explanations, it can be assumed that Tuner and Demodulator blocks are coupled together. However, the Tuner and Demodulator blocks can have their own PowerUp( ) and PowerDown( ) functions to save power.
  • The Transport Filter clock can be activated or deactivate to save power using the DrvDemux_PowerUp( ) and DrvDemux_PowerDown( ) functions.
  • The FEC Frame Controller clock can be activated or deactivate to save power using the DrvFec_PowerUp( ) and DrvFec_PowerDown( ) functions. The FEC block requires the Transport Filter block to be active to actually receive data, therefore the DrvFec_PowerUp( ) resp. DrvFec_PowerDown( ) functions also internally invoke the DrvDemux_PowerUp( ) resp. DrvDemux_PowerDown( ) functions.
  • As mentioned above, software functionalities (non hardware specific ones) are implemented in services (42) that make use of drivers (44). The services (42) can also have the PowerUp( ) and PowerDown( ) functions which are called by the tasks using those services. Generally they are also implemented using a usage counter and a call to a driver power control function.
  • For multiple IP extraction working together with SI extraction, fine power control can easily be achieved with such architecture. Each IP filter extraction running from a task powers up specific resources whenever it needs them and powers them off when they are not needed anymore, the key architecture point here is the fact that each IP or SI filter is treated independently and uses the power control functions of each shared resource.
  • The following is an example of Tuner/Demodulator, Demux and FEC Frame Controller power usage in case of two IP filters working at the same time and sharing the hardware resources for some time. FIG. 9 represents the power counter usage value of the three main drivers and the following shows Pseudo-code for 2 independent services running concurrently with values between parenthesis represents the power usage counter of every driver.
  • IP0 IP1
    SrvIp_GetNextTimeSlice SrvIp_GetNextTimeSlice
    −> Sleep DeltaT_0 msec −> Sleep DeltaT_1 msec
    SrvTuning_PowerUp SrvTuning_PowerUp
    −> DrvTuner_PowerUp (0 −> 1) −> DrvTuner_PowerUp (1 −> 2)
    SrvTuning_Tune SrvTuning_Tune
    SrvIp_PowerUp SrvIp_PowerUp
    −> DrvFec_PowerUp (0 −> 1) −> DrvFec_PowerUp (1 −> 2)
    −> DrvDemux_PowerUp (0 −> 1) −> DrvDemux_PowerUp (2 −> 3)
    SrvSi_PowerUp SrvSi_PowerUp
    −> DrvDemux_PowerUp (1 −> 2) −> DrvDemux_PowerUp (3 −> 4)
    SrvIp_ReceiveBurst SrvIp_ReceiveBurst
    SrvTuning_PowerDown SrvTuning_PowerDown
    −> DrvTuner_PowerDown (2 −> 1) −> DrvTuner_PowerDown (1 −> 0)
    SrvSi_PowerDown SrvSi_PowerDown
    −> DrvDemux_PowerDown (4 −> 3) −> DrvDemux_PowerDown (2 −> 1)
    SrvIp_PowerDown SrvIp_PowerDown
    −> DrvDemux_PowerDown (3 −> 2) −> DrvDemux_PowerDown (1 −> 0)
    −> DrvFec_PowerDown (2 −> 1) −> DrvFec_PowerDown (1 −> 0)
    SrvIp_ProcessBurst SrvIp_ProcessBurst
  • As will be discussed for a particular embodiment below, in devices such as module (16) of FIG. 2, the number of tasks are required to be carried out simultaneously or at least in an overlapping manner. For instance, following on from FIG. 6, as illustrated in FIG. 10, there may be multiple time slicer tasks each operating a respective IP (internet protocol) reception process. Each time slicer task could have in use its own respective set of services (for instance tuning, S/PSI:extraction and IP:extraction services) or more preferably, and as illustrated, share the same set of services. However, irrespective, it is necessary to provide some system allowing all of the tasks to operate at the same time within the module (16).
  • Where a real time operating system is available, it is known to map individual tasks as respective threads. An area of memory is provided for a stack for each respective thread and each thread is processed independently of all other threads, with the stack allowing the operating system to provide timesharing of the resources in the module (16). In particular, the stack allows a thread to be broken away from at any convenient time in preference to another thread and returned to as and when possible.
  • In this manner, individual respective threads could be provided for the tasks illustrated in FIG. 10, namely the idle task, the interface handler, the signal locker and the four time slicers.
  • Unfortunately, the use of threads in this manner does require also the use of respective stacks which require memory. In most devices using a real time operating system, there tends to be sufficient memory to make the requirements for the stacks insignificant. However, for devices such as those contemplated for handheld digital television reception, for instance the module (16) of FIG. 2, it is expected that there will be limited resources in the way of memory.
  • As an alternative, it would be possible to combine all of the individual parts of the tasks as a single state machine. This would not have the same memory requirements, but has very low flexibility. By way of example, considering task A which requires steps A1 and A2 and also task B which requires steps B1, B2 and B3, a single state machine could be constructed which, by way of example, always carries out the steps in the following order: A1, B1, B2, A2, B3. It will be appreciated that this fixed arrangement has very limited flexibility and can be quite unsuitable where unexpected circumstances arise. In particular, one such unexpected circumstance can be an event that must be handled within a time frame specified by real-time constraints. With a fixed state machine, the time latency before the event is handled can be up to one full loop through the state machine.
  • The concept of co-routines is also known. After predetermined steps in the co-routine, the co-routine yields, thereby allowing the system to choose a step perhaps from another co-routine, before returning to the point at which the first co-routine yielded. Thus, for the example given above, a first co-routine could be constructed with yield points after step A1 and after step A2 and, similarly, a co-routine could be constructed with yield points after step B1, after step B2 and after step B3. The overall process would proceed in a known manner by, for instance, starting with step A1 and, at the yield point at the end of step A1, checking to see whether the system is ready to carry out step B1. If the system is ready, the process moves to step B1, otherwise, the process moves on to A2. This arrangement provides some degree of flexibility without the memory demands of stacks for each process.
  • The present application proposes for the first time an arrangement in which co-routines are embedded within an individual thread. In particular, processes (otherwise described here as tasks) which have the same or similar priority can be arranged as co-routines within a single thread, allowing processes with quite different priorities to have their own individual threads. For the embodiment illustrated in FIG. 10, this would mean that the time slicer tasks which operate filtering of bursts of data can all be operated as co-routines within a single thread. Hence, only a single memory stack is needed for the multiple time slicer tasks. On the other hand, as will be explained below, where perhaps the interface handler or signal locker needs to interrupt the time slicer tasks, this can be done, because they operate with separate threads having respective memory stacks.
  • A similar approach could be used where multiple tuners are available. In this case, multiple interface handler or signal locker tasks might co-exist by way of co-routines within respective threads.
  • Thus, there may be provided a system and method of prioritisation, in particular prioritisation of time important routines for instance in a digital television receiver using a real-time operating system. The proposals apply to software system that has hard-real time constraints on a subset of the tasks it performs.
  • In the context of the module (16) described above and the processes of FIGS. 6 and 10, the tasks to be performed by the software of the preferred embodiment are 1) configuring and controlling the tuner and the demodulator, scheduling time slices and extracting SI/PSI tables and IP services, and communicating with the host application processor (12). The goal of the architecture is to make it possible to perform all the software tasks while optimizing timing, power consumption and memory usage.
  • It is assumed that the processor (30) of FIG. 3 is sufficiently powerful to execute all of the software tasks. However, there are specific events that require special attention because of the real time constraints that they impose. One such event is the signal lock lost interrupt. Servicing this interrupt and starting the auto-recovery procedure should occur as quickly as possible, suspending other activities if necessary, as any delays will potentially cause IP packets to be lost. This means that the signal acquisition task, when it needs to run, must pre-empt any task that is processing SI/PSI tables or MPE-FEC frames (e.g. performing error correction to extract IP data). On the other hand, tasks such as extracting SI/PSI tables, performing software AGC, or sending debug messages to the UART, are less time-critical than processing MPE-FEC frames and extracting IP services. They could have to be made pre-emptible by the IP service task
  • As discussed above, it is considered that memory is a critically sparse resource in many devices, such as a DVB-H receiver. In some embodiments, no more than 64 kiB of RAM might be available. Therefore, the architecture should aim at minimizing: code size; data size; and stack space.
  • As explained above, the typical way of achieving real-time constraints is to use a Real-Time Operating System (RTOS) and assigning a separate RTOS pre-emptible thread and priority to each software task (40). However, each RTOS thread requires a separate execution stack, which increases the total memory requirement of the system.
  • By virtue of the proposals of the present application, it is possible to provide a DVB-H receiver (2) which assigns the software tasks to a combination of 1) RTOS pre-emptible threads, to achieve real-time constraints for tasks (40) that have them and 2) classical co-operative co-routines for tasks (40) that do not have relative real-time priorities. Groups of co-routines are run within a single RTOS pre-emptible thread, and therefore share the same execution stack. Multi-tasking is achieved by co-operative scheduling, which means each task (i.e. co-routine) co-operative yields control from time to time to allow other tasks (i.e. co-routine) to execute. In this way, the use of RTOS pre-emptible threads allows real-time constraints to be achieved where it is important, while co-operative co-routines saves memory.
  • Referring to FIGS. 6 and 10, it is noted that the top layer blocks (40) are called tasks, but can be considered to be threads. In reality, the time slicer thread runs several co-routines, each co-routine executing one respective IP reception task. In order to limit stack space, the number of RTOS threads in the system should be kept to a strict minimum. However, as explained previously, some tasks should run asynchronously and within low timing constraints.
  • An example of real time task scheduling is shown in FIG. 11. Although the tasks involved have been mentioned above, a brief summary of each is given below.
  • The time slicer task is a low-priority task which controls the system heartbeat. For every (for example DVB-H) time slice, it 1) requests the Tuning service to wake up the hardware and reacquire the signal lock, 2) waits for SI/PSI or IP events and processes them, 3) requests the Tuning service to shut off the hardware, and 4) sleeps until the next time slice. Using the proposals of the present application, this thread actually runs several co-routines. Each co-routine performs the task of receiving a single IP service as listed above, allowing other IP services to be processed by using co-operative scheduling.
  • The interface handler is a medium-priority task which handles the host processor commands, which by nature are asynchronous to the stream handling. It manages the receiver state and uses the Tuning service to implement the SCAN and TUNE commands. Because the SPI host interface is a performance bottleneck, this task must have a higher priority than the time slicer task.
  • The signal locker is a high-priority task which responds to the signal lock lost event or any other events that require quick handling. In case of signal lock lost, it initiates the recovery procedure.
  • The idle task is the lowest priority task in the system. It is scheduled only when all the other tasks are sleeping and or pending on an event. Its only function is to set the processor (30) in a low-power state.
  • FIG. 11 illustrates typical scheduling scenarios and demonstrates how an RTOS helps construct a simple design that meets the low-latency timing and power constraints.
  • Section (a) shows the idle task being scheduled between time slices. The only thing this task does is to put the processor (30) into a low-power state. The processor (30) will wake up at the next time slice (timer set up by the time slicer task) or whenever a host command is received (SPI/SDIO interrupt) and to be processed by the interface handler.
  • Section (b) illustrates how the real-time scheduling properties enable serving host commands quickly, even if the time slicer is running. For example, if the host sends a SEND_STAT_DATA command while the time slicer is processing SI tables, basically the only delay before the request is served will be a context switch.
  • Section (c) illustrates multiple levels of pre-emption. It shows how an RTOS helps handling signal lock lost interrupts with virtually no delays.
  • Managing a single IP service as described in the previous section is easy enough. However, as illustrated in FIG. 10, the receiver will support the reception of up to four IP services simultaneously, each IP service having its own value for delta-t and its own power-up periods that may overlap with that of other IP services.
  • The easy way to implement this would be to create one thread per IP service, but, as discussed above, it is desirable to limit memory usage. Because different priorities are not a requirements for IP services, co-operative multi-tasking is used. This is could be implemented with state machines, but preferred embodiments use the more elegant, easier to read and easier to maintain co-routines. As explained above, co-routines allow multiple exit points in a function, while maintaining the execution state, which makes the control flow more explicit than in a switch-based state machine. Indeed a co-routine allow a co-operative task to be implemented in a way that is independent from other tasks.

Claims (22)

1-22. (canceled)
23: A system comprising:
a plurality of hardware devices having different respective uses and connected for communication with a processor; and
device drivers for respective of the hardware devices,
the system being configured to support a plurality of tasks, each task using one or more of the hardware devices by communicating with respective of the device drivers, and being configured to control the power to each hardware device independently according to whether or not the respective hardware device is needed for use.
24: A system according to claim 23, wherein a counter is implemented in each respective device driver, the counter being configured to be incremented each time one of the plurality of tasks requests use of the respective hardware device and to be decremented each time one of the plurality of tasks ceases use of the respective hardware device.
25: A system according to claim 24, wherein the counter is implemented as an application programming interface.
26: A system according to claim 24, wherein the counter provides an output to power down the respective hardware device when the counter indicates that there is no outstanding request for use of the respective hardware device.
27: A system according to claim 26, wherein the counter has an initial value of zero and the output enables powering up of the respective hardware device only when the counter has a non-zero value.
28: A system according to claim 26, further comprising a hardware clock device including a clock input for a clock signal of the system, power inputs for receiving respective outputs of the counters, clock outputs for respective of the hardware devices and a plurality of respective logic gates, each respective logic gate being connected to the clock input, a respective power input, and a respective clock output and being configured to provide selectively the clock signal to the respective clock output according to the power input.
29: A system according to claim 23, wherein the plurality of hardware devices include at least one of a timer, a UART, an SPI, an SDIO, a tuner, a demodulator, a filter, and an MPE-FEC.
30: A system according to claim 23, wherein the system is a demodulator.
31: A system according to claim 23, wherein the system is an interchangeable module.
32: A system according to claim 23, wherein the system is an integrated circuit.
33: A system according to claim 23, wherein the system is a digital television receiver.
34: A system according to claim 23, wherein the system conforms to DVB-H standards.
35: A method of operating a system including a plurality of hardware devices having different respective uses and connected for communication with a processor, and including device drivers for respective of the hardware devices, the system being configured to support a plurality of tasks, each task using one or more of the hardware devices by communicating with respective device drivers, the method comprising:
controlling the power to each hardware device independently according to whether or not the respective hardware device is needed for use.
36: A method according to claim 35, further comprising controlling the power of an individual of the hardware devices by selectively disabling the clock of that respective hardware device.
37: A method according to claim 35, further comprising using reference counting in a lowest software layer to determine when at least one of the hardware devices can be powered on or off.
38: A method according to claim 35, further comprising:
providing a counter for each hardware device;
incrementing the counter each time a request is received to use and hence power up the respective hardware devices;
decrementing the counter each time a request is received to end use and hence power down the respective hardware device; and
providing a signal to power down the respective hardware device when the counter indicates that there is no outstanding request for powering up the hardware device.
39: A method according to claim 38, further comprising:
powering down the respective hardware device when the counter indicates that there is no outstanding request for powering up the hardware device.
40: A method according to claim 38, further comprising implementing the counter in the respective device driver.
41: A computer program comprising:
program code means for performing, when the program is run on a computer, a method of operating a system including a plurality of hardware devices having different respective uses and connected for communication with a processor, and including device drivers for respective of the hardware devices, the system being configured to support a plurality of tasks, each task using one or more of the hardware devices by communicating with respective of the device drivers, the method including controlling the power to each of the hardware devices independently according to whether or not the respective hardware device is needed for use.
42: The computer program according to claim 41, implemented as an application program interface for use in a device driver.
43: A computer program product comprising:
program code means stored on a computer readable medium for performing, when the program is run on a computer, a method of operating a system including a plurality of hardware devices having different respective uses and connected for communication with a processor, and including device drivers for respective of the hardware devices, the system being configured to support a plurality of tasks, each task using one or more of the hardware devices by communicating with respective of the device drivers, the method including controlling the power to each hardware device independently according to whether or not the respective hardware device is needed for use.
US12/307,648 2006-07-21 2007-07-09 System having plurality of hardware blocks and method of operating the same Abandoned US20090293072A1 (en)

Applications Claiming Priority (7)

Application Number Priority Date Filing Date Title
GB0614549A GB0614549D0 (en) 2006-07-21 2006-07-21 System and Method of Prioitisation
GB0614548A GB0614548D0 (en) 2006-07-21 2006-07-21 System and method of operating the system
GB0614547.8 2006-07-21
GB0614548.6 2006-07-21
GB0614547A GB0614547D0 (en) 2006-07-21 2006-07-21 Demodulator device
GB0614549.4 2006-07-21
PCT/EP2007/006074 WO2008009366A1 (en) 2006-07-21 2007-07-09 System having plurality of hardware blocks and method of operating the same

Publications (1)

Publication Number Publication Date
US20090293072A1 true US20090293072A1 (en) 2009-11-26

Family

ID=38626384

Family Applications (2)

Application Number Title Priority Date Filing Date
US12/307,648 Abandoned US20090293072A1 (en) 2006-07-21 2007-07-09 System having plurality of hardware blocks and method of operating the same
US12/373,894 Expired - Fee Related US8161276B2 (en) 2006-07-21 2007-07-09 Demodulator device and method of operating the same

Family Applications After (1)

Application Number Title Priority Date Filing Date
US12/373,894 Expired - Fee Related US8161276B2 (en) 2006-07-21 2007-07-09 Demodulator device and method of operating the same

Country Status (3)

Country Link
US (2) US20090293072A1 (en)
EP (2) EP2027520A1 (en)
WO (3) WO2008009368A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140013011A1 (en) * 2012-07-09 2014-01-09 Ultrasoc Technologies Ltd. Debug architecture
US20150074682A1 (en) * 2013-09-11 2015-03-12 Fujitsu Limited Processor and control method of processor
US20150120964A1 (en) * 2007-12-19 2015-04-30 Mediatek Inc. Peripheral device complying with sdio standard and method for managing sdio command
US20160231805A1 (en) * 2013-09-27 2016-08-11 Freescale Semiconductor, Inc. Electronic device and apparatus and method for power management of an electronic device
US20180101219A1 (en) * 2016-10-06 2018-04-12 Microsoft Technology Licensing, Llc Preventing power gating of a domain
US11237618B2 (en) * 2018-07-19 2022-02-01 Dell Products L.P. System and method to maintain optimal system performance within user defined system level power cap in a changing workload environment
US11907043B2 (en) 2022-05-25 2024-02-20 Apple Inc. Adaptive wake-up for power conservation in a processor

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008009368A1 (en) * 2006-07-21 2008-01-24 Sony Service Centre (Europe) N.V. System and method of prioritising tasks
CN101470412B (en) 2007-12-25 2011-01-05 深圳Tcl新技术有限公司 Method for reducing power consumption of electronic device and electronic device thereof
KR20100045737A (en) * 2008-10-24 2010-05-04 삼성전자주식회사 Display device and control method thereof
US8412818B2 (en) 2010-12-21 2013-04-02 Qualcomm Incorporated Method and system for managing resources within a portable computing device
HUP1200171A1 (en) 2012-03-19 2013-09-30 Richter Gedeon Nyrt Methods for the production of polypeptides

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5630142A (en) * 1994-09-07 1997-05-13 International Business Machines Corporation Multifunction power switch and feedback led for suspend systems
US6260058B1 (en) * 1994-07-19 2001-07-10 Robert Bosch Gmbh Process for controlling technological operations or processes
US20020152425A1 (en) * 2001-04-12 2002-10-17 David Chaiken Distributed restart in a multiple processor system
US6501999B1 (en) * 1999-12-22 2002-12-31 Intel Corporation Multi-processor mobile computer system having one processor integrated with a chipset
US20030115495A1 (en) * 2001-12-13 2003-06-19 International Business Machines Corporation Conserving energy in a data processing system by selectively powering down processors
US20050152477A1 (en) * 2002-06-04 2005-07-14 Crawley Casimir J. Wireless signal loss detection
US20050177860A1 (en) * 2004-02-06 2005-08-11 Maneesh Goyal Method and system for an integrated VSB/QAM/NTSC/OOB plug-and-play DTV receiver
US20050228967A1 (en) * 2004-03-16 2005-10-13 Sony Computer Entertainment Inc. Methods and apparatus for reducing power dissipation in a multi-processor system
US7162279B2 (en) * 2002-12-20 2007-01-09 Intel Corporation Portable communication device having dynamic power management control and method therefor
US7305569B2 (en) * 2004-06-29 2007-12-04 Intel Corporation Apparatus, system and method for adjusting a set of actual power states according to a function depending on a set of desired power states
US20070294494A1 (en) * 2006-06-16 2007-12-20 Texas Instruments Incorporated Page processing circuits, devices, methods and systems for secure demand paging and other operations
US20070294496A1 (en) * 2006-06-19 2007-12-20 Texas Instruments Incorporated Methods, apparatus, and systems for secure demand paging and other paging operations for processor devices
US7929060B2 (en) * 2004-04-30 2011-04-19 Telegent Systems, Inc. Video receiver with reduced power mode
US8055828B2 (en) * 2007-05-10 2011-11-08 Texas Instruments Incorporated Electronic power management system
US8161276B2 (en) * 2006-07-21 2012-04-17 Sony Service Centre (Europe) N.V. Demodulator device and method of operating the same

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59135569A (en) * 1983-01-24 1984-08-03 Sharp Corp Control system of multi-processor
JP2753706B2 (en) * 1987-12-09 1998-05-20 富士通株式会社 IPL method in computer
US6134616A (en) 1996-10-28 2000-10-17 International Business Machines Corporation Method and apparatus for dynamic re-enumeration and reconfiguration of computer devices after system hibernation
KR19980042023A (en) * 1996-11-01 1998-08-17 윌리엄비.켐플러 Integrated Circuits for Audio Imaging Systems
AU2324101A (en) * 2000-08-16 2002-02-21 Xybernaut Corporation Operating system for a dynamically re-configurable PC
AU2002246904A1 (en) * 2000-10-27 2002-07-30 Arc International (Uk) Limited Method and apparatus for reducing power consuption in a digital processor
JP2002215597A (en) * 2001-01-15 2002-08-02 Mitsubishi Electric Corp Multiprocessor device
US6526491B2 (en) * 2001-03-22 2003-02-25 Sony Corporation Entertainment Inc. Memory protection system and method for computer architecture for broadband networks
CN1219376C (en) 2001-04-30 2005-09-14 中兴通讯股份有限公司 Decode driving method for base station modem chip
GB2395310A (en) * 2002-11-12 2004-05-19 Advanced Risc Mach Ltd Data processing system performance counter
EP1652056A1 (en) * 2003-07-30 2006-05-03 Koninklijke Philips Electronics N.V. Flexible power reduction for embedded components
KR100634436B1 (en) * 2004-09-23 2006-10-16 삼성전자주식회사 Multi chip system and its boot code fetch method

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6260058B1 (en) * 1994-07-19 2001-07-10 Robert Bosch Gmbh Process for controlling technological operations or processes
US5630142A (en) * 1994-09-07 1997-05-13 International Business Machines Corporation Multifunction power switch and feedback led for suspend systems
US6501999B1 (en) * 1999-12-22 2002-12-31 Intel Corporation Multi-processor mobile computer system having one processor integrated with a chipset
US20020152425A1 (en) * 2001-04-12 2002-10-17 David Chaiken Distributed restart in a multiple processor system
US20030115495A1 (en) * 2001-12-13 2003-06-19 International Business Machines Corporation Conserving energy in a data processing system by selectively powering down processors
US20050152477A1 (en) * 2002-06-04 2005-07-14 Crawley Casimir J. Wireless signal loss detection
US7162279B2 (en) * 2002-12-20 2007-01-09 Intel Corporation Portable communication device having dynamic power management control and method therefor
US20050177860A1 (en) * 2004-02-06 2005-08-11 Maneesh Goyal Method and system for an integrated VSB/QAM/NTSC/OOB plug-and-play DTV receiver
US20050228967A1 (en) * 2004-03-16 2005-10-13 Sony Computer Entertainment Inc. Methods and apparatus for reducing power dissipation in a multi-processor system
US7929060B2 (en) * 2004-04-30 2011-04-19 Telegent Systems, Inc. Video receiver with reduced power mode
US7305569B2 (en) * 2004-06-29 2007-12-04 Intel Corporation Apparatus, system and method for adjusting a set of actual power states according to a function depending on a set of desired power states
US20070294494A1 (en) * 2006-06-16 2007-12-20 Texas Instruments Incorporated Page processing circuits, devices, methods and systems for secure demand paging and other operations
US20070294496A1 (en) * 2006-06-19 2007-12-20 Texas Instruments Incorporated Methods, apparatus, and systems for secure demand paging and other paging operations for processor devices
US8161276B2 (en) * 2006-07-21 2012-04-17 Sony Service Centre (Europe) N.V. Demodulator device and method of operating the same
US8055828B2 (en) * 2007-05-10 2011-11-08 Texas Instruments Incorporated Electronic power management system
US8069290B2 (en) * 2007-05-10 2011-11-29 Texas Instruments Incorporated Processing system operable in various execution environments

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150120964A1 (en) * 2007-12-19 2015-04-30 Mediatek Inc. Peripheral device complying with sdio standard and method for managing sdio command
US9864521B2 (en) * 2007-12-19 2018-01-09 Mediatek Inc. Peripheral device complying with SDIO standard and method for managing SDIO command
US20140013011A1 (en) * 2012-07-09 2014-01-09 Ultrasoc Technologies Ltd. Debug architecture
US9032109B2 (en) * 2012-07-09 2015-05-12 Ultrasoc Technologies Ltd. Prioritising event data over configuration data in a single interface in a SoC/debug architecture
US20150074682A1 (en) * 2013-09-11 2015-03-12 Fujitsu Limited Processor and control method of processor
US9626230B2 (en) * 2013-09-11 2017-04-18 Fujitsu Limited Processor and control method of processor
US20160231805A1 (en) * 2013-09-27 2016-08-11 Freescale Semiconductor, Inc. Electronic device and apparatus and method for power management of an electronic device
US10860081B2 (en) * 2013-09-27 2020-12-08 Nxp Usa, Inc. Electronic device and apparatus and method for power management of an electronic device
US20180101219A1 (en) * 2016-10-06 2018-04-12 Microsoft Technology Licensing, Llc Preventing power gating of a domain
WO2018067386A1 (en) * 2016-10-06 2018-04-12 Microsoft Technology Licensing, Llc Preventing power gating of a domain
US11237618B2 (en) * 2018-07-19 2022-02-01 Dell Products L.P. System and method to maintain optimal system performance within user defined system level power cap in a changing workload environment
US11907043B2 (en) 2022-05-25 2024-02-20 Apple Inc. Adaptive wake-up for power conservation in a processor

Also Published As

Publication number Publication date
WO2008009368A1 (en) 2008-01-24
WO2008009367A1 (en) 2008-01-24
US8161276B2 (en) 2012-04-17
EP1977314A1 (en) 2008-10-08
US20090327676A1 (en) 2009-12-31
EP2027520A1 (en) 2009-02-25
WO2008009366A1 (en) 2008-01-24

Similar Documents

Publication Publication Date Title
US8161276B2 (en) Demodulator device and method of operating the same
JP4148223B2 (en) Processor and information processing method
US20060010446A1 (en) Method and system for concurrent execution of multiple kernels
US8407714B2 (en) Arithmetic device for processing one or more threads
US5987556A (en) Data processing device having accelerator for digital signal processing
US20070130446A1 (en) Processor apparatus including specific signal processor core capable of dynamically scheduling tasks and its task control method
MX2007011095A (en) Control of sleep modes in a wireless transceiver.
US10564708B2 (en) Opportunistic waking of an application processor
US20090183153A1 (en) Method and computer for synchronous scheduling of multiple virtual CPUs
EP1800202B1 (en) Apparatus for controlling a digital signal processor for radio isolation and associated methods
EP2596411B1 (en) Electronic device with a clock circuit and method for providing an electronic device with a clock signal
US20170265132A1 (en) Low Power Cellular Modem System Architecture
CN101495940A (en) Demodulator device and method of operating the same
US20050008095A1 (en) Apparatus using interrupts for controlling a processor for radio isolation and associated methods
JP2001282398A (en) Network information processor and printer device
JPWO2018211865A1 (en) Vehicle control device
US7761056B2 (en) Method of controlling a processor for radio isolation using a timer
CN114153576A (en) Multi-task scheduling method and device based on wearable device and electronic device
CN111984391A (en) Task scheduling method, device, chip, terminal and storage medium
US7539477B2 (en) Wireless LAN apparatus and semiconductor device
JP2003115775A (en) Digital broadcast receiver
US8472990B2 (en) Apparatus using interrupts for controlling a processor for radio isolation and associated method
CN104978208B (en) Hot restart method and device thereof
WO2024013830A1 (en) Server internal data transfer device, data transfer system, server internal data transfer method, and program
CN115460024A (en) Network card drive optimization method, device, equipment and storage medium

Legal Events

Date Code Title Description
AS Assignment

Owner name: SONY SERVICE CENTRE (EUROPE) N.V. BELGIAN BODY COR

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:ELSHOCHT, OLIVIER;HORNSBY, JOHN;GRAD, JOEL;AND OTHERS;REEL/FRAME:022082/0874;SIGNING DATES FROM 20080919 TO 20081022

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION