| |

VerySource

 Forgot password?
 Register
Search
View: 1196|Reply: 4

I do n’t quite understand the ARM pipeline recently. Which one can give an example?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-9 19:20:01
| Show all posts |Read mode
Brother Beginner Heroes help
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-20 15:00:02
| Show all posts
Take ARM9TDMI as an example
He has 5 rapid pipelines, address decoding, ALU, load 1 and load 2
The next instruction requires the result of the previous instruction, and at this time the result has not yet come out, the processor will wait, which is called pipeline interlocking
Understand pulling the interlocking line is almost pulling
Example 1: No interlock
add r0, r0.r1
add r0, r0, r2
These two instructions take up to 2 cycles. ALU calculates r0 + r1 with 1 cycle, so this result is already well pulled by ALU calculation r0 + r2 in the second cycle

Example 2: A cycle interlock due to loading
ldr r1, [r2, # 4]
add r0, r0, r1
The two instructions are pulled for three cycles. The ALU calculates r2 + 4 in one cycle. The r1 used by add in the second cycle is not ready. Wait for one cycle, and the third cycle ldr has the result of r2 + 4. Load to r1, add can perform pull
Tired of typing
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-20 18:27:01
| Show all posts
In fact, the problem of the pipeline need not be considered at all, after all, we did not design the CPU
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-20 19:18:01
| Show all posts
When the program is optimized, how much should be known
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-3-24 15:00:01
| Show all posts
Seems to understand a little
Thank youchiang999janeqin718for two
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list