Zqreq
Zqreq
Zqreq
The C6713 DSK is a low-cost standalone development platform that enables users to
evaluate and develop applications for the TI C67xx DSP family. The DSK also serves
as a hardware reference design for the TMS320C6713 DSP. Schematics, logic
equations and application notes are available to ease hardware development and
reduce time to market.
LINE OUT
HP OUT
LINE IN
MIC IN
Memory Exp
32
McBSPs
AIC23 EMIF
MUX
SDRAM
CPLD
Flash
JP2 3.3V 6713
JTAG DSP
MUX
Voltage
Reg HPI
Embedded Peripheral Exp
JTAG
BOOTM 1
BOOTM 0
JP4 5V
ENDIAN
HPI_EN
Config
Ext. LED DIP
PWR
USB
SW3
JTAG 1 2 3 4 0123 0123
& %
1-6
' $
TMS320C6713 Architecture SPRS186B – DECEMBER 2001 – REVISED NOVEMBER 2002
32
EMIF L1P Cache
L2 Cache/
Direct Mapped
Memory
4K Bytes Total
4 Banks
McASP1 64K Bytes
Total
C67x CPU
McASP0 (up to
4-Way) Instruction Fetch Control
Registers
Instruction Dispatch
McBSP1 Control
Instruction Decode
Logic
Data Path A Data Path B
Test
McBSP0 A Register File B Register File
Pin Multiplexing
In-Circuit
Emulation
Enhanced Interrupt
I2C1 .L1† .S1† .M1† .D1 .D2 .M2† .S2† .L2†
DMA Control
Controller
PRODUCT PREVIEW
(16 channel)
I2C0 L2 L1D Cache
Memory 2-Way
192K Set Associative
Timer 1 Bytes 4K Bytes
Clock Generator,
Timer 0 Oscillator, and PLL Power-Down
x4 through x25 Multiplier Logic
/1 through /32 Dividers
GPIO
16
HPI
& %
SPRS186I, p. 12.
1-7
•
POST OFFICE BOX 1443 HOUSTON, TEXAS 77251–1443 11
' $
Main ’C6713 Features
• VelociTI Very Long Instruction Word
(VLIW) CPU Core
Fetches eight 32-bit instructions at once
– Eight Independent functional units
∗ Four ALUs (fixed and floating-point)
∗ Two ALUs (fixed-point)
∗ Two multipliers (fixed and
floating-point)
32 × 32 bit integer multiply with 32 or
64-bit result
– Load-store architecture with 32 32-bit
general purpose registers
• Instruction Set Features
– Hardware support for IEEE single and
double precision floating-point operations
– 8, 16, and 32-bit addressable
– 8-bit overflow protection and saturation
– Bit-field extract, set, clear; bit-counting;
normalization
& %
1-8
' $
& %
1-9
' $
& %
1-10
Instructions Common to C62x and C67x
See TMS320C6000 CPU and Instruction Set, Reference Guide, SPRU189F for
complete descriptions of instructions.
1-11
' $
See TMS320C6000 CPU and Instruction Set, Reference Guide, SPRU189F for
complete descriptions of instructions.
& %
1-12
' $
Addressing Modes
• Linear Addressing – with all registers
• Circular Addressing – with registers A4–A7
and B4–B7
C67x Family
Address Memory Type C6713DSK
0x00000000 Internal Memory Internal Memory
0x00030000 Reserved Space Reserved
or or
Peripheral Regs Peripheral
0x80000000 EMIF CE0 SDRAM
0x90000000 EMIF CE1 Flash
0x90080000 CPLD
0xA0000000 EMIF CE2
Daughter Card
0xB0000000 EMIF CE3
& %
1-15
' $
Parallel Operations
• The instruction word for each functional unit
is 32 bits long.
• Instructions are fetched 8 at a time consisting
of 8 × 32 = 256 bits. The group is called a
fetch packet. Fetch packets must start at an
address that is a multiple of 8 32-bit words.
• Up to 8 instructions can be executed in
parallel. Each must use a different functional
unit. Each group of parallel instructions is
called an execute packet.
• The p-bit (bit 0) determines if an instruction
executes in parallel with another. The
instructions are scanned from the lowest
address to the highest. If the p-bit of
instruction i is 1, then instruction i + 1 is
executed in parallel with instruction i. If it is
0, instruction i + 1 is executed one cycle after
instruction i.
& %
1-16
' $
TMS320C6x Pipeline Phases
Stage Phase Symbol
Program Program Address PG
Fetch Generation
Program Address PS
Sent
Program PW
Wait
Program PR
Data Receive
Program Dispatch DP
Decode
Decode DC
Execute Execute 1 E1
.. ..
. .
Execute 10 E10
See TMS320C6000 CPU and Instruction Set Reference Guide, SPRU189F, Table
7-1, pp. 7-7 to 7-9, for details of pipeline phases.
& %
1-17
' $
& %
1-18
' $
TI Software Tools
Code Composer Studio Version 5.4
• Built on Eclipse platform
• Create and edit source code
• Compile (cl6x.exe), assemble (asm6x.exe),
and link (lnk6x.exe) programs using project
“.pjt” files. (Actually, cl6x.exe is a shell
program that can compile, assemble and link.)
• Build libraries with ar6x.exe
• Include a real-time operating system,
DSP/BIOS, in the DSP code with real-time
data transfer (RTDX) between the PC and
DSP
• Load programs into DSP, run programs,
single step, break points, read memory and
registers, profile running programs, etc.
& %
1-19
' $
Building Programs
C/C++
source
files
Macro
source
files Linear
C/C++ compiler assembly
Archiver Assembly
Assembler
source optimizer
Macro
library Assembly-
optimized
Assembler
file
COFF Library-build
Archiver object utility
files
Run-Time-
Library of support
object library
Linker
files
Executable
COFF
file
& %
1-20
' $
Other Software
• Microsoft Visual C++
• MATLAB
• Freeware Digital Filter Design
Programs
– WINDOW.EXE
– REMEZ.EXE
– IIR.EXE
– RASCOS.EXE
– SQRTRACO.EXE
• Standard MS Windows Programs like
MS Word and Excel
• SSH Terminal Program (PUTTY) and
SSH File Transfer Program (WINSCP)
& %
1-21
' $
First Lab Session
No lab report is required for Chapter 1. The
software utility you will use to generate and edit
source code, build executable DSP programs, and
load these programs into the ’C6713 DSK is called
Code Composer Studio. Do the following introductory
tasks for your first lab session to learn about the
hardware and software tools..
1. Check out the hardware.
The DSK has been installed inside the PC case to
keep it secure and allow you access to the lab outside
of regular class hours. The important DSK connectors
have been brought out to the side of the PC case.
The DSK is connected to a USB port on the
motherboard and the power supply has been brought
out to an external plug.
Find the stereo connectors for the A/D and D/A
converters on the case. Notice that the connectors are
labeled MIC IN, LINE IN, LINE OUT, and
HEADPHONE. The MIC IN input is for low voltage
signals. For ENEE 428 you should use only the LINE
IN and LINE OUT connectors.
& %
1-22
' $
& %
1-23
' $
& %
1-25
' $
Hardware and Software References
TI documents for the hardware and software tools
are all available online at www.ti.com. Use the TI
search engine to find the particular part or
document. Enter a document number like
“SPRU189” shown in the first item below in the
TI search box. You will probably find more
up-to-date versions of the documents than the
ones listed below. In particular, the following
documents will be very useful and are also
available locally in the folder
C:\c6713dsk\docs\C6713 DSP User Guides:
1. TMS320C6000 CPU and Instruction Set
Reference Guide, SPRU189F, October 2000.
2. TMS320C6000 Periperals Reference Guide,
SPRU190D, March 2001.
3. TMS320C6000 Chip Support Library API
Reference Guide, SPRU401b, April 2001.
4. TMS320C6000 Optimizing Compiler User’s
Guide, SPRU187I, April 2001
& %
1-26
' $
& %
1-27