15 August 2021, 15:35 | #41 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Quote:
Right, pin 6 as the 'clock' for the serial data. |
|
17 August 2021, 13:24 | #42 |
Registered User
Join Date: Aug 2010
Location: Italy
Posts: 787
|
I had the CIA tests run on a friend's Amiga CD32 equipped with a TF328. The results (attached) are: all the instructions (clr, move, st, tst) execute in 1 E clock cycle, no matter the combination. I guess this is due to CIAs and Gayle being integrated into Akiko.
The sad news is that this proves that the CIA speed access cannot be relied upon for precise timing, unless one writes self-adapting/parametric code that executes according to a previous assessment of the speed. EDIT Correction to myself: the expansion board used was a TF330, not a TF328. Last edited by saimo; 03 September 2021 at 23:28. |
17 August 2021, 14:11 | #43 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Quote:
(and basically are the results that WinUAE provides). I'd like to see results from other revisions of the A1200 or A4000.. |
|
17 August 2021, 14:28 | #44 | ||
Registered User
Join Date: Aug 2010
Location: Italy
Posts: 787
|
Quote:
Quote:
Of course, if anyone else is able and willing to run tests, that's very welcome! They are attached to this post. |
||
01 September 2021, 08:53 | #45 |
Registered User
Join Date: Aug 2010
Location: Italy
Posts: 787
|
I finally received the log from another test, performed on yet another Amiga CD32 equipped with a TF328. Surprise: the results are different from the previous ones (see post 42)! While the previous results were perfect (1 CIA cycle per access), these ones show an odd behaviour:
* the combinations clr+tst and st+tst require 3 CIA cycles (instead of the perfect 2); * the combinations clr+tst+st+tst and st+tst+clr+tst require 5 CIA cycles (instead of the perfect 4 and also instead of 6, as one would expect from the previous point). Bottom line: even when the machines are supposedly the same, the timings may vary, so CIA accesses cannot be used for precise timing. EDIT Correction to myself: the results in post #42 have been made on an Amiga CD32 equipped with a TF330 (not a TF328), so the surprise isn't as big as I wrote above It's still true, however, that trusting the CIA access speed for exact timing isn't wise. Last edited by saimo; 03 September 2021 at 23:27. |
03 September 2021, 21:04 | #46 | |
Registered User
Join Date: Dec 2020
Location: Philippines
Posts: 45
|
Quote:
|
|
03 September 2021, 23:23 | #47 | |
Registered User
Join Date: Aug 2010
Location: Italy
Posts: 787
|
Quote:
(By the way, I'm going to make a correction to my previous post right after submitting this.) |
|
04 September 2021, 08:10 | #48 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
This kind of behavior is typical for async CPU clock (CPU clock is not integer multiple of main board clock), some memory access cycles are always missed. I wasn't sure if it affects CIA (that badly).
EDIT: 68020+ due to caches and internal pipelines, can have different delays between memory access and start of next memory access, even if instructions are exact same and clock is sync. Undocumented thread is mostly about chipset features, not fast CPUs/accelerator boards. Last edited by Toni Wilen; 04 September 2021 at 08:18. |
04 September 2021, 18:07 | #49 |
Registered User
Join Date: Aug 2010
Location: Italy
Posts: 787
|
It sounds like I had made the same or a similar assumption: I thought that the access speed was 1 CIA cycle and that, however, the CPU might lose some CPU cycles due to clocks not perfectly synchronized. I certainly didn't expect the loss to be multiples of CIA clocks halves and to be so apparently random.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Shift + F3 not working in ProTracker? | h0ffman | support.WinUAE | 4 | 06 February 2014 14:21 |
shift pattern | AGS | Coders. Asm / Hardware | 16 | 16 December 2013 21:27 |
Dead shift keys... | clownstyle | support.Hardware | 21 | 13 October 2013 22:30 |
Right Shift+Right Amiga works, but not Left shift+Left Amiga | Photon | support.WinUAE | 13 | 22 November 2010 21:43 |
Sound shift | mcferson | support.WinUAE | 26 | 15 October 2008 13:03 |
|
|