You will not be able to post if you are still using Microsoft email addresses such as Hotmail etc
See here for more information viewtopic.php?f=20&t=7296
DO NOT USE MOBILE / CGNAT DEVICES WHERE THE IP CHANGES CONSTANTLY!
At this time, it is unfortunately not possible to whitelist users when your IP changes constantly.
You may inadvertently get banned because a previous attack may have used the IP you are now on.
So I suggest people only use fixed IP address devices until I can think of a solution for this problem!
Please make sure you are logged in for at least 2 hours
to make sure your IP is added into the firewall whitelist, thanks :)

TF CD32 Riser Revision 2 Design Complete

TF CD32 Riser

Moderators: terriblefire, Terriblefire Moderator

terriblefire
Admin sponsor
Admin sponsor
Posts: 5675
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

great progress.
———
"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."
User avatar
arkadiusz.makarenko
Moderator Team
Moderator Team
Posts: 1360
Joined: Wed Jun 19, 2019 7:36 am
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

terriblefire wrote: Fri Oct 09, 2020 10:48 pm great progress.
Unfortunately that what I could get. confirm RTC_SEL only.
Any attempt with putting anything on the data bus from arm GPIOs crashes CD32. (Like we had before when trying to overwrite mouse values)
I think I can't read correctly RW signal and ARM put data in wrong time, messing with data bus.
I see Write on Memory monitor, even when I just look what on those locations.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
User avatar
arkadiusz.makarenko
Moderator Team
Moderator Team
Posts: 1360
Joined: Wed Jun 19, 2019 7:36 am
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

I am not letting go that quickly with this.

I have changed crystal from 8Mhz to 25Mhz, this allows me to configure speed of core to 216Mhz.

This should give me interrupt latency of 190ns, I will try to skip library and operate directly on registers, and set up compiler for preformance, if this will not let me do what I need then I will try set up DTACK for some cycles.

If I won't be able to get this working, I will try to learn verilog enough to do it in cpld. stm32 would be simply just data source and heavy lifting would be done by CPLD.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
User avatar
arkadiusz.makarenko
Moderator Team
Moderator Team
Posts: 1360
Joined: Wed Jun 19, 2019 7:36 am
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

@terriblefire

I have tried everything what I could to place data on the bus, but Amiga doesn't like it at all.
I simply can't sync with bus.

I have tried the same from cpld and some data was visible in monitor.

Do you think I could have registers on cpld, and refresh it using SPI from ARM? Does this sound like reasonable solution?
I was thinking of similar idea for overriding mouse movements?
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
terriblefire
Admin sponsor
Admin sponsor
Posts: 5675
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

That will work as per my exemplar however you are going to run out of macrocells in that CPLD quickly.
———
"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."
User avatar
arkadiusz.makarenko
Moderator Team
Moderator Team
Posts: 1360
Joined: Wed Jun 19, 2019 7:36 am
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

terriblefire wrote: Sun Oct 11, 2020 9:35 pm That will work as per my exemplar however you are going to run out of macrocells in that CPLD quickly.
...and 144 macrocell version doesn't come in 64pin package :(

EDIT
Anyway I am doing this for fun, so I will be doing this in pieces RTC or Mouse etc :D
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
terriblefire
Admin sponsor
Admin sponsor
Posts: 5675
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

arkadiusz.makarenko wrote: Sun Oct 11, 2020 10:06 pm
terriblefire wrote: Sun Oct 11, 2020 9:35 pm That will work as per my exemplar however you are going to run out of macrocells in that CPLD quickly.
...and 144 macrocell version doesn't come in 64pin package :(

EDIT
Anyway I am doing this for fun, so I will be doing this in pieces RTC or Mouse etc :D
The alternative is to have the CPLD latch the data bus and make it wait until the data is off the bus from the arm before it asserts DTACK.

i.e.

1. CPLD recognises the bus request and triggers an interrupt on the ARM.
2. ARM puts data on data bus.
3. ARM asserts the acknowledge.
4. CPLD latches the data on the data bus.
5. ARM removes data from the bus.
6. ARM disasserts the acknowledge.
7. CPLD puts data on the data bus and asserts DSACK0.
———
"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."
terriblefire
Admin sponsor
Admin sponsor
Posts: 5675
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

I'm just checking something...

You absolutely cannot use DSACK0 from the ARM. It will never release the signal in time before. There is an internal signal between the ARM and the CPLD to get it to respond for you.
———
"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."
User avatar
arkadiusz.makarenko
Moderator Team
Moderator Team
Posts: 1360
Joined: Wed Jun 19, 2019 7:36 am
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

terriblefire wrote: Mon Oct 12, 2020 2:59 pm I'm just checking something...

You absolutely cannot use DSACK0 from the ARM. It will never release the signal in time before. There is an internal signal between the ARM and the CPLD to get it to respond for you.
Does it mean that we can place data on the bus, but control signals need to be controlled over CPLD?
So what need to happen on cpld and side to check this?
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
terriblefire
Admin sponsor
Admin sponsor
Posts: 5675
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

arkadiusz.makarenko wrote: Mon Oct 12, 2020 3:39 pm
terriblefire wrote: Mon Oct 12, 2020 2:59 pm I'm just checking something...

You absolutely cannot use DSACK0 from the ARM. It will never release the signal in time before. There is an internal signal between the ARM and the CPLD to get it to respond for you.
Does it mean that we can place data on the bus, but control signals need to be controlled over CPLD?
So what need to happen on cpld and side to check this?
Can you push/send what you currently have for the CPLD / arm code somewhere i can look.
———
"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."
Post Reply

Return to “TF CD32 Riser”