5510 z1 core code runs more slowly if z0 core started

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

5510 z1 core code runs more slowly if z0 core started

Jump to solution
1,091 Views
markelson
Contributor III

I have found that the code in my z1 core runs about half as fast if I start the z0 core. Even with an empty loop running in the z0 core.The z0 core is not generating any interrupts or exceptions and the only interrupt occurring in the z1 is the PIT I have coded.

 

Has anyone else found this? Does anyone know why it happens? I've been through the manuals and can't find an explanation.

 

Thank you, Mark

Labels (1)
0 Kudos
1 Solution
929 Views
markelson
Contributor III

I managed to fix this myself. There must have been some kind of bus contention going on. I used PFCRP0 to prioritize z1's port over z0's (ARB=0, PRI=0) and then, for both PFCRP0 and PFCRP1, enabled line buffers (BFEN=1). The speed improvement was astonishing - z1 ran 6x faster even with z0 running. I couldn't find any documentation suggesting this might be necessary, not even in the dual core example.

View solution in original post

0 Kudos
1 Reply
930 Views
markelson
Contributor III

I managed to fix this myself. There must have been some kind of bus contention going on. I used PFCRP0 to prioritize z1's port over z0's (ARB=0, PRI=0) and then, for both PFCRP0 and PFCRP1, enabled line buffers (BFEN=1). The speed improvement was astonishing - z1 ran 6x faster even with z0 running. I couldn't find any documentation suggesting this might be necessary, not even in the dual core example.

0 Kudos