Application Development on Simulator DSP applications interact with external world through stimuli Interrupts Serial port clocks, frame synchronizations DSP Application DSP/BIOS CSL DMA CPU External Stimulus Peripheral Cache Developer Concerns Trigger an interrupt to INT10 at the 100th cycle Connect a 20Mhz clock to the McBSP0 transmit Pin Connect Simulate external stimuli on TI simulators Pin Connect Simulate external stimuli on TI simulators Stimulus description given in a data file ; Specify cycle counts 100, 200 300 +15 400 (+ 25 + 30) rpt 10 500 (+75) rpt EOS Pin Connect Simulate external stimuli on TI simulators Stimulus description given in a data file Data file connected to device pins INT1 ; Specify cycle counts INT2 400, 600 600 + 20 INT3 TMS320 Device … INTN … CLKR0 ; Specify cycle counts [0,0] ([+10,1] [+10,0]) rpt EOS Example DSP clock frequency is 100MHz It is required to trigger INT10 every 20us Interrupt has to be triggered every 2000 cycles Pin file input data format 0 (+2000) rpt EOS Connect the file to INT10 using Pin Connect Run the application External Stimuli Pulse type Interrupts Frame synchronization signals Wave type 1 0 External Clocks Data File Format – Pulse Type Simulate an event at a given cycle Absolute clock time E.g. 100, 200 – Events occur at cycles 100 200 100 200 Data File Format – Pulse Type Simulate an event at a given cycle Absolute clock time E.g. 100, 200 – Events occur at cycles 100 200 100 200 Simulate an event relative to a cycle Clock time and relative count E.g. 100 +35 +20 – Events occur at cycles 100 135(100 + 35) 155(135 + 20) 100 135 155 Data File Format – Pulse Type Simulate periodic events Relative time and repeat count E.g. E.g. 100 (+15) rpt 2 – Events occur at cycles 100 115 (100 + 15) 130 (115 + 15) 100 (+15) rpt EOS – Events occur at cycles 100 115 130 … till EOS(End Of Simulation) … 100 115 130 145 160 175 190 EOS Data File Format – Wave Type Drive a logic value at a given cycle Cycle count and the logic value E.g. [0,1] [100,0] [200,1] [250,0] – The pin goes High at cycle 0 low at 100 high at 200 low at 250 1 0 100 200 250 Data File Format – Wave Type Drive a logic value at a given cycle Cycle count and the logic value E.g. High at cycle 0 low at 100 high at 200 low at 250 [0,1] [100,0] [200,1] [250,0] – The pin goes 1 100 0 200 250 Simulate external clock Relative time,Value E.g. [0,0] ([+5,1] [+5,0]) rpt EOS – Drive 0 for 5 cycles and drive 1 for the next 5 cycles 1 5 cycles 0 5 cycles Example DSP Device speed - 150 MHz Connect a 7.5 MHz clock to the McBSP CLKX0 pin Example DSP Device speed - 150 MHz Connect a 7.5 MHz clock to the McBSP CLKX0 pin McBSP clock time interval = 150/7.5 = 20 Device cycles Example DSP Device speed - 150 MHz Connect a 7.5 MHz clock to the McBSP CLKX0 pin McBSP clock time interval = 150/7.5 = 20 Device cycles Clock is 0 for 10 cycles and 1 for 10 cycles Data format [0,0] ( [+10,1] [+10,0] ) rpt EOS Example Create a data file named clkx0.dat clkx0.dat [0,0] ( [+10,1] [+10,0] ) rpt EOS 1 10 cycles 0 10 cycles Example Example Example Example Summary DSP applications receive external stimuli Interrupts Synchronization signals External clock Pin connect Simulates external stimuli effectively Provides an easy way to describe the external stimuli