<< Chapter < Page Chapter >> Page >

There are two types of internal memory on the TI TMS320C549 DSP: SARAM (Single Access RAM) and DARAM (Dual AccessRAM). The first 8K of internal memory is DARAM; the next 24K is SARAM. The difference between these two types of memory isthat while SARAM can only be read or written once in a cycle, DARAM can be read or written twice in a cycle. This isrelevant because the TMS320C549 DSP core can access memory up to three times in each cycle: two accesses in Data RAM to reador write operands, and one access in Program RAM to fetch the next instruction. Both DARAM and SARAM are divided into"pages"; access to memory located in different "pages" will never conflict. If, however, two operands are fetched from thesame "page" of SARAM (which is divided into 8K word pages: 2000h - 3FFFh , 4000h - 5FFFFh , and 6000h - 7FFFh ) in the same cycle, a one-cycle stall will occur while the second memory location isaccessed. Due to the pipeline, two memory accesses in the same instruction execute in different cycles. However, if twosuccessive instructions access the same area of SARAM, a stall can occur.

Part of the SARAM (from 6000h to 7FFFh ) is used for storing your program code; a small amount of SARAM below 6000h is also used for storing the DSP's stack. Part of the DARAM (from 0800h to 0FFFh ) is used for the input and output buffers and is also unavailable. Ensure thatany code you write does not use any of these reserved sections of data memory. In addition, the core file reserves sixlocations in scratch-pad RAM ( 060h to 065h ); do not use these locations in your program code.

Sections and the linker

You can use the .text directive to declare program code, and the .data directive to declare data. However, there are many more sections defined by thelinker control file. Note that the core file uses memory in some of these sections.

You can place program code in the following sections using the .sect directive:

  • .text : ( .sect ".text" ) SARAM between 6000h and 7FFFh (8192 words)
  • .etext : ( .sect ".etext" ) External RAM between 8000h and FEFFh (32,512 words) The test-vector version of the DSP core stores the test vectors in the .etext section.
You can place data in the following sections:
  • .data : ( .sect ".data" ) DARAM between 1000h and 1FFFh (4096 words)
  • .sdata : ( .sect ".sdata" ) SARAM between 2000h and 5EFFh (16,128 words)
  • .ldata : ( .sect ".ldata" ) DARAM between 0080h and 07FFh (1,920 words)
  • .scratch : ( .sect ".scratch" ) Scratchpad RAM between 0060h and 007Fh (32 words)
  • .edata : ( .sect ".edata" ) External RAM between 8000h and FFFFh (32,768 words) (Requires special initialization; if you need to use thismemory, load and run the thru6.asm application before you load your application to initialize the EVM properly.)
If you always use these sections to allocate data storage regions instead of setting pointers to arbitrary locations inmemory, you will greatly reduce the chances of overwriting your program code or important data stored at other locationsin memory. However, the linker cannot prevent your pointers from being incremented past the end of the memory areas youhave allocated.

Questions & Answers

how to create a software using Android phone
Wiseman Reply
how
basra
what is the difference between C and C++.
Yan Reply
what is software
Sami Reply
software is a instructions like programs
Shambhu
what is the difference between C and C++.
Yan
yes, how?
Hayder
what is software engineering
Ahmad
software engineering is a the branch of computer science deals with the design,development, testing and maintenance of software applications.
Hayder
who is best bw software engineering and cyber security
Ahmad
Both software engineering and cybersecurity offer exciting career prospects, but your choice ultimately depends on your interests and skills. If you enjoy problem-solving, programming, and designing software syste
Hayder
what's software processes
Ntege Reply
I haven't started reading yet. by device (hardware) or for improving design Lol? Here. Requirement, Design, Implementation, Verification, Maintenance.
Vernon
I can give you a more valid answer by 5:00 By the way gm.
Vernon
it is all about designing,developing, testing, implementing and maintaining of software systems.
Ehenew
hello assalamualaikum
Sami
My name M Sami I m 2nd year student
Sami
what is the specific IDE for flutter programs?
Mwami Reply
jegudgdtgd my Name my Name is M and I have been talking about iey my papa john's university of washington post I tagged I will be in
Mwaqas Reply
yes
usman
how disign photo
atul Reply
hlo
Navya
hi
Michael
yes
Subhan
Show the necessary steps with description in resource monitoring process (CPU,memory,disk and network)
samuel Reply
What is software engineering
Tafadzwa Reply
Software engineering is a branch of computer science directed to writing programs to develop Softwares that can drive or enable the functionality of some hardwares like phone , automobile and others
kelvin
if any requirement engineer is gathering requirements from client and after getting he/she Analyze them this process is called
Alqa Reply
The following text is encoded in base 64. Ik5ldmVyIHRydXN0IGEgY29tcHV0ZXIgeW91IGNhbid0IHRocm93IG91dCBhIHdpbmRvdyIgLSBTdGV2ZSBXb3puaWFr Decode it, and paste the decoded text here
Julian Reply
what to do you mean
Vincent
hello
ALI
how are you ?
ALI
What is the command to list the contents of a directory in Unix and Unix-like operating systems
George Reply
how can i make my own software free of cost
Faizan Reply
like how
usman
hi
Hayder
The name of the author of our software engineering book is Ian Sommerville.
Doha Reply
what is software
Sampson Reply
the set of intruction given to the computer to perform a task
Noor
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Dsp laboratory with ti tms320c54x. OpenStax CNX. Jan 22, 2004 Download for free at http://cnx.org/content/col10078/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Dsp laboratory with ti tms320c54x' conversation and receive update notifications?

Ask