CN110109848A - DSP hardware level of abstraction and dsp processor - Google Patents
DSP hardware level of abstraction and dsp processor Download PDFInfo
- Publication number
- CN110109848A CN110109848A CN201910352714.1A CN201910352714A CN110109848A CN 110109848 A CN110109848 A CN 110109848A CN 201910352714 A CN201910352714 A CN 201910352714A CN 110109848 A CN110109848 A CN 110109848A
- Authority
- CN
- China
- Prior art keywords
- dsp
- hardware
- parameter
- module
- call back
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L25/00—Baseband systems
- H04L25/02—Details ; arrangements for supplying electrical power along data transmission lines
- H04L25/026—Arrangements for coupling transmitters, receivers or transceivers to transmission lines; Line drivers
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Communication Control (AREA)
Abstract
This application involves a kind of DSP hardware level of abstraction and dsp processors, DSP hardware level of abstraction includes initialization module, parameter configuration module, data transmit-receive module and message routing distribution module, parameter configuration module is according to the corresponding waveform scheme of external DSP waveform components, obtain LD-PD mapping parameters and LD- call back function mapping parameters in hardware abstraction layer, data transmit-receive module provides the data transceiver interface of standard to external DSP waveform components, coordinate and manage entire DSP hardware level of abstraction data transmit-receive process, message routing distribution module encapsulates hardware abstraction layer message and carries out the route distribution of hardware abstraction layer message according to built-in LD-PD mapping table and LD- call back function mapping table.Entire DSP hardware level of abstraction, is provided with the unified interface interacted with outer DSP waveform components, supports to communicate between different DSP waveform components, and it is portable can be obviously improved DSP waveform components.
Description
Technical field
This application involves fields of communication technology, more particularly to a kind of DSP (Digital Signal Processing, number
Word signal processing) hardware abstraction layer and dsp processor.
Background technique
With the fast development of wireless communication technique, software and radio technique is increasingly mature, in military communication, personal movement
The fields such as communication are found broad application, and software radio system is mainly put down by standardization, generalization and modular common hardware
Platform and software platform composition, core concept are the software modules by loading different function on general hardware platform, thus
Realize various wireless communication functions.
DSP has become important component in wireless communication at present.In wireless communications, the bottom of dsp processor connects
Otherness is larger and complexity for mouthful driving, the data for the driving of different physical layer interfaces and DSP waveform components, between two components
There is portable difference using customized communication interface, so as to cause DSP waveform components in communication.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide the completely new DSP hardware level of abstraction of one kind and DSP processing
Device, it is portable to be obviously improved DSP waveform components.
A kind of DSP hardware level of abstraction, including initialization module, parameter configuration module, data transmit-receive module and message road
By distribution module;
The initialization module is for carrying out hardware driving initialization and hardware abstraction layer internal initialization;
The parameter configuration module is used to obtain hardware abstraction layer according to the corresponding waveform scheme of external DSP waveform components
Configuration parameter, configuration parameter include LD-PD mapping parameters and LD- call back function mapping parameters;
The data transmit-receive module is used to provide the data transceiver interface of standard to the external DSP waveform components;
The message routing distribution module for encapsulate hardware abstraction layer message and according to built-in LD-PD mapping table with
And LD- call back function mapping table carries out the route distribution of hardware abstraction layer message, the LD-PD mapping table is reflected by the LD-PD
Parameter configuration is penetrated, the LD- call back function mapping table is configured by the LD- call back function mapping parameters.
The initialization module is built-in with for the external DSP waveform components calling in one of the embodiments,
MhalInit function, the initialization module are also used to abstract to bottom hardware interface initialization in DSP and creation DSP hardware
Listening thread and associated synch signal amount inside layer, to receive the hardware abstraction layer message for carrying out bottom hardware driving in DSP.
In one of the embodiments, configLDMap function built in the parameter configuration module and
RegisterLocalLD function, the external DSP waveform components call the configLDMap function and described
The LD-PD mapping parameters and LD- call back function mapping parameters are written in registerLocalLD function.
The parameter configuration module is also used to call described in the reading of configLDMap function in one of the embodiments,
The Waveform Design protocol of external DSP waveform components write-in, the LD value that gets parms and parameter PD value, judge whether there is institute
The corresponding LD-PD mapping parameters of parameter LD value are stated, if so, the parameter LD value and the parameter PD value are updated to described
LD-PD mapping parameters if it is not, then increasing the list item for storing the parameter LD value and the parameter PD value newly, and will increase newly
List item is updated to the LD-PD mapping parameters.
The parameter configuration module is also used to call described in the reading of configLDMap function in one of the embodiments,
The Waveform Design protocol of external DSP waveform components write-in calls the registerLocalLD function to get parms LD value
And call back function, the corresponding LD- call back function mapping parameters of the parameter LD value are judged whether there is, if so, will be described
Parameter LD value and the call back function are updated to the LD- call back function mapping parameters, if it is not, then increasing newly described for storing
The list item of parameter LD value and the call back function, and newly-increased list item is updated to the LD- call back function mapping parameters.
The data transmit-receive module calls built-in mhalWrite function in one of the embodiments, obtains the outside
The incoming parameter of DSP waveform components, the incoming parameter includes the logical address of message to be sent and purpose component, the number
The incoming parameter is sent to the message routing distribution module according to transceiver module;The message routing distribution module inquiry
Built-in LD-PD mapping table judges in the LD-PD mapping table with the presence or absence of PD corresponding with the logical address of the purpose component,
If so, the corresponding PD is written in the message to be sent, if it is not, built-in LD- call back function mapping table is then inquired, when described
It is when there is call back function corresponding with the logical address of the purpose component, to call the correspondence in LD- call back function mapping table
Call back function sends the message to be sent.
The data transmit-receive module is also used to carry out legitimacy to the incoming parameter to test in one of the embodiments,
Card, when being verified, is sent to the message routing analysis module for the incoming parameter;The message routing distributes mould
Block is also used to carry out hardware abstraction layer encapsulation to the incoming parameter.
The message routing distribution module parses institute for receiving hardware abstraction layer message in one of the embodiments,
Hardware abstraction layer message, extraction logic address information and data are stated, the built-in LD- call back function mapping table is inquired, judges institute
It states with the presence or absence of the logical address respective function with extraction in LD- call back function mapping table, if so, calling described return
Letter of transfer number sends the data, if it is not, then inquire the built-in LD-PD mapping table, when existing in the LD-PD mapping table and institute
When stating the logical address of extraction and corresponding to PD, the corresponding PD is written into the data.
The initialization module is also used to create the listening-in line inside DSP hardware level of abstraction in one of the embodiments,
Journey reads heading, the length of hardware abstraction layer message is determined, according to institute when reading data by the listening thread
The length read for stating hardware abstraction layer message takes complete hardware abstraction layer message, and the complete hardware abstraction layer message is sent
To the message routing distribution module.
Above-mentioned DSP hardware level of abstraction, including initialization module, parameter configuration module, data transmit-receive module and message road
By distribution module, initialization module carries out hardware driving initialization and hardware abstraction layer internal initialization;Parameter configuration module root
According to the corresponding waveform scheme of external DSP waveform components, obtains LD-PD mapping parameters and LD- call back function in hardware abstraction layer and reflect
Parameter is penetrated, data transmit-receive module provides the data transceiver interface of standard to external DSP waveform components, it is hard to coordinate and manage entire DSP
Part level of abstraction data transmit-receive process, message routing distribution module encapsulate hardware abstraction layer message and are reflected according to built-in LD-PD
Firing table and LD- call back function mapping table carry out the route distribution of hardware abstraction layer message.Entire DSP hardware level of abstraction, provides
There is the unified interface interacted with outer DSP waveform components, it can be real based on LD-PD mapping table and LD- call back function mapping table
The accurate reception and transmission of existing hardware abstraction layer message, support to communicate between different DSP waveform components, can be obviously improved DSP
Waveform components are portable.
In addition, the application also provides a kind of dsp processor, including DSP waveform components, the DSP hardware level of abstraction and
Bottom hardware driving, the DSP waveform components are connect with the DSP hardware level of abstraction, the DSP hardware level of abstraction and the bottom
Layer hardware driving connection.
Above-mentioned dsp processor, including DSP waveform components, the DSP hardware level of abstraction and bottom hardware driving, hardware
Level of abstraction is provided with the unified interface interacted with outer DSP waveform components, can adjust back letter based on LD-PD mapping table and LD-
Number mapping table is realized the accurate reception of hardware abstraction layer message and is sent, and supports to communicate between different DSP waveform components.
Detailed description of the invention
Fig. 1 is traditional DSP hardware level of abstraction and the application DSP hardware level of abstraction application scenarios contrast schematic diagram;
Fig. 2 is the application DSP hardware level of abstraction configuration diagram in one embodiment;
Fig. 3 is the processing flow schematic diagram of parameter configuration module in one embodiment;
Fig. 4 is the application DSP hardware level of abstraction message sending process schematic diagram in one embodiment;
Fig. 5 is that the application DSP hardware level of abstraction message receives flow diagram in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
It, below will needle first for the technical solution and effect of more detailed description the application DSP hardware level of abstraction
Some this field routine techniques are introduced.
As shown in fig. 1 on the left-hand side, waveform components 1 and waveform components 2 pass through the two to the interaction of routine DSP waveform components in this field
Between self defined interface communicated, which is only applicable to waveform components 1 and waveform components 2, when replacing with other
When waveform components, it can not support to communicate.Shown on the right side of Fig. 1, the application DSP hardware level of abstraction provides unified, standard connect
Data interaction is carried out between mouth and waveform components, and routing function is provided, supports to communicate between different wave component, significantly mention
It is portable to rise DSP waveform components.
As shown in Fig. 2, the application specifically provides a kind of DSP hardware level of abstraction, including initialization module 100, parameter configuration
Module 200, data transmit-receive module 300 and message routing distribution module 400.
Initialization module 100 is for carrying out hardware driving initialization and hardware abstraction layer internal initialization;Parameter configuration mould
Block 200 is used to obtain hardware abstraction layer configuration parameter, configuration parameter packet according to the corresponding waveform scheme of external DSP waveform components
Include LD-PD mapping parameters and LD- call back function mapping parameters;Data transmit-receive module 300 is used to provide external DSP waveform components
The data transceiver interface of standard;Message routing distribution module 400 is for encapsulating hardware abstraction layer message and according to built-in LD-
PD mapping table and LD- call back function mapping table carry out the route distribution of hardware abstraction layer message, and LD-PD mapping table is by LD-PD
Mapping parameters configuration, LD- call back function mapping table are configured by LD- call back function mapping parameters.
Initialization module 100 is used as a supporting module, is not directly connected to other modules, and it is initial to carry out hardware driving
Change the process with hardware abstraction layer internal initialization specifically: mhalInit function is externally provided and is called for waveform components, hardware
For carrying out initial work to bottom transmission hardware interface, hardware abstraction layer internal initialization is then creation for driving initialization
Listening thread and associated synch signal amount inside DSP hardware level of abstraction, for receiving the hardware abstraction from bottom layer driving
Layer message.
Parameter configuration module 200 is connect with outside DSP waveform components and message routing distribution module 400, is received outer
The waveform scheme of portion's DSP waveform components write-in, and being obtained from waveform scheme by built-in function includes LD-PD mapping parameters
With the data including LD- call back function mapping parameters, the LD-PD mapping parameters that will acquire and LD- call back function mapping parameters are more
New write-in is into message routing distribution module 400.Specifically, 200 function of parameter configuration module is realized to hardware abstraction layer
The flexible configuration of parameter, hardware abstraction layer parameter mainly include LD-PD mapping parameters and LD- call back function mapping parameters.In reality
In the application of border, parameter configuration module 200 externally provides configLDMap function and registerLocalLD function, DSP waveform
Component calls configLDMap function and registerLocalLD function to realize to LD- respectively according to current operation waveform scheme
The write-in and configuration of PD mapping parameters and LD- call back function mapping table parameter.
Data transmit-receive module 300 is connect with DSP waveform components and message data transceiver module 300, and function is to DSP
Waveform components provide the standard interface of data transmit-receive, shield specific data transmission procedure.Specifically, data transmit-receive module
300 can built-in mhalWrite function, when DSP waveform components need to send data, DSP waveform components only need to call
MhalWrite function, and be passed to specified parameter and the sending function of data can be completed;Meanwhile when hardware abstraction layer receives
When external module data, it need to only call corresponding call back function that the receive capabilities of data can be completed.
Message routing distribution module 400 and bottom hardware in parameter configuration module 200, data transmit-receive module 300 and DSP
It is drivingly connected.Message routing distribution module 400 mainly realizes that the encapsulation of hardware abstraction layer message and built-in maintenance have LD-PD mapping
Table and LD- call back function mapping table realize the route distribution function of hardware abstraction layer message.
For 4 functions mentioned above, under further illustrating herein.Above-mentioned 4 functions include mhalInit letter
Number, mhalWrite function, configLDMap function and registerLocalLD function.MhalInit function: the function is complete
At the basic function of initializing of hardware abstraction layer, grammer uses int mhalInit (), printenv, and return value is that -1 mark is lost
It loses, return value indicates successfully for 0.MhalWrite function: the function realizes DSP hardware level of abstraction for upper waveform component call
Data sending function, grammer are void mhalWrite (unsigned short remoteLD, MhalByte*msgBuf),
Including remoteLD: purpose component logic address and msgBuf: address data memory parameter to be sent, no return value;
ConfigLDMap function: logical address is mapped to waveform shared drive by the function, and which of memory mapping be waveform components know
Part is allocated to waveform, and grammer is void configLDMap (unsigned short remoteLD, unsigned
Int remotePD), including remoteLD: remote component logical address and remotePD: remote component is corresponding shared interior
Deposit address, no return value;RegisterLocalLD function: the logical address of local waveform components is mapped to readjustment by the function
Function, and this mapping relations are registered to hardware abstraction layer, grammer is void registerLocalLD (unsigned
Short localLD, mhalFunPtr callbackFnx), including localLD: local component logical address and
CallbackFnx: the corresponding call back function pointer parameter of local component logical address, no return value.
Above-mentioned DSP hardware level of abstraction, including initialization module 100, parameter configuration module 200, data transmit-receive module 300 with
And message routing distribution module 400, initialization module 100 carry out hardware driving initialization and hardware abstraction layer internal initialization;
Parameter configuration module 200 obtains LD-PD mapping ginseng in hardware abstraction layer according to the corresponding waveform scheme of external DSP waveform components
Several and LD- call back function mapping parameters, the data transmit-receive that 300 pairs of data transmit-receive module external DSP waveform components provide standard connect
Mouthful, entire DSP hardware level of abstraction data transmit-receive process is coordinated and managed, message routing distribution module 400 encapsulates hardware abstraction layer report
Text and the route distribution that hardware abstraction layer message is carried out according to built-in LD-PD mapping table and LD- call back function mapping table.
Entire DSP hardware level of abstraction, is provided with unified interface interact with outer DSP waveform components, can be based on LD-PD mapping table with
And LD- call back function mapping table is realized the accurate reception of hardware abstraction layer message and is sent, and supports between different DSP waveform components
It is portable can be obviously improved DSP waveform components for communication.
Parameter configuration module 200 is also used to that configLDMap function is called to read external in one of the embodiments,
The Waveform Design protocol of DSP waveform components write-in, the LD value that gets parms and parameter PD value, judge whether there is parameter LD
It is worth corresponding LD-PD mapping parameters, if so, parameter LD value and parameter PD value are updated to LD-PD mapping parameters, if it is not,
It then increases the list item for storing parameter LD value and parameter PD value newly, and newly-increased list item is updated to LD-PD mapping parameters.
Fig. 3 is parameter configuration module 200 to DSP hardware level of abstraction Parameter Configuration process, and wherein parameter refers in particular to hardware abstraction
Layer completes additional information required for a data are transmitted, for example LD value and PD value, waveform components developer set according to waveform
Meter scheme predefines multinomial LD value and PD value and their corresponding relationship, and parameter configuration module 200 calls configLDMap
Interface reads parameter LD value and parameter PD value in the Waveform Design protocol of DSP waveform components write-in, judges to remember in history
It whether there is LD-PD mapping parameters corresponding with parameter LD value in record, if so, showing that current need to update mapping item, then will
Parameter LD value and parameter PD value are updated to LD-PD mapping parameters, if it is not, showing currently to need to increase a mapping item newly, then
It increases the list item for storing parameter LD value and parameter PD value newly, and newly-increased list item is updated to LD-PD mapping parameters.Parameter is matched
It sets module 200 and updated LD-PD mapping parameters is directed into message routing distribution module 400, to update message routing distribution
LD-PD mapping table in module 400.It should be pointed out that updated LD-PD mapping parameters can be directly complete for one
LD-PD mapping table, parameter configuration module 200 directly will be in the complete LD-PD mapping table replacement message routing distribution modules 400
Original LD-PD mapping table realizes parameter configuration.
Parameter configuration module 200 is also used to that configLDMap function is called to read external in one of the embodiments,
The Waveform Design protocol of DSP waveform components write-in, calls registerLocalLD function to get parms LD value and readjustment
Function judges whether there is the corresponding LD- call back function mapping parameters of parameter LD value, if so, by parameter LD value and readjustment
Function is updated to LD- call back function mapping parameters, if it is not, then increase the list item for storing parameter LD value and call back function newly,
And newly-increased list item is updated to LD- call back function mapping parameters.
Update and correspondence for LD- call back function mapping parameters are updated to LD- in message routing distribution module 400 and return
The process of letter of transfer number mapping table is similar with the treatment process of above-mentioned LD-PD mapping table, and details are not described herein.
Data transmit-receive module 300 calls built-in mhalWrite function in one of the embodiments, obtains external DSP wave
The incoming parameter of shape component, incoming parameter includes the logical address of message to be sent and purpose component, data transmit-receive module 300
Incoming parameter is sent to message routing distribution module 400;Message routing distribution module 400 inquires built-in LD-PD mapping table,
Judge with the presence or absence of PD corresponding with the logical address of purpose component in LD-PD mapping table, if so, by message to be sent write-in pair
PD is answered, if it is not, then inquire built-in LD- call back function mapping table, when being to exist and purpose component in LD- call back function mapping table
When logical address corresponds to call back function, corresponding call back function is called to send message to be sent.
The process that DSP hardware level of abstraction sends message is specific as shown in figure 4, data transmit-receive module 300 is built-in with
MhalWrite function obtains the incoming parameter of external DSP waveform components, and parameter includes message to be sent and purpose component
Incoming parameter is sent to message routing distribution module 400 by logical address, data transmit-receive module 300, and message routing distributes mould
Block 400 can carry out hardware abstraction layer message encapsulation operation, and message routing distribution module 400 inquires built-in LD-PD mapping first
Table judges whether there is PD corresponding with purpose component logic address, if so, illustrating that message to be sent is destined for long-range waveform
Component calls driving in the driving of DSP bottom hardware to write interface by the corresponding PD of message to be sent write-in, if it is not, then continuing in inquiry
LD- call back function mapping table is set, call back function corresponding with the logical address of purpose component is judged whether there is, if so, pending
Text of delivering newspaper is destined for local component, then can call directly corresponding call back function and send message to be sent to local component, if it is not,
It then inquires twice not successfully, shows that message to be sent is invalid packet, then abandon message to be sent.
Data transmit-receive module 300 is also used to carry out legitimate verification to incoming parameter in one of the embodiments, when
When being verified, incoming parameter is sent to message routing analysis module;Message routing distribution module 400 is also used to incoming
Parameter carry out hardware abstraction layer encapsulation.
In the present embodiment, data transmit-receive module 300 also carries out legitimate verification, it is ensured that valid data enters subsequent place
Reason.
Message routing distribution module 400 parses hardware for receiving hardware abstraction layer message in one of the embodiments,
Level of abstraction message, extraction logic address information and data inquire built-in LD- call back function mapping table, judge that LD- call back function reflects
With the presence or absence of the logical address respective function with extraction in firing table, if so, calling call back function to send data, if it is not, then
Built-in LD-PD mapping table is inquired to write data when there is PD corresponding with the logical address of extraction in LD-PD mapping table
Enter corresponding PD.
Initialization module 100 is also used to create the listening-in line inside DSP hardware level of abstraction in one of the embodiments,
Journey reads heading, determines the length of hardware abstraction layer message, taken out according to hardware when reading data by listening thread
As the length read of layer message takes complete hardware abstraction layer message, complete hardware abstraction layer message is sent to message routing point
Send out module 400.
As shown in figure 5, Fig. 5 is DSP hardware level of abstraction message receive process, the creation of initialization module 100 has listening thread
(may refer to Fig. 2) reads hardware abstraction layer header first, determines hardware when reading data by listening thread
The length of level of abstraction message takes complete hardware abstraction layer message according to the length read of hardware abstraction layer message, will be completely hard
Part level of abstraction message is sent to message routing distribution module 400.Message routing distribution module 400 is to hardware abstraction layer message solution
Analysis, extraction logic address LD information and data are inquired built-in LD- call back function mapping table, are judged in LD- call back function mapping table
It is called back with the presence or absence of the logical address respective function with extraction if so, showing that data are sent to local component
Letter of transfer number sends data to local component, if it is not, then inquiring built-in LD-PD mapping table, judges to whether there is in LD-PD mapping table
PD corresponding with the logical address of extraction, if so, illustrating that the message is that DSP hardware level of abstraction is needed to be forwarded to other processing
The message of device writes direct the corresponding physical address of PD, if it is not, then show the message received be it is invalid, discarding receives
Message.
In addition, the application also provides a kind of dsp processor, including DSP waveform components, DSP hardware level of abstraction and bottom
Hardware driving, DSP waveform components are connect with DSP hardware level of abstraction, and DSP hardware level of abstraction and bottom hardware are drivingly connected.
Above-mentioned dsp processor, including DSP waveform components, DSP hardware level of abstraction and bottom hardware driving, hardware abstraction
Layer is provided with the unified interface interacted with outer DSP waveform components, can be reflected based on LD-PD mapping table and LD- call back function
Firing table is realized the accurate reception of hardware abstraction layer message and is sent, and supports to communicate between different DSP waveform components.
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of DSP hardware level of abstraction, which is characterized in that including initialization module, parameter configuration module, data transmit-receive module with
And message routing distribution module;
The initialization module is for carrying out hardware driving initialization and hardware abstraction layer internal initialization;
The parameter configuration module is used to obtain hardware abstraction layer configuration according to the corresponding waveform scheme of external DSP waveform components
Parameter, configuration parameter include LD-PD mapping parameters and LD- call back function mapping parameters;
The data transmit-receive module is used to provide the data transceiver interface of standard to the external DSP waveform components;
The message routing distribution module be used to encapsulate hardware abstraction layer message and according to built-in LD-PD mapping table and
LD- call back function mapping table carries out the route distribution of hardware abstraction layer message, and the LD-PD mapping table is mapped by the LD-PD
Parameter configuration, the LD- call back function mapping table are configured by the LD- call back function mapping parameters.
2. DSP hardware level of abstraction according to claim 1, which is characterized in that the initialization module is built-in with for institute
The mhalInit function that external DSP waveform components are called is stated, the initialization module is also used to at the beginning of bottom hardware interface in DSP
Listening thread and associated synch signal amount inside beginningization and creation DSP hardware level of abstraction, carry out bottom hardware in DSP to receive
The hardware abstraction layer message of driving.
3. DSP hardware level of abstraction according to claim 1, which is characterized in that built in the parameter configuration module
ConfigLDMap function and registerLocalLD function, the external DSP waveform components call the configLDMap letter
The several and registerLocalLD function, is written the LD-PD mapping parameters and LD- call back function mapping parameters.
4. DSP hardware level of abstraction according to claim 3, which is characterized in that the parameter configuration module is also used to call
ConfigLDMap function reads the Waveform Design protocol of the external DSP waveform components write-in, the LD value that gets parms and
Parameter PD value judges whether there is the corresponding LD-PD mapping parameters of the parameter LD value, if so, by the parameter LD value with
And the parameter PD value is updated to the LD-PD mapping parameters, if it is not, then increasing newly for storing the parameter LD value and described
The list item of parameter PD value, and newly-increased list item is updated to the LD-PD mapping parameters.
5. DSP hardware level of abstraction according to claim 3, which is characterized in that the parameter configuration module is also used to call
ConfigLDMap function reads the Waveform Design protocol of the external DSP waveform components write-in, described in calling
RegisterLocalLD function gets parms LD value and call back function, judges whether there is the corresponding LD- of the parameter LD value
Call back function mapping parameters reflect if so, the parameter LD value and the call back function are updated to the LD- call back function
Parameter is penetrated, if it is not, then increasing the list item for storing the parameter LD value and the call back function newly, and newly-increased list item is updated
To the LD- call back function mapping parameters.
6. DSP hardware level of abstraction according to claim 1, which is characterized in that built in the data transmit-receive module calls
MhalWrite function obtains the incoming parameter of the external DSP waveform components, and the incoming parameter includes message to be sent
With the logical address of purpose component, the incoming parameter is sent to the message routing and distributes mould by the data transmit-receive module
Block;The message routing distribution module inquires built-in LD-PD mapping table, judges to whether there is and institute in the LD-PD mapping table
The logical address for stating purpose component corresponds to PD, if so, the corresponding PD is written in the message to be sent, if it is not, then inquiring
Built-in LD- call back function mapping table, when being logical address in the presence of with the purpose component in the LD- call back function mapping table
When corresponding call back function, the corresponding call back function is called to send the message to be sent.
7. DSP hardware level of abstraction according to claim 6, which is characterized in that the data transmit-receive module is also used to institute
It states incoming parameter and carries out legitimate verification, when being verified, the incoming parameter is sent to the message routing point
Analyse module;The message routing distribution module is also used to carry out hardware abstraction layer encapsulation to the incoming parameter.
8. DSP hardware level of abstraction according to claim 1, which is characterized in that the message routing distribution module is for connecing
Hardware abstraction layer message is received, the hardware abstraction layer message, extraction logic address information and data are parsed, is inquired built-in described
LD- call back function mapping table judges in the LD- call back function mapping table with the presence or absence of the logical address with extraction
Respective function, if so, the call back function is called to send the data, if it is not, the built-in LD-PD mapping table is then inquired, when
It, will be described in the data write-in when there is PD corresponding with the logical address of the extraction in the LD-PD mapping table
Corresponding PD.
9. DSP hardware level of abstraction according to claim 8, which is characterized in that the initialization module is also used to create DSP
Listening thread inside hardware abstraction layer reads heading when reading data by the listening thread, determines that hardware is taken out
As the length of layer message, complete hardware abstraction layer message is taken according to the length read of the hardware abstraction layer message, it will be described complete
Whole hardware abstraction layer message is sent to the message routing distribution module.
10. a kind of dsp processor, which is characterized in that including DSP hardware described in DSP waveform components, above-mentioned 1-9 any one
Level of abstraction and bottom hardware driving, the DSP waveform components are connect with the DSP hardware level of abstraction, and the DSP hardware is abstract
Layer is drivingly connected with the bottom hardware.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910352714.1A CN110109848B (en) | 2019-04-29 | 2019-04-29 | DSP hardware abstraction layer and DSP processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910352714.1A CN110109848B (en) | 2019-04-29 | 2019-04-29 | DSP hardware abstraction layer and DSP processor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110109848A true CN110109848A (en) | 2019-08-09 |
CN110109848B CN110109848B (en) | 2021-10-15 |
Family
ID=67487314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910352714.1A Active CN110109848B (en) | 2019-04-29 | 2019-04-29 | DSP hardware abstraction layer and DSP processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110109848B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110932737A (en) * | 2019-11-01 | 2020-03-27 | 中国人民解放军国防科技大学 | SCA waveform assembly combination and deployment method |
CN112799631A (en) * | 2021-01-22 | 2021-05-14 | 中汽创智科技有限公司 | Optimization system and optimization method for controlling DSP (digital signal processor) on android system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5506832A (en) * | 1993-11-24 | 1996-04-09 | Intel Corporation | Remote confidence testing for computer-based conferencing system |
CN1558828A (en) * | 2001-08-06 | 2004-12-29 | ��������³���о�����˾ | Image printing apparatus including a microcontroller |
US8174759B2 (en) * | 2008-06-19 | 2012-05-08 | Srikanth Ramakrishnan | Apparatus for gain control in optical amplifiers |
CN103617021A (en) * | 2013-12-03 | 2014-03-05 | 中国航空无线电电子研究所 | Communication system and method of hardware abstraction layer of universal processor in software communication system structure |
CN108762815A (en) * | 2018-05-16 | 2018-11-06 | 北京麟卓信息科技有限公司 | A kind of Android running environment implementation methods based on non-virtualized architectural framework |
CN108984324A (en) * | 2018-07-18 | 2018-12-11 | 湖南理工学院 | FPGA hardware level of abstraction |
CN109558367A (en) * | 2019-01-10 | 2019-04-02 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Multibus processor MHAL method for routing |
-
2019
- 2019-04-29 CN CN201910352714.1A patent/CN110109848B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5506832A (en) * | 1993-11-24 | 1996-04-09 | Intel Corporation | Remote confidence testing for computer-based conferencing system |
CN1558828A (en) * | 2001-08-06 | 2004-12-29 | ��������³���о�����˾ | Image printing apparatus including a microcontroller |
US8174759B2 (en) * | 2008-06-19 | 2012-05-08 | Srikanth Ramakrishnan | Apparatus for gain control in optical amplifiers |
CN103617021A (en) * | 2013-12-03 | 2014-03-05 | 中国航空无线电电子研究所 | Communication system and method of hardware abstraction layer of universal processor in software communication system structure |
CN108762815A (en) * | 2018-05-16 | 2018-11-06 | 北京麟卓信息科技有限公司 | A kind of Android running environment implementation methods based on non-virtualized architectural framework |
CN108984324A (en) * | 2018-07-18 | 2018-12-11 | 湖南理工学院 | FPGA hardware level of abstraction |
CN109558367A (en) * | 2019-01-10 | 2019-04-02 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Multibus processor MHAL method for routing |
Non-Patent Citations (2)
Title |
---|
王彦刚 等: ""基于SCA规范的硬件抽象层应用程序接口分析"", 《计算机应用》 * |
赵建波: ""基于软件无线电的DSP硬件抽象层设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技缉》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110932737A (en) * | 2019-11-01 | 2020-03-27 | 中国人民解放军国防科技大学 | SCA waveform assembly combination and deployment method |
CN112799631A (en) * | 2021-01-22 | 2021-05-14 | 中汽创智科技有限公司 | Optimization system and optimization method for controlling DSP (digital signal processor) on android system |
CN112799631B (en) * | 2021-01-22 | 2024-03-22 | 中汽创智科技有限公司 | Optimizing system and optimizing method for controlling DSP (digital Signal processor) on android system |
Also Published As
Publication number | Publication date |
---|---|
CN110109848B (en) | 2021-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110109848A (en) | DSP hardware level of abstraction and dsp processor | |
US20040266382A1 (en) | Method for wireless data interchange between circuit units within a package, and circuit arrangement for performing the method | |
US9454682B2 (en) | Near field communication reader device, near field communication tag device, near field communication system and near field communication method | |
CN113287329B (en) | Data transmission method and device | |
CN106487549A (en) | With the method communicated nothing central processing unit veneer and communication apparatus | |
US8472420B2 (en) | Gateway device | |
CN103686848A (en) | Method, gateway, platform and system for processing messages of family Internet of Things | |
US20200293318A1 (en) | Buffer Allocation with Memory-based Configuration | |
CN106899327A (en) | The method and apparatus of data transfer | |
CN108075943A (en) | Test packet building method and device | |
CN101901199B (en) | Method and system for data transparent transmission | |
CN114124332A (en) | Method and apparatus for activating or deactivating sounding signal resources | |
CN113220607A (en) | Data processing method based on FIFO | |
US20040214586A1 (en) | Network interworking through message translation | |
CN109272576A (en) | A kind of data processing method, MEC server, terminal device and device | |
CN101795231B (en) | Method and device for realizing protocol message transmission | |
CN109981701A (en) | Transmitting method, transparent transmission system and proxy server | |
EP2437447A1 (en) | Multimedia message forwarding method, device and system thereof | |
CN116450563A (en) | Message receiving device and processor communication system | |
CN113875162B (en) | Data exchange device between NFC reader and double-NFC interface responder | |
CN108984324A (en) | FPGA hardware level of abstraction | |
WO2022172837A1 (en) | Communication device, communication system, and communication method | |
CN113177014B (en) | Serial port communication method and serial port chip based on inspection mode | |
CN100364346C (en) | An implementing method for sending short message via short number of handset | |
CN106330787B (en) | Data packet transmission method, equipment and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |