TF CD32 Riser Revision 2 Design Complete
Moderators: terriblefire, Terriblefire Moderator
- arkadiusz.makarenko
- Moderator Team
- Posts: 1208
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
I managed to do my best, I managed to improve things quite a bit.
I managed to measure some stuff. So interrupt latency is about 400ns. This is the time that it takes to get to start executing the code, then I need to clear the flag etc.
But I did find a bug in release routine so managed to save some time there as well. I trimmed some time on write data, read address routines etc.
Now I can measure (cheap analyser btw) between 1.2 and 1.6us. Not too bad as I started from 7us.
I have noticed that my new keyboard routine disappeared . Need to port it from different project branch. I will try to trim a little bit more but I don't see much more that could be speeded up. (I will have a look at different flash memory driver as it has prefetch, maybe this will help as well.)
I managed to measure some stuff. So interrupt latency is about 400ns. This is the time that it takes to get to start executing the code, then I need to clear the flag etc.
But I did find a bug in release routine so managed to save some time there as well. I trimmed some time on write data, read address routines etc.
Now I can measure (cheap analyser btw) between 1.2 and 1.6us. Not too bad as I started from 7us.
I have noticed that my new keyboard routine disappeared . Need to port it from different project branch. I will try to trim a little bit more but I don't see much more that could be speeded up. (I will have a look at different flash memory driver as it has prefetch, maybe this will help as well.)
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
- arkadiusz.makarenko
- Moderator Team
- Posts: 1208
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
BUAHAHAHAH
With enabled ICache i DCache
Sub 1us on average, some are slow up to 1.4us, but I average are below 1us.
EDIT: I optimized some if statements to switch-case and grouped some. This reduced time by a little. All cycles 0.7-1.2us. Good enough
Still need to look at flash prefetch.
EDIT : TCM Interface is slower on F72x and F73x, so I will skip this bit, documentation is rarely clear about this stuff but here it is back on white, so AXI Interface is apparently the best for those devices.
With enabled ICache i DCache
Sub 1us on average, some are slow up to 1.4us, but I average are below 1us.
EDIT: I optimized some if statements to switch-case and grouped some. This reduced time by a little. All cycles 0.7-1.2us. Good enough
Still need to look at flash prefetch.
EDIT : TCM Interface is slower on F72x and F73x, so I will skip this bit, documentation is rarely clear about this stuff but here it is back on white, so AXI Interface is apparently the best for those devices.
- Attachments
-
- sub1us.png (7.83 KiB) Viewed 3756 times
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
- arkadiusz.makarenko
- Moderator Team
- Posts: 1208
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
@kulamario
Superfrog and Turrican 3 fix
Superfrog and Turrican 3 fix
- Attachments
-
- TFRiserRev2F722.zip
- (21.37 KiB) Downloaded 164 times
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
Re: TF CD32 Riser Revision 2 Design Complete
Now everything looks fine
I would also like to suggest a change in the schema such a solution would extend the battery life
I would also like to suggest a change in the schema such a solution would extend the battery life
-
- Moderator Team
- Posts: 5368
- Joined: Mon Aug 28, 2017 10:56 pm
- Location: Glasgow, UK
Re: TF CD32 Riser Revision 2 Design Complete
It will make no difference and it being missing gives more cell type options. (i.e. it was removed based on the manual recommendation).
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
- arkadiusz.makarenko
- Moderator Team
- Posts: 1208
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
Agree with TF, it is already done internally in STM32.
Diode is there only because during domain switch there might be power going back to battery, and if battery cannot handle charge it has to be protected.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
- arkadiusz.makarenko
- Moderator Team
- Posts: 1208
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
Another day trying to speed ARM<=>Amiga up a little. But no more luck today.
Generally without changes on hardware side like faster stm32, Address lines connected in a way that address it would be 1 read without shifting bits into right position, 16bit data bus maybe? and this kind of stuff I can't see any more room for improvement - maybe rewriting routines to arm assembler could gain some speed, but I think not that much as bottleneck now I think is on hardware side.
Anyway, it is not that slower (mouse data read/writes not whole computer) maybe 20% on most cycles - very occasionally double (1.2us)
Fact that Amiga CPU need to be exactly timed with external STM32 and communicate only via 8bit part of the data bus, I guess it is quite achievement anyway to even get to those results.
For me it is good enough now, time to look at few smaller bugs now, and port new amiga keyboard routine.
Generally without changes on hardware side like faster stm32, Address lines connected in a way that address it would be 1 read without shifting bits into right position, 16bit data bus maybe? and this kind of stuff I can't see any more room for improvement - maybe rewriting routines to arm assembler could gain some speed, but I think not that much as bottleneck now I think is on hardware side.
Anyway, it is not that slower (mouse data read/writes not whole computer) maybe 20% on most cycles - very occasionally double (1.2us)
Fact that Amiga CPU need to be exactly timed with external STM32 and communicate only via 8bit part of the data bus, I guess it is quite achievement anyway to even get to those results.
For me it is good enough now, time to look at few smaller bugs now, and port new amiga keyboard routine.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
-
- Moderator Team
- Posts: 5368
- Joined: Mon Aug 28, 2017 10:56 pm
- Location: Glasgow, UK
Re: TF CD32 Riser Revision 2 Design Complete
Agreed. If its on average 1uS thats fine. 3uS is less fine because things use the CIA to time things sometimes and assume about 1uS. So a 1 second delay could become 3 seconds. Its naughty to do this but some driver code does this.arkadiusz.makarenko wrote: ↑Tue Jan 05, 2021 10:15 pm For me it is good enough now, time to look at few smaller bugs now, and port new amiga keyboard routine.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
- arkadiusz.makarenko
- Moderator Team
- Posts: 1208
- Joined: Wed Jun 19, 2019 7:36 am
- Location: Edinburgh
Re: TF CD32 Riser Revision 2 Design Complete
10 PCBs arrived! I moved battery like 1mm to the left.
I should have parts for 4 of them, need to prepare BOM etc.
I should have parts for 4 of them, need to prepare BOM etc.
- Attachments
-
- Pixlr_20210107122343039.jpg (91.08 KiB) Viewed 3542 times
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
~ Stanislaw Lem
- 8 Bit Dreams
- Moderator Team
- Posts: 785
- Joined: Fri Nov 09, 2018 7:12 am
- Location: Germany
Re: TF CD32 Riser Revision 2 Design Complete
Looks nice!
is this the final version or some updates/optimisations will follow?
Thinking about to get small batch of them..
Thre are some discussions on A1k, people are very interested, we'll need some tweaks to get it work with D520 though cause DB23 isn't fully routed..
is this the final version or some updates/optimisations will follow?
Thinking about to get small batch of them..
Thre are some discussions on A1k, people are very interested, we'll need some tweaks to get it work with D520 though cause DB23 isn't fully routed..
Retro computer hardware & repair in Germany