MPC8270 GPCM Burst Read/Write Timing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC8270 GPCM Burst Read/Write Timing

1,372 Views
sai_jagannathan
Contributor II

The MPC8270 executes out of SRAM and the MPC8270 is configured to execute in GPCM mode. The MPC8270 is configured as an "Single MPC8270 bus mode" (with BCR[EBM] = 0). But the Extended transfer mode is enabled (BCR[ETM]=1). The datasheet says "Note the GPCM does not negate CS in back-to-back reads to the same device when in single MPC8280 bus mode or in 60x-compatible bus mode with extended transfers enabled."

THe data sheet also says "The GPCM provides interfacing for simpler, lower-performance memory resources and
memory-mapped devices. The GPCM has inherently lower performance because it does not support bursting."

But i do see that that burst reads/writes of 32 bytes (4 double word reads/writes on 64 bit port) are executed from time to time at least for cache reads/writes (maybe because of ETM).

The question is : Is there somewhere in the datasheet or a pdf which shows the timing diagram for the memory controller (GPCM) in this configuration (burst read/write)

I do see that the CS# remains asserted continously for 4 double word reads. I do see that the OE# or WE# gets asserted and deasserted for each of those double word reads within the 32 byte block. 

I have the CSNT bit set to provide a quarter clock cycle delay between the WE# getting deasserted to the CS# being deasserted. How does this work during a burst read/write when CS# remains asserted for 4 double words? When does the data/address change wrt to WE# within a burst cycle?

I couldnt find this in the app note AN2176

0 Kudos
10 Replies

1,127 Views
Bulat
NXP Employee
NXP Employee

Normally GPCM does not support bursting, so "I do see that the CS# remains asserted continously for 4 double word reads" sounds unusual. Do you have a waveform? Better if it contains also PSDVAL and TA signals.

Regards,

Bulat

0 Kudos

1,127 Views
sai_jagannathan
Contributor II

We were also surprised to see this.

Attached is the waveform..

Test is the chip select.

In “ain”, bit 0 is not included. So the address has to be left shifted by 1.

We couldn’t include PSDVAL in this. But PSDVAL is same as nTA

The four addresses are contiguous and on an 8 byte boundary.

Burst Read

Burst Write

Sai Krishnan Jagannathan

Technology Specialist

Honeywell | HPS GTS HW

Office: +91 80 26588360 x41342

sai.jagannathan@honeywell.com

https://www.honeywell.com/

0 Kudos

1,127 Views
Bulat
NXP Employee
NXP Employee

Can you also let me know values of BR and OR registers of the GPCM port shown in the waveforms?

You wrote "burst reads/writes ... are executed from time to time at least for cache reads/writes". Why did you decide that waveforms show cache read/writes?

Regards,

Bulat

0 Kudos

1,127 Views
sai_jagannathan
Contributor II

BR : 0x0000 0C01

OR: 0x0000 0812

The datasheet talks about a cache block being 32 bytes and requiring 4 beats of 8 byte write.

Also we see the nTA toggling once every 64 bit access within a burst.

We don’t find an instruction which is 64 bit. As in loads/stores only read/write 32 bit at the maximum.

So based on these, our guess was that the bursts are being initiated as part of cache reads/writes.

Maybe the DMA reads/writes through the cache.

Regards,

Sai

0 Kudos

1,127 Views
Bulat
NXP Employee
NXP Employee

BR :        0x0000 0C01

This BR value means you are using 8-bit GPCM port with RMW parity. Is this correct?

Regards,

Bulat

0 Kudos

1,127 Views
sai_jagannathan
Contributor II

The PS is set to 00 (64 bit)

And DECC is set to 11 (ECC)

I made a mistake in the BR value

It is 0x0000 0601

sai.jagannathan@honeywell.com

https://www.honeywell.com/

0 Kudos

1,127 Views
Bulat
NXP Employee
NXP Employee

Ok, actually your waveforms are not unusual. This kind of timing is expected. When the Manual says "The GPCM ... does not support bursting", it means GPCM is not able to place data beats onto back-to-back clock cycles during a burst, like SDRAM machine or UPM. Note that we nowhere state that GPCM's CS is negated between data beats during a burst transaction.

Answering your question " Is there somewhere in the datasheet or a pdf which shows the timing diagram for the memory controller (GPCM) in this configuration (burst read/write)", we do not have such diagrams in the documentation. However the Manual states following: "Although GPCM does not support bursting, the internal logic will split a burst into individual beats that the GPCM can support." So actually the GPCM's burst consists of back-to-back single beat cycles. Examples of back-to-back single beat cycles can be found in the AN2176, figure 1-3 shows two back-to-back reads, figure 1-4 shows back-to-back writes. Both are pretty similar to your waveforms with different number of wait cycles.

Regards,

Bulat

0 Kudos

1,127 Views
sai_jagannathan
Contributor II

Thanks.

The two figures seem to show the transactions for a 32 bit port.

We have a 64 bit port. I didn’t find any where that the CSn will remain deasserted for multiple 64 bit transactions (apart from the cache reads/writes). (which is what we are seeing)

Nevertheless, what I am really looking for in the timing diagram is how how WEn behaves when the CSNT bit is set. (CSNT bit from the ORx (options register of GPCM))

CSNT = 1 deasserts the WEn a quarter clock cycle before the CSn (deassertion) providing additional hold time.

But since the CSn remains LOW for multiple 64 bit transactions, what timing does the WEn follow.

Does the WEn get deasserted quarter clock cycle before the rising edge of CLK for every 64 bit transaction (or)

Does it do that only for the last transaction before the CSn gets deasserted?

Sai

0 Kudos

1,127 Views
Bulat
NXP Employee
NXP Employee

Normally there is no such a term as "... multiple 64 bit transactions (apart from the cache reads/writes)", only single-beat 64 bit (or 8-bit/16-bit/32-bit) transaction and 32-byte burst (that is four 64-bit beats). "Normally" means BCR[ETM]=0. If BCR[ETM]=1, then the CPM (not the core) is able to use also 16-byte and 24-byte transactions.

Your understanding of CSNT behavior is not correct. If CSNT=1, WEn is deasserted  1/4 clock cycle before Address/Data Invalid, not "a quarter clock cycle before the CSn (deassertion)". This in particular means that CS does not have to be deasserted during backto-back GPCM read/write cycles. Please see table 11-31 of the Ref Manaul for details. Figure 11-44 shows this case.

I have edited a figure 1-4 from the AN2176 to illustrate CSNT=1 case, see picture. If your logic analyzer had better resolution, you would see this kind of WE timing.

GPCM_CSNT.png

Regards,

Bulat

0 Kudos

1,127 Views
sai_jagannathan
Contributor II

Thanks Bulat,

This is the confirmation I was looking for.

Thanks,

Sai

Sai Krishnan Jagannathan

Technology Specialist

Honeywell | HPS GTS HW

Office: +91 80 26588360 x41342

sai.jagannathan@honeywell.com

https://www.honeywell.com/

0 Kudos