This application is based on and claims priority under 35 U.S.C. §119 to Korean Patent Application No. 10-2016-0103743, filed on Aug. 16, 2016 in the Korean Intellectual Property Office, the disclosure of which is incorporated by reference herein in its entirety.
The present disclosure relates generally to a digital signal processor (DSP) interface apparatus capable of controlling an input and an output of a DSP which processes data, and a method of controlling the same.
A digital signal processor (DSP) is a microprocessor having an integrated circuit (IC) chip which processes data through a digital operation. The DSP may be realized by improving general-purpose microprocessor architecture to a large extent to increase high-speed operation capability, simplify a structure, and decrease a size.
Generally, a DSP may perform operations such as filtering, Fourier transformation, calculation of a correlation function, coding, modulation/demodulation, differentiation, integration, adaptive signal processing, etc. Thus, a DSP has recently been employed in voice and communication systems related to voice synthesis, voice recognition, speech coding, compression, a medium/high-speed modem, an echo canceler, etc. Furthermore, a DSP has been extensively used in the field of high-speed digital control, including image processing, servo-motor control, etc.
As a DSP has been used in many ways, the number and types of hardware devices to be connected to the DSP have been increased. Thus, research has been actively conducted to provide an environment in a DSP may output best results under various conditions.
Therefore, it is an example aspect of the present disclosure to provide a digital signal processor (DSP) interface apparatus capable of variably setting an interconnection between a DSP and a plurality of hardware devices, and a method of controlling the same.
Additional aspects of the disclosure will be set forth in part in the description which follows and, in part, will be apparent from the description.
In accordance with an example aspect of the present disclosure, a DSP interface apparatus includes a path setter comprising path setting circuitry configured to set a data transmission path between at least one of a plurality of hardware devices and a DSP; and a controller configured to control the path setter to set the data transmission path based on predetermined configuration information.
The path setter may connect at least one of a plurality of operation parts and a memory of the DSP and at least one of the plurality of hardware devices.
The controller may control the path setter to set the data transmission path using the configuration information, the configuration information including at least one of: information regarding priorities assigned to the plurality of hardware devices, information regarding type of the data transmitted through the data transmission path, and information regarding whether data is to be transmitted bidirectionally.
The path setter may set a first transmission path through which data is transmitted from the DSP to at least one of the plurality of hardware devices, and a second transmission path through which data is transmitted from at least one of the plurality of hardware devices to the DSP.
The path setter may include various path setting circuitry including, for example, and without limitation, a first multiplexer configured to select at least one of the plurality of operation parts and the memory of the DSP to provide data to the first transmission path; a first demultiplexer configured to select at least one of the plurality of hardware devices to receive data from the first transmission path; a second multiplexer configured to select at least one of the plurality of hardware devices to provide data to the second transmission path; and a second demultiplexer configured to select at least one of the plurality of operation parts and the memory of the DSP to receive data from the second transmission path.
The path setter may include a first buffer configured to store data transmitted through the first transmission path; and a second buffer configured to store data transmitted through the second transmission path.
The controller may control the first buffer and the second buffer to provide data when data is stored to a predetermined target level.
The path setter may include a first data transformation part comprising data transformation circuitry configured to transform data transmitted through the first transmission path; and a second data transformation part configured to transform data transmitted through the second transmission path.
The controller may control the path setter to transmit data independently through the first transmission path and the second transmission path.
The path setter may set a plurality of first transmission paths and a plurality of second transmission paths, a plurality of first transmission paths and a second transmission path, or a first transmission path and a plurality of second transmission paths.
In accordance with another example aspect of the present disclosure, a method of controlling a DSP interface apparatus for setting a data transmission path between at least one of a plurality of hardware devices and a DSP includes setting the data transmission path based on predetermined configuration information; and transmitting data through the data transmission path.
The setting of the data transmission path includes connecting at least one among a plurality of operation parts and a memory of the DSP and at least one among the plurality of hardware devices
The setting of the data transmission path may include setting the data transmission path using the configuration information, the configuration information including at least one of: information regarding priorities assigned to the plurality of hardware devices, information regarding type of the data transmitted, and information regarding whether data is to be transmitted bidirectionally.
The setting of the data transmission path may include setting a first transmission path through which data is transmitted from the DSP to at least one of the plurality of hardware devices, and a second transmission path through which data is transmitted from at least one of the plurality of hardware devices to the DSP.
The setting of the data transmission path may include selecting at least one of the plurality of operation parts and the memory of the DSP using a first multiplexer to provide data to the first transmission path; selecting at least one of the plurality of hardware devices using a first demultiplexer to receive data from the first transmission path; selecting at least one of the plurality of hardware devices using a second multiplexer to provide data to the second transmission path; and selecting at least one of the plurality of operation parts and the memory of the DSP using a second demultiplexer to receive data from the second transmission path.
The transmitting of the data may include storing at least one of data transmitted through the first transmission path and data transmitted through the second transmission path.
The transmitting of the data may include providing the stored data when a size of the stored data reaches a predetermined target level.
The transmitting of the data may include transforming at least one of data transmitted through the first transmission path and data transmitted through the second transmission path.
The transmitting of the data may include transmitting data independently through the first transmission path and the second transmission path.
The setting of the data transmission path may include setting a plurality of first transmission paths and a plurality of second transmission paths, a plurality of first transmission paths and a second transmission path, or a first transmission path and a plurality of second transmission paths.
These and/or other aspects, features and attendant advantages of the present disclosure will become apparent and more readily appreciated from the following detailed description, taken in conjunction with the accompanying drawings, in which like reference numerals refer to like elements, and wherein:
Hereinafter, a digital signal processor (DSP) interface apparatus and a method of controlling the same in accordance with various example embodiments of the present disclosure will be described in greater detail with reference to the accompanying drawings. In the present disclosure, “transforming” of data may, for example, include handling the data, transforming the data, processing the data, manipulating the data, or the like, but is not limited thereto.
Referring to
For example, when the electronic device is a television (TV), hardware modules embodied similar to the hardware device 300 (see, e.g.,
An operation of each of the hardware modules is determined according to hardware design and may thus transform data according to a method determined during the manufacture of the hardware modules. Thus, when only the hardware modules are located in the data transmission path, data may not be transformed in various ways.
To this end, the DSP system 100 may be provided in the data transmission path. The DSP system 100 may transform input data in various ways according to a newly updated application. Thus, the DSP system 100 may have a high degree of freedom in transforming data.
Referring to
Referring to
The DRAM 400 may be connected to the DSP 200 via the bus. An instruction may be stored in the DRAM 400. The DSP 200 may receive the stored instruction via the bus. The DSP 200 may perform an operation on data according to the instruction. To this end, the DSP 200 may include a bus interface 240 connected to the bus, a memory 230 which stores data, a memory controller 220 which controls the data stored in the memory 230, and a core 210 which performs an operation on the data.
The bus interface 240 may receive an instruction and provide the instruction to the memory controller 220. The memory controller 220 may read data corresponding to the instruction from the memory 230, and provide the data to the core 210. The core 210 may transform the data received from the memory controller 220 by performing an operation on the data. The core 210 may include, for example, a first operation part 210-1, second operation part 210-2 to Mth operation part 210-M.
In this case, the hardware device 300 may perform an operation on some of the data to accelerate the performing of the operation by the DSP 200. To this end, the DSP 200 may share the data with the hardware device 300.
To share the data, the DSP 200 and the hardware device 300 may employ at least one of three methods to be described below.
In one of these methods, the core 210 of the DSP 200 and the hardware device 300 may be directly connected to each other. Referring to {circumflex over (1)} of
For example, this method cannot be applied when an operation needs to be performed on intermediate data as in a two-dimensional (2D) filter.
In another method of these methods, the hardware device 300 may be connected to the memory 230 of the DSP 200. Referring to {circumflex over (2)} of
In the other method, the hardware device 300 and the DSP 200 are connected to each other via the bus. Referring to {circumflex over (3)} of
The hardware device 300 may be connected to the DSP 200 by employing an appropriate method among these methods according to data to be transformed. As a result, the connection of the hardware device 300 to the DSP 200 may be understood to mean that the hardware device 300 is connected to the core 210, that the hardware device 300 is connected to the memory 230, or that the hardware device 300 is connected to the bus.
An interconnection between the hardware device 300 and the DSP 200 is determined during designing of the hardware device 300 and thus the flexibility of data transformation may be low. For example, even if data needs to be transformed quickly using the second hardware device 320 of
When a new hardware device 300 is added, the entire DSP system 100 should be newly designed. Furthermore, when an application is not determined during designing of the DSP system 100, an optimum design for data transmission may not be provided.
To solve this problem, the DSP system 100 in accordance with an embodiment includes a DSP interface apparatus 600 to variably set an interconnection between the DSP 200 and a plurality of hardware devices 300.
Referring to
To this end, the DSP interface apparatus 600 may include a path setter (e.g., including path setting circuitry) 610 for setting a data transmission path between at least one among a plurality of hardware devices 300 and the DSP 200, and a controller 620 for controlling the path setter 610 to set a data transmission path according to predetermined configuration information.
Referring to
For example, the path setter 610 may form a first transmission path through which data is transmitted to at least one of the first to fourth hardware devices 310, 320, 330, and 340 from at least one of the first to third operation parts 210-1 to 210-3 and the memory 230, and a second transmission path through which data is transmitted from at least one of the first to fourth hardware devices 310, 320, 330, and 340 to at least one of the first to third operation parts 210-1 to 210-3 and the memory 230.
To this end, referring to
As a result, the path setter 610 may form the first transmission path connecting at least one of the first to third operation parts 210-1 to 210-3 and the memory 230 selected by the first MUX 611a and at least one of the first to fourth hardware devices 310, 320, 330, and 340 selected by the first DEMUX 614a. Furthermore, the path setter 610 may form the second transmission path connecting at least one of the first to fourth hardware devices 310, 320, 330, and 340 selected by the second MUX 611b and at least one of the first to third operation parts 210-1 to 210-3 and the memory 230 selected by the second DEMUX 614b.
The path setter 610 may include a first data transformation part (e.g., including data transformation circuitry) 612a for transforming data transmitted through the first transmission path, a first buffer 613a for storing the data transmitted through the first transmission path, a second data transformation part (e.g., including data transformation circuitry) 612b for transforming data transmitted through the second transmission path, and a second buffer 613b for storing the data transmitted through the second transmission path.
The first data transformation part 612a and the second data transformation part 612b may perform simple transformation, e.g., addition, subtraction, multiplication, shifting, etc., on data transmitted through a transmission path. Thus, workload on the DSP 200 and/or the hardware device 300 may be decreased to increase a data transmission speed.
The first buffer 613a and the second buffer 613b may temporarily store data transformed as described above. Thus, data transmission synchronization may be performed and data may be simply transformed. For example, the first buffer 613a and the second buffer 613b may store a predetermined size of data and provide it through a transmission path to change the size of the data.
Although
Referring back to
The controller 620 may determine whether the hardware device 300 connected to the DSP interface apparatus 600 is to be connected to the plurality of operation parts of the core 210 or the memory 230 based on the information regarding the complexity of the operation which is included in the configuration information. Here, the complexity of the operation may be a value obtained by quantifying a time period needed for the plurality of operation parts of the core 210 to perform the operation on target data. The controller 620 may check the complexity of the operation, and control the path setter 610 to form a transmission path with an optimum operation speed when the operation is performed, according to the complexity of the operation.
The controller 620 may control the second MUX 611b based on the information regarding the priorities assigned to the plurality of hardware devices 300 which is included in the configuration information. In detail, the controller 620 may control the second MUX 611b to first connect the hardware device 300 with high priority to the DSP 200. Thus, the path setter 610 may sequentially connect the plurality of hardware devices 300 in the data transmission path according to priority.
The controller 620 may determine whether the hardware device 300 connected to the DSP interface apparatus 600 is to be connected to the plurality of operation parts of the core 210 or the memory 230 based on the information regarding the type of data included in the configuration information. The controller 620 may check an application to be applied based on the type of the data, and control the path setter 610 to form a transmission path with an optimum transmission speed when an operation is to be performed according to the application.
The controller 620 may determine whether data is to be transmitted bidirectionally using both the first transmission path and the second transmission path set by the path setter 610 based on the information regarding whether data is to be transmitted bidirectionally which is included in configuration information. Since the first transmission path and the second transmission path are formed to be independent from each other, the controller 620 may control the path setter 610 to transmit data using one or both of the first and second transmission paths according to the determination as to whether data is to be transmitted bidirectionally.
A data transmission method performed by the DSP interface apparatus 600 will be described with reference to
On the other hand, the DSP interface apparatus 600 may transmit data bidirectionally.
At the same time, the DSP interface apparatus 600 may be connected to the first operation part 210-1 to form a path {circumflex over (3)} and be connected to the first hardware device 310 to form a path {circumflex over (4)} according to the configuration information. Thus, the DSP interface apparatus 600 may form a first transmission path through which data transformed by the first operation part 210-1 is transmitted to the first hardware device 310 via the paths {circumflex over (3)} and {circumflex over (4)}.
As described above, the DSP interface apparatus 600 may transmit data by independently using the first transmission path and the second transmission path.
The DSP interface apparatus 600 may check predetermined configuration information (800). In this case, the configuration information may be understood to include various types of information input from the outside to set a data transmission path. For example, the configuration information may include information regarding priorities assigned to a plurality of hardware devices 300, the type of data transmitted through a transmission path, and whether data is to be transmitted bidirectionally.
The DSP interface apparatus 600 may be connected to the hardware device 300 corresponding to the configuration information (810). For example, the DSP interface apparatus 600 may be connected to the hardware device 300 by referring to the information regarding the priorities assigned to the plurality of hardware devices 300 which is included in the configuration information.
When the DSP interface apparatus 600 is connected to the hardware device 300, the DSP interface apparatus 600 may check whether data needs to be stored in a buffer according to the configuration information (820). When data needs to be stored in the buffer, the DSP interface apparatus 600 may store data received from the hardware device 300 connected thereto in the buffer (830). By using the buffer, data transmission synchronization may be performed and data may be simply transformed.
The DSP interface apparatus 600 may be connected to an element of the DSP 200 corresponding to the configuration information after the data is stored in the buffer or when the data need not be stored in the buffer (840). Here, the element of the DSP 200 may be understood to include at least one among the plurality of operation parts of the core 210 of the DSP 200 and the memory 230 of the DSP 200. Accordingly, the second transmission path may be formed.
The DSP interface apparatus 600 may transmit the data to the element of the DSP 200 connected thereto through the second transmission path (850).
The DSP interface apparatus 600 may check predetermined configuration information (900). In this case, the configuration may be understood to include various types of information input from the outside to set a data transmission path. For example, the configuration information may include information regarding priorities assigned to a plurality of hardware devices 300, the type of data transmitted through a transmission path, and whether data is to be transmitted bidirectionally.
The DSP interface apparatus 600 may be connected to an element of the DSP 200 corresponding to the configuration information (910). Here, the element of the DSP 200 may be understood to include at least one of the plurality of operation parts of the core 210 of the DSP 200 and the memory 230 of the DSP 200.
When the DSP interface apparatus 600 is connected to the element of the DSP 200, the DSP interface apparatus 600 may check whether data needs to be stored in a buffer according to the configuration information (920). When data needs to be stored in the buffer, the DSP interface apparatus 600 may store data received from the hardware device 300 connected thereto in the buffer (930). By using the buffer, data transmission synchronization may be performed and data may be simply transformed.
The DSP interface apparatus 600 may be connected to the hardware device 300 corresponding to the configuration information after the data is stored in the buffer or when the data need not be stored in the buffer (940). In detail, the DSP interface apparatus 600 may be connected to the hardware device 300 by referring to the information regarding the priorities assigned to the plurality of hardware devices 300 which is included in the configuration information. Accordingly, the first transmission path may be formed.
The DSP interface apparatus 600 may transmit data to the element of the DSP connected to the hardware device 300 connected thereto through the first transmission path (950).
According to the present disclosure, in a DSP interface apparatus and a method of controlling the same in accordance with an example embodiment, data transmission efficiency may be increased by setting a data transmission path to correspond to the types and number of hardware devices connected to a DSP.
Although various example embodiments of the present disclosure have been illustrated and described, it will be appreciated by those skilled in the art that changes may be made in these embodiments without departing from the principles and spirit of the disclosure, the scope of which is defined in the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
10-2016-0103743 | Aug 2016 | KR | national |