亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? example 3-15.asm

?? 《基于TI DSP的通用算法實現》程序代碼
?? ASM
?? 第 1 頁 / 共 2 頁
字號:

;Example 3 - 15. FFT Implementation of a 2N Real Sequence Based on Data-Packing Method for TMS320C54x	

* Appendix A Main.inc


* Filename: Main.inc
* Includes all the constants that are used in the entire application

	K_0 		.set 0 ; constant
	K_FIR_INDEX 	.set 1 ; index count
	K_FIR_BFFR 	.set 16 ; FIR buffer size
	K_neg1 		.set –1h ; index count
	K_BIQUAD 	.set 2 ; there are 2 bi-quad sections
	K_IIR_SIZE 	.set 10 ; each bi-quad has 5 coeffs
	K_STACK_SIZE 	.set 200 ; stack size
	K_FRAME_SIZE 	.set 256 ; PING/PONG buffer size
	K_FRAME_FLAG 	.set 1 ; set after 256 collected
	H_FILT_SIZE 	.set 128 ; H(z) filter size
	ADPT_FILT_SIZE 	.set 128 ; W(z) filter size
	K_mu 		.set 0h ; initial step constant
	K_HOST_FLAG 	.set 1 ; Enable EVM_HOST interface
	K_DEFAULT_AC01 	.set 1h ; default AC01 init   
	
* This include file sets the FFT size for the ’54x Real FFT code
* Note that the Real FFT size (i.e. the number of points in the
* original real input sequence) is 2N; whereas the FFT size is
* the number of complex points formed by packing the real inputs,
* which is N. For example, for a 256-pt Real FFT, K_FFT_SIZE
* should be set to 128 and K_LOGN should be set to 7.

	K_FFT_SIZE 	.set 128 ; # of complex points (=N)
	K_LOGN 		.set 7 ; # of stages (=logN/log2)
	K_ZERO_BK 	.set 0
	K_TWID_TBL_SIZE .set 128 ; Twiddle table size
	K_DATA_IDX_1 	.set 2 ; Data index for Stage 1
	K_DATA_IDX_2 	.set 4 ; Data index for Stage 2
	K_DATA_IDX_3 	.set 8 ; Data index for Stage 3
	K_FLY_COUNT_3 	.set 4 ; Butterfly counter for Stage 3
	K_TWID_IDX_3 	.set 32 ; Twiddle index for Stage 3


; Appendix B FFT Example Code

; B.1 256-Point Real FFT Initialization

; TEXAS INSTRUMENTS INCORPORATED
; DSP Data Communication System Development / ASP
;
; Archives: PVCS
; Filename: rfft.asm
; Version: 1.0
; Status : draft ( )
; proposal (X)
; accepted ( ) dd–mm–yy/?acceptor.
;
; AUTHOR Simon Lau and Nathan Baltz
;
; Application Specific Products
; Data Communication System Development
; 12203 SW Freeway, MS 701
; Stafford, TX 77477
;{
; IPR statements description (can be collected).
;}
;(C) Copyright 1996. Texas Instruments. All rights reserved.
;
;{
; Change history:
;
; VERSION DATE / AUTHORS COMMENT
; 1.0 July–17–96 / Simon & Nathan original created
;
;}
;{
; 1. ABSTRACT
;
; 1.1 Function Type
; a.Core Routine
; b.Subroutine
;
; 1.2 Functional Description
; This file contains core routine:
; rfft
;
; 1.3 Specification/Design Reference (optional)
;
; 1.4 Module Test Document Reference
; Not done
;
; 1.5 Compilation Information
; Compiler: TMS320C54X ASSEMBLER
; Version: 1.02 (PC)
; Activation: asm500 –s rfft.asm
;
; 1.6 Notes and Special Considerations
; –
;}
;{
; 2. VOCABULARY
;
; 2.1 Definition of Special Words, Keywords (optional)
; –
; 2.2 Local Compiler Flags
; –
; 2.3 Local Constants
; –
;}
;{
; 3. EXTERNAL RESOURCES
;
; 3.1 Include Files

	.mmregs
	.include ”main.inc”
	.include ”init_54x.inc”
; 3.2 External Data
	.ref bit_rev, fft, unpack
	.ref power
	.ref sine,cosine
	.ref sine_table,cos_table
	
; 3.3 Import Functions
;}
;{
; 4. INTERNAL RESOURCES
;
; 4.1 Local Static Data
; –
; 4.2 Global Static Data
; –
; 4.3 Dynamic Data
; –
; 4.4 Temporary Data
; –
; 4.5 Export Functions
.def rfft_task
;}
; 5. SUBROUTINE CODE
; HeaderBegin
;==============================================================================
;
;–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
; 5.1 rfft
;
; 5.2 Functional Description
; The following code implements a Radix–2, DIT, 2N–point Real FFT for the
; TMS320C54x. This main program makes four function calls, each
; corresponds to a different phase of the algorithm. For more details about
; how each phase is implemented, see bit_rev.asm, fft.asm, unpack.asm, and
; power.asm assembly files.
;–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
;
; 5.3 Activation
; Activation example:
; CALL rfft
; Reentrancy: No
; Recursive : No
; 5.4 Inputs
; NONE
; 5.5 Outputs
; NONE
;
; 5.6 Global
;
; Data structure: AR1
SPRA669
TMS320C54x Digital Filters 29
; Data Format: 16–bit pointer
; Modified: No
; Description: used for moving the twiddle tables from
; program to data
;
; 5.7 Special considerations for data structure
; –
; 5.8 Entry and Exit conditions
;
; |DP|OVM|SXM|C16|FRCT|ASM|AR0|AR1|AR2|AR3|AR4|AR5|AR6|AR7|A |B |BK|BRC| T|TRN
; | | | | | | | | | | | | | | | | | | | |
;in |U | 1 | 1 |NU | 1 |NU |NU |NU |NU |NU |NU |NU |NU |NU |NU|NU|NU|NU |NU|NU
; | | | | | | | | | | | | | | | | | | | |
;out|U | 1 | 1 |NU | 1 |U |NU |UM |NU |NU |NU |NU |NU |NU |NU|NU|NU|UM |NU|NU
;
; Note : UM – Used & Modified, U – Used, NU – Not Used
;
; 5.9 Execution
; Execution time: ?cycles
; Call rate: not applicable for this application
;
;==============================================================================
;HeaderEnd
; 5.10 Code
	.asg AR1,FFT_TWID_P
	.sect ”rfft_prg”
rfft_task:
	STM #sine,FFT_TWID_P
	RPT #K_FFT_SIZE–1 		; move FIR coeffs from program
	MVPD #sine_table,*FFT_TWID_P+ 	; to data
	STM #cosine,FFT_TWID_P
	RPT #K_FFT_SIZE–1 		; move FIR coeffs from program
	MVPD #cos_table,*FFT_TWID_P+ 	; to data
	CALL bit_rev
	CALL fft
	CALL unpack
	CALLD power
	STM #K_ST1,ST1 			; restore the original contents of
					; ST1 since ASM field has changed
	RET 				; return to main program
	.end



; B.2 Bit Reversal Routine
; TEXAS INSTRUMENTS INCORPORATED
; DSP Data Communication System Development / ASP ;
;
; Archives: PVCS
; Filename: bit_rev.asm
; Version: 1.0
; Status : draft ( )
; proposal (X)
; accepted ( ) dd–mm–yy/?acceptor.
;
; AUTHOR Simon Lau and Nathan Baltz
;
; Application Specific Products
; Data Communication System Development
; 12203 SW Freeway, MS 701
; Stafford, TX 77477
;{
; IPR statements description (can be collected).
;}
SPRA669
30 TMS320C54x Digital Filters
;(C) Copyright 1996. Texas Instruments. All rights reserved.
;
;{
; Change history:
;
; VERSION DATE / AUTHORS COMMENT
; 1.0 July–17–96 / Simon & Nathan original created
;
;}
;{
; 1. ABSTRACT
;
; 1.1 Function Type
; a.Core Routine
; b.Subroutine
;
; 1.2 Functional Description
; This file contains one subroutine:
; bit_rev
;
; 1.3 Specification/Design Reference (optional)
; called by rfft.asm depending upon the task thru CALA
;
; 1.4 Module Test Document Reference
; Not done
;
; 1.5 Compilation Information
; Compiler: TMS320C54X ASSEMBLER
; Version: 1.02 (PC)
; Activation: asm500 –s bit_rev.asm
;
; 1.6 Notes and Special Considerations
; –
;}
;{
; 2. VOCABULARY
;
; 2.1 Definition of Special Words, Keywords (optional)
; –
; 2.2 Local Compiler Flags
; –
; 2.3 Local Constants
; –
;}
;{
; 3. EXTERNAL RESOURCES
;
; 3.1 Include Files
.mmregs
.include ”main.inc”
; 3.2 External Data
.ref d_input_addr, fft_data
; 3.3 Import Functions
;}
;{
; 4. INTERNAL RESOURCES
;
; 4.1 Local Static Data
; –
; 4.2 Global Static Data
; –
; 4.3 Dynamic Data
; –
; 4.4 Temporary Data
; –
; 4.5 Export Functions
.def bit_rev
;}
; 5. SUBROUTINE CODE
; HeaderBegin
;==============================================================================
;
;––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
; 5.1 bit_rev
;
; 5.2 Functional Description
; This function is called from the main module of the ’C54x Real FFT code.
; It reorders the original 2N–point real input sequence by using
; bit–reversed addressing. This new sequence is stored into the data
; processing buffer of size 2N, where FFT will be performed in–place
; during Phase Two.
;
;––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––—
;
; 5.3 Activation
; Activation example:
; CALL bit_rev
; Reentrancy: No
; Recursive : No
;
; 5.4 Inputs
; NONE
; 5.5 Outputs
; NONE
;
; 5.6 Global
;
; Data structure: AR0
; Data Format: 16–bit index pointer
; Modified: No
; Description: used for bit reversed addressing
;
; Data structure: AR2
; Data Format: 16–bit pointer
; Modified: Yes
; Description: pointer to processed data in bit–reversed order
;
; Data structure: AR3
; Data Format: 16–bit pointer
; Modified: Yes
; Description: pointer to original input data in natural order
;
; Data structure: AR7
; Data Format: 16–bit pointer
; Modified: Yes
; Description: starting addressing of data processing buffer
;
; 5.7 Special considerations for data structure
; –
; 5.8 Entry and Exit conditions
;
; |DP|OVM|SXM|C16|FRCT|ASM|AR0|AR1|AR2|AR3|AR4|AR5|AR6|AR7|A |B |BK|BRC| T|TRN|
; | | | | | | | | | | | | | | | | | | | | |
;in |U | 1 | 1 |NU | 1 |NU |NU |NU |NU |NU |NU |NU |NU |NU |NU|NU|NU|NU |NU|NU |
; | | | | | | | | | | | | | | | | | | | | |
;out|U | 1 | 1 |NU | 1 |NU |UM |NU |UM |UM |NU |NU |NU |UM |NU|NU|NU|UM |NU|NU |
;
; Note : UM – Used & Modified, U – Used, NU – Not Used
;
; 5.9 Execution
; Execution time: ?cycles
; Call rate: not applicable for this application
;
;==============================================================================
;HeaderEnd
; 5.10 Code
	.asg AR2,REORDERED_DATA
	.asg AR3,ORIGINAL_INPUT
	.asg AR7,DATA_PROC_BUF
	.sect ”rfft_prg”
bit_rev:
	SSBX FRCT 				; fractional mode is on
	MVDK d_input_addr,ORIGINAL_INPUT 	; AR3 –> 1 st original input
	STM #fft_data,DATA_PROC_BUF 		; AR7 –> data processing buffer
	MVMM DATA_PROC_BUF,REORDERED_DATA 	; AR2 –> 1st bit–reversed data
	STM #K_FFT_SIZE–1,BRC
	RPTBD bit_rev_end–1
	STM #K_FFT_SIZE,AR0 			; AR0 = 1/2 size of circ buffer
	MVDD *ORIGINAL_INPUT+,*REORDERED_DATA+
	MVDD *ORIGINAL_INPUT–,*REORDERED_DATA+
	MAR *ORIGINAL_INPUT+0B
bit_rev_end:

	RET 					; return to Real FFT main module
	.end


; B.3 256-Point Real FFT Routine

; TEXAS INSTRUMENTS INCORPORATED
; DSP Data Communication System Development / ASP
;
; Archives: PVCS
; Filename: fft.asm
; Version: 1.0
; Status : draft ( )
; proposal (X)
; accepted ( ) dd–mm–yy/?acceptor.
;
; AUTHOR Simon Lau and Nathan Baltz
;
; Application Specific Products
; Data Communication System Development
; 12203 SW Freeway, MS 701
; Stafford, TX 77477
;{
; IPR statements description (can be collected).
;}
;(C) Copyright 1996. Texas Instruments. All rights reserved.
;
;{
; Change history:
;
; VERSION DATE / AUTHORS COMMENT
; 1.0 July–17–96 / Simon & Nathan original created
SPRA669
TMS320C54x Digital Filters 33
;
;}
;{
; 1. ABSTRACT
;
; 1.1 Function Type
; a.Core Routine
; b.Subroutine
;
; 1.2 Functional Description
; This file contains one subroutine:
; fft
;
; 1.3 Specification/Design Reference (optional)
; called by rfft.asm depending upon the task thru CALA
;
; 1.4 Module Test Document Reference
; Not done
;
; 1.5 Compilation Information
; Compiler: TMS320C54X ASSEMBLER
; Version: 1.02 (PC)
; Activation: asm500 –s fft.asm
;
; 1.6 Notes and Special Considerations
; –
;}
;{
; 2. VOCABULARY
;
; 2.1 Definition of Special Words, Keywords (optional)
; –
; 2.2 Local Compiler Flags
; –
; 2.3 Local Constants
; –
;}
;{
; 3. EXTERNAL RESOURCES
;
; 3.1 Include Files
.mmregs
.include ”main.inc”
; 3.2 External Data
.ref fft_data, d_grps_cnt, d_twid_idx, d_data_idx, sine, cosine
; 3.3 Import Functions
;}
;{
; 4. INTERNAL RESOURCES
;
; 4.1 Local Static Data
; –
; 4.2 Global Static Data
; –
; 4.3 Dynamic Data
; –
; 4.4 Temporary Data
; –
; 4.5 Export Functions
.def fft
;}
; 5. SUBROUTINE CODE
; HeaderBegin
SPRA669
34 TMS320C54x Digital Filters
;==============================================================================
;
;–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
; 5.1 fft
;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区激情在线| 久久国产视频网| 日韩视频免费观看高清完整版在线观看| 精品一区二区三区久久| 亚洲天堂av老司机| 精品久久久久一区二区国产| 91福利视频久久久久| 懂色一区二区三区免费观看| 亚洲va欧美va天堂v国产综合| 欧美国产日韩亚洲一区| 日韩欧美国产综合在线一区二区三区| 91电影在线观看| 波多野结衣中文一区| 精品一二三四区| 日韩**一区毛片| 亚洲风情在线资源站| 中文字幕制服丝袜一区二区三区 | 亚洲一二三区不卡| 国产精品久久久久久久久免费桃花| 日韩区在线观看| 欧美日本一区二区在线观看| 99re热视频精品| gogogo免费视频观看亚洲一| 国产真实乱偷精品视频免| 国产不卡视频在线播放| 国产乱对白刺激视频不卡| 美女被吸乳得到大胸91| 日韩国产在线一| 亚洲不卡在线观看| 亚洲制服欧美中文字幕中文字幕| 中文字幕中文字幕一区| 国产精品视频免费看| 亚洲国产精品av| 亚洲国产成人自拍| 国产精品每日更新在线播放网址| 亚洲国产精品高清| 日本一区二区三区国色天香| 国产蜜臀97一区二区三区| 久久精品一二三| 国产性色一区二区| 国产色婷婷亚洲99精品小说| 久久久久久久久久久久电影| 久久久久久久久久久久久夜| 久久日韩精品一区二区五区| 久久无码av三级| 欧美国产欧美亚州国产日韩mv天天看完整| 久久久久成人黄色影片| 久久精品一区二区三区av| 久久精品视频一区二区| 欧美国产成人精品| 136国产福利精品导航| 亚洲激情自拍偷拍| 亚洲国产一区二区视频| 日韩一区欧美二区| 国产一区三区三区| 成人自拍视频在线| 91浏览器打开| 欧美日产在线观看| 久久欧美一区二区| 国产精品国产a| 亚洲资源中文字幕| 另类中文字幕网| 高清成人在线观看| 欧美亚洲精品一区| 91精品国产综合久久精品性色 | 欧美日韩一区二区电影| 欧美一区二区大片| 欧美电视剧在线观看完整版| 中文字幕乱码久久午夜不卡| 亚洲色图制服诱惑| 日本va欧美va精品| 国产99久久久精品| 欧美性感一区二区三区| 久久综合久久鬼色| 亚洲免费在线电影| 免费美女久久99| 成av人片一区二区| 欧美老女人第四色| 国产三级久久久| 性做久久久久久免费观看| 国产中文一区二区三区| 色婷婷狠狠综合| 久久一留热品黄| 午夜精品一区二区三区三上悠亚 | 99这里只有精品| 欧美年轻男男videosbes| 精品999久久久| 亚洲伊人色欲综合网| 国产成人免费9x9x人网站视频| 欧美性猛片aaaaaaa做受| 久久人人超碰精品| 日韩精品电影在线观看| 97超碰欧美中文字幕| 日韩一区二区三区在线观看| 亚洲免费三区一区二区| 激情欧美一区二区三区在线观看| 91久久免费观看| 国产欧美日韩另类一区| 日韩和的一区二区| 91国偷自产一区二区开放时间 | 久久精品视频一区二区| 日韩成人精品在线观看| 一本一道综合狠狠老| 26uuu成人网一区二区三区| 亚洲aⅴ怡春院| av亚洲精华国产精华精华| 精品国内二区三区| 日韩高清不卡一区二区| 在线观看91视频| 最好看的中文字幕久久| 国产精品一区二区无线| 欧美一级欧美三级在线观看| 亚洲综合在线免费观看| 北条麻妃一区二区三区| 国产片一区二区三区| 精品一区二区精品| 欧美一二三四在线| 三级精品在线观看| 欧美主播一区二区三区美女| 亚洲精品一卡二卡| av午夜一区麻豆| 国产三级三级三级精品8ⅰ区| 捆绑调教美女网站视频一区| 在线成人av影院| 亚洲妇女屁股眼交7| 欧美中文一区二区三区| 一区二区三区在线不卡| 日本黄色一区二区| 一区二区三区不卡视频在线观看| 成人av小说网| 亚洲欧美色图小说| 在线亚洲欧美专区二区| 亚洲老司机在线| 91福利在线播放| 亚洲成在线观看| 7777精品伊人久久久大香线蕉完整版 | 综合电影一区二区三区| aa级大片欧美| 亚洲男同1069视频| 91久久久免费一区二区| 偷拍日韩校园综合在线| 在线91免费看| 另类小说图片综合网| 精品国产乱码久久久久久夜甘婷婷 | 久久美女高清视频| 国产成人免费av在线| 国产精品第五页| 在线视频一区二区三区| 亚洲午夜精品在线| 日韩精品专区在线| 国产大陆亚洲精品国产| 国产精品天美传媒沈樵| 色综合久久久久久久| 午夜欧美2019年伦理| 精品福利一区二区三区| 成人黄色网址在线观看| 亚洲激情一二三区| 欧美一区二区二区| 国产成人超碰人人澡人人澡| 亚洲欧美自拍偷拍色图| 欧美日韩精品系列| 黄色日韩三级电影| 成人免费一区二区三区在线观看| 在线精品观看国产| 毛片av一区二区| 中文字幕亚洲一区二区av在线| 在线中文字幕一区| 激情综合网av| 亚洲女同一区二区| 日韩欧美国产三级电影视频| 丁香六月综合激情| 亚洲成av人片在线| 国产片一区二区| 在线播放一区二区三区| 国产一区二区三区高清播放| 亚洲色图欧美偷拍| 日韩一区二区在线播放| aa级大片欧美| 久久精品99久久久| 国产精品成人免费精品自在线观看 | 亚洲制服丝袜一区| 国产三级欧美三级日产三级99| 在线观看一区不卡| 国产精品996| 亚洲成人免费视| 中文字幕不卡在线| 91精品国产一区二区人妖| 成人免费高清视频| 美女一区二区视频| 亚洲精选免费视频| 欧美激情综合在线| 91精品国产免费久久综合| 97精品国产露脸对白| 国产一区二三区| 日韩国产在线一| 玉米视频成人免费看| 国产精品毛片高清在线完整版| 日韩一级二级三级| 欧美亚洲丝袜传媒另类| av电影一区二区|