Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

R1837 patch clock cycle for 8051 instructions should be multiple of 2.

2 posters

Go down  Message [Page 1 of 1]

royqh1979



In 8051, one machine cyle = 2 read cycle.

So read cyles for instructions should be multiple of 2.

But instructions like 'setb' is 3 now . (should be 4)

The patch tries to fix it. (Check if m_cycle+1 is multiple of 2 before exec())

Also fixes:
 Read 16bit address high / low 8bit shouldn't be different by m_cycle. (This only works when it's the first read operation)

R1837 patch clock cycle for 8051 instructions should be multiple of 2. Snap311
Attachments
R1837 patch clock cycle for 8051 instructions should be multiple of 2. Attachmentcycle.zip
You don't have permission to download attachments.
(2 Kb) Downloaded 2 times

arcachofo

arcachofo

Not sure about this...

SETB instruction should take 1 machine cycle (2 read cycles)?

royqh1979



arcachofo wrote:Not sure about this...

SETB instruction should take 1 machine cycle (2 read cycles)?

Yes, all instructions that read ops has an extra cycle.

I've found the reason:

m_cpuState is not set to CPU_EXEC immediately after the last read op finished. so an extra read cycle is added.

R1837 patch clock cycle for 8051 instructions should be multiple of 2. Snap412

Patch updated
Attachments
R1837 patch clock cycle for 8051 instructions should be multiple of 2. Attachmentcycle.zip
You don't have permission to download attachments.
(2 Kb) Downloaded 0 times

arcachofo

arcachofo

m_cpuState is not set to CPU_EXEC immediately after the last read op finished. so an extra read cycle is added.
Yes exactly.
Patch applied at Rev 1839.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum