Semantic Signal Processing Group
SSP Re-hosting System Development: Modeling of C Programs and Waveforms
Fangming He, Hong ManDepartment of Electrical and Computer Engineering
Stevens Institute of Technology
Sept. 2, 2010
1
Semantic Signal Processing Group
Outline
C language Modeling for Cognitive Linguistics
Waveform Modeling (System Level) for Cognitive Linguistics
2
Waveform Layer
Coding Layer
Semantic Signal Processing Group
C language Modeling
3
2010 Spring 2010 Summer 2010 Fall
Variable Definition & Declaration *Function Definition *Condition Control:(If…else if … else, switch… case)
*
Loop Control(for, while) *Vector & Pointer *Recursive Function *Structure and Union
*
Memory Allocation *
Semantic Signal Processing Group
CL Representation---- for
• for(initiation; condition; loop control){
statement 1;
statement 2;
}
4
Initiation place condition cause statements & Loop control path statement place loop control place
Semantic Signal Processing Group 5
CL Representation ---- While
Semantic Signal Processing Group 6
CL Representation ---- Switch Case
switch ( states ) { case condition1 is true: statement 1; break; case condition2 is true: statement 2; break; case condition is true: statement 3; break; ... default: statement N;}
Semantic Signal Processing Group 7
CL Representation ---- Hierarchical Structure
<cause><path>
。。。。。。</path>
</cause>
<cause><path>
<cause><path>
。。。</path>
</cause><cause>
<path>。。。
</path></cause>
</path></cause>
Semantic Signal Processing Group
Waveform Modeling for CL (1)
8
PathEvery signal processing block can be expressed as a path.
ThingThe specific value of parameters in the signal processing block.
PlaceThe description of thing including the id, attributes and types of the thing.
ActionData flow control: the connection of different paths.
CauseConditions to trigger to enter some paths.
Semantic Signal Processing Group 9
Waveform Modeling for CL (2)
Semantic Signal Processing Group 10
Waveform Modeling for CL (3)
<action> <thing>random_source_x_0</thing> <thing>blks2_dxpsk_mod_0</thing> </action>
<action> <thing>blks2_dxpsk_mod_0</thing> <thing>gr_multiply_const_vxx_0</thing> </action>
<action> <thing>gr_multiply_const_vxx_0</thing> <thing>usrp2_sink_xxxx_0</thing> </action>
<action> <thing>usrp2_source_xxxx_0</thing> <thing>wxgui_constellationsink2_0</thing> </action>
Semantic Signal Processing Group 11
Waveform Modeling for CL (2)
Semantic Signal Processing Group 12
Waveform Modeling for CL (4)
<path name = "blks2_dxpsk_mod"> <place>id <thing>blks2_dxpsk_mod_0</thing> </place>
<place>_enabled <thing>True</thing> </place>
<place>type <thing>dqpsk</thing> </place>
<place>samples_per_symbol<thing>samps_per_sym</thing> </place>
<place>excess_bw <thing>0.35</thing> </place>
<place>gray_code<thing>True</thing> </place>
<place>_coordinate<thing>(468, 55)</thing> </place>
<place>_rotation<thing>0</thing> </place>
</path>