Pic24f read-after-write (stall case)

Status
Not open for further replies.

mandarsansare

Newbie level 6
Joined
Apr 28, 2012
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Thane,Maharashtra,IN
Visit site
Activity points
1,381


deviceIC24FJ256GB110

I am not getting the highlighted part. Why it is "Allowed"?????

Ref manual says:

Read-After-Write Dependency Rules If a working register, Wn, is used as a write operation destination in the current instruction, and the same working register, Wn, being read in the prefetched instruction are the same, the following rules will apply: 1. If the destination write (current instruction) does not modify the contents of Wn, no stalls will occur; or 2. If the source read (prefetched instruction) does not calculate an EA using Wn, no stalls will occur.

Any kind of help is appreciated!!! Thank You
 

The device manual paragraph "Read-After-Write Dependency Rules" is describing operations that will automatically take place during program execution. You don't need to take care of it, except if you are calculating cycle accurate execution times or consider how to optimize instruction flow when writing assembler code (I guess you don't).

What are you trying to achieve?
 

I am studying PIC24F for my future projects. I was reading datasheets and Ref. manuals....so this doubt came.
I m not trying to achieve anything regarding RAW dependency ....just I was curious to know..
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…