Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560

Ads

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C6x | C67 CPU register address

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

C67 CPU register address - dcourous - Nov 28 9:40:00 2003


Hi all,

Does anyone know where I may find addresses for CPU control registers??
In SPRU189d, they only mentionned the MVC instruction, but that does give me the

physical addresses.

Thanks

Damien



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: C67 CPU register address - Sachin Gupta - Nov 28 15:23:00 2003

Which CPU control registers you wish to find addresses for ? If it is
some peripheral registers then these are documented in Peripheral
Reference Guide.

Sachin

--- dcourous <> wrote:
>
> Hi all,
>
> Does anyone know where I may find addresses for CPU control
> registers??
> In SPRU189d, they only mentionned the MVC instruction, but that does
> give me the
> physical addresses.
>
> Thanks
>
> Damien >
> _____________________________________ __________________________________



______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: C67 CPU register address - Damien Couroussé - Nov 28 16:50:00 2003

Hi Sachin,

We would like to address internal CPU control register. Actually, I
have to know these addresses in order to update for the C67 one of our
small softs, which was designed for the C40.
For example:
- data address paths DA1&2
- data path A1:15 & B1:15
- CPU control register file...

I know the MVC instruction to address control registers, but it doesn't
give me addresses! Damien Le vendredi, 28 nov 2003, à 16:23 Europe/Paris, Sachin Gupta a écrit :

> Which CPU control registers you wish to find addresses for ? If it is
> some peripheral registers then these are documented in Peripheral
> Reference Guide.
>
> Sachin
>
> --- dcourous <> wrote:
>>
>> Hi all,
>>
>> Does anyone know where I may find addresses for CPU control
>> registers??
>> In SPRU189d, they only mentionned the MVC instruction, but that does
>> give me the
>> physical addresses.
>>
>> Thanks
>>
>> Damien
>>
>>
>>
>> _____________________________________
>>
>>
>>
>>
>>
> > __________________________________



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: C67 CPU register address - Andrew Nesterov - Nov 28 22:12:00 2003

> Date: Fri, 28 Nov 2003 17:50:13 +0100
> From: Damien Courouss? <>
>
> We would like to address internal CPU control register. Actually, I
> have to know these addresses in order to update for the C67 one of our
> small softs, which was designed for the C40.
> For example:
> - data address paths DA1&2
> - data path A1:15 & B1:15
> - CPU control register file...
>
> I know the MVC instruction to address control registers, but it doesn't
> give me addresses!

Damien,

The CPU control registers are not memory mapped, therefore they do not
have an address associated with them.

They can be read by MVC.S2 CNTRL, GENREGB, where CNTRL is one of registers
in the CPU control register file. GENREGB is a general purpose register in
the B register file.

They can wrritted by MVC.S2{X} GENREG, CNTRL, where GENREG can be from
both A or B file, CNTRL is in the control file.

MVC can be executed only on the S2 unit, and can use the cross-path
for the src2 if this is a general purpose register.

Data address path and data path are explained in the load/store
instructions, but the general rule is that the base and offset
registers are on the same side as the D unit in use, while src
(for stores) and dst (for loads) could be on either side, which
is indicated by T1/T2 after the D unit:

LDW.D1T2 *+A10[A11], B1 ; DA1, LD2 path
LDW.D2T1 *-B10[B11], A1 ; DA2, LD1 path
LDW.D1T1 *+A10[A11], A1 ; DA1, LD1 path

et cetera.

Hope this helps,

Andrew



______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: C67 CPU register address - Jeff Brower - Dec 2 20:34:00 2003

Damien-

> Actually, you're right, I wan't to translate C40 opcodes to C67,
> in order to use an old assembler for the C40. For example,
> I cannot find addresses for the registers pairs in data paths,
> in internal CPU, or a way to mention them in opcodes...

So you can produce a number of representative examples of C67xx assembly code,
deduce
the missing or undocumented bitfields of the op-codes, and go from there?

Is this for a Linux package?

-Jeff > Damien
>
> Le mardi, 2 déc 2003, à 06:50 Europe/Paris, Mike Dunn a écrit :
>
> Damien,
>
> Are you trying to:
> A. Translate C40 opcodes to C67x opcodes??
> B. Write an assembler??
> C. None of the above??
>
> mikedunn
>
> Damien_CouroussÈ <> wrote:
>
> Hi,
>
> What I want is physical information. My purpose is not about which
> instruction would allow me to address internal registers. I'm looking
> for (all of) the (physical) addresses of internal CPU control registers,
> which I'm not able to find in TI documentation.
>
> Damien
>
> Le vendredi 28 novembre 2003, ‡ 03:35 PM, chassaing a Ècrit :
>
> > Hi:
> >
> > Which are you looking for? (AMR, SPCR, ...?). For example, if you're
> > using
> > circular buffer, you can move (movl/mvlh) a value (32 bits)into a
> > register
> > Bx, then move that constant value in the register into AMR (mvc
Bx,AMR).
> >
> > Are you familiar with my book based on the C6x?
> >
> > Rulph Chassaing
> >
> > ----- Original Message -----
> > From: "dcourous"
> > To:
> > Sent: Friday, November 28, 2003 4:40 AM
> > Subject: [c6x] C67 CPU register address
> >
> >
> >>
> >> Hi all,
> >>
> >> Does anyone know where I may find addresses for CPU control
registers??
> >> In SPRU189d, they only mentionned the MVC instruction, but that does
> >> give
> > me the
> >> physical addresses.
> >>
> >> Thanks
> >>
> >> Damien



______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

RE: C67 CPU register address - Dillon, Tom - Dec 3 20:02:00 2003

RE: [c6x] C67 CPU register address

RE:>> C -> C40 compile -> C40 asm -> C40-to-C67 translator -> C67 op codes

If you are starting with (or have access to) C, then why don't you just do this: C -> C67 asm.  My assumption was that you only had C40 asm and wanted to do this: C40 asm -> C67 asm.

Regards,
Tom Dillon
 
 

-----Original Message-----
From: Andrew Elder [mailto:a...@bigfoot.com]
Sent: Wednesday, December 03, 2003 1:12 PM
To: c...@yahoogroups.com
Subject: Re: [c6x] C67 CPU register address


Damien,

Am I correct that you are hoping to go
C -> C40 compile -> C40 asm -> C40-to-C67 translator -> C67 op codes
Or something similar ?

Are you moving (porting) from C40 to C67 ?

More background will allow others to make more useful observations and suggestions.

Might I suggest you look and the VC33. It will be a much shorter path to working code that trying to translate C40 opcodes to C67 (which I would classify as a extremely difficult (and hard to debug)).

- Andrew E.


At 05:24 PM 12/3/2003 +0100, Damien Couroussé wrote:
>Answers embedded below...
>
>Le mercredi 3 décembre 2003, à 04:35 PM, Andrew Elder a écrit :
>
>>
>>Damien,
>>
>>I assume you have read all about the delays in the C67 pipeline.
>Can't understand the link with my problem...
>Thought it doesn't concern me (directly, I mean!).
>
>>For example if you go
>>
>>ADD .L1 A1,A2,A3
>>ADD .L1 A3,A4,A5
>>
>>the value of A3 used by the second add will not be A1+A2 since that operation hasn't completed yet.
>>
>>In my opinion, translating anything to raw C67 assembly is a complicated job and best avoided.
>>
>>Can I ask why you want to translate C40 code to C67 assembly ?
>See below (stg like >>>...).
>
>First I want to generate C67 opcodes, that's all. Some of the job had been done for the C40, but it was an easier task... Did I miss a real important information somewhere?? I guess, but I cannot solve it by myself...

>
>
>>
>>- Andrew E.
>>
>>At 03:08 PM 12/3/2003 +0100, Damien Couroussé wrote:
>>>Hi Mike,
>>>
>>>Jeff's idea is quite good (thanks), but I would prefer not have to spend time decipher assembly code!!
>>>Basicly, if I want to generate a :
>>>
>>>ADD .L1 A1, A2, A3...
>>>I don't know how to fill the 'dst', 'src2'... fields (corresponding to A1...) in the ADD opcode!! (I know, it's stupid, but...).

>>>
>>>Le mercredi, 3 déc 2003, à 06:21 Europe/Paris, Mike Dunn a écrit :
>>>
>>>Thanks for all...
>>>
>>>Damien
>>>
>>>>Damien,
>>>>
>>>>Please forgive me, I do not see the exact problem.  I have been able to find information in TI documentation or, as Jeff indicated, have been able to decipher it from assembly code.

>>>>
>>>>Could you give one or two specific examples of what you are trying to do??
>>>>
>>>>mikedunn
>>>>
>>>>Damien_CouroussÈ <d...@imag.fr> wrote:
>>>>
>>>>Thanks for your answer,
>>>>
>>>>Actually, you're right, I wan't to translate C40 opcodes to C67, in
>>>>order to use an old assembler for the C40. For example, I cannot find
>>>>addresses for the registers pairs in data paths, in internal CPU, or a
>>>>way to mention them in opcodes...
>>>>
>>>>
>>>>Damien
>>>>
>>>>
>>>>Le mardi, 2 dÈc 2003, ‡ 06:50 Europe/Paris, Mike Dunn a Ècrit :
>>>>
>>>>>Damien,
>>>>>
>>>>>Are you trying to:
>>>>>A. Translate C40 opcodes to C67x opcodes??
>>>>>B. Write an assembler??
>>>>>C. None of the above??
>>>>>
>>>>>mikedunn
>>>>>
>>>>>Damien_Courouss» wrote:
>>>>>
>>>>>
>>>>>Hi,
>>>>>
>>>>>What I want is physical information. My purpose is not about which
>>>>>instruction would allow me to address internal registers. I'm looking
>>>>>for (all of) the (physical) addresses ! of internal CPU control
>>>>>registers,
>>>>>which I'm not able to find in TI documentation.
>>>>>
>>>>>
>>>>>Damien
>>>>>
>>>>>
>>>>>
>>>>>Le vendredi 28 novembre 2003, á 03:35 PM, chassaing a »crit :
>>>>>
>>>>>>Hi:
>>>>>>
>>>>>>Which are you looking for? (AMR, SPCR, ...?). For example, if you're
>>>>>>using
>>>>>>circular buffer, you can move (movl/mvlh) a value (32 bits)into a
>>>>>>register
>>>>>>Bx, then move that constant value in the register into AMR (mvc
>>>>>Bx,AMR).
>>>>>>
>>>>>>Are you familiar with my book based on the C6x?
>>>>>>
>>>>>>Rulph Chassaing
>>>>>>
>>>>>>----- Original Message -----
>>>>>>From: "dcourous"
>>>>>>To:
>>>>>>Sent: Friday, November 28, 2003 4:40 AM
>>>>>>Subject: [c6x] C67 CPU register address
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>Hi all,
>>>>>>>
>>>>>>>Does ! anyone know where I may find addresses for CPU control
>>>>>registers??
>>>>>>>In SPRU189d, they only mentionned the MVC instruction, but that does
>>>>>>>give
>>>>>>me the
>>>>>>>physical addresses.
>>>>>>>
>>>>>>>Thanks
>>>>>>>
>>>>>>>Damien
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>_____________________________________
>>>>>>>>http://www.dsprelated.com
>>>>>>>
>>>>>>>
>>>>>>>>http://docs.yahoo.com/info/terms/
>>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>_____________________________________
>>>>>>http://www.dsprelated.com
>>>>>
>>>>>
>>>>>>http://docs.yahoo.com/info/terms/
>>></blockquote></x-html>
>>
>>
>>_____________________________________
>>
>>
>>
>>
>>
>


_____________________________________

 



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )