REMINDER - Stay logged in for at least 2 hours a week to get whitelisted.
Also it helps build a picture where our "good traffic" is coming from for detection scripts.
:o)

TF CD32 Riser Revision 2 Design Complete

TF CD32 Riser

Moderators: terriblefire, Terriblefire Moderator

User avatar
arkadiusz.makarenko
Moderator Team
Moderator Team
Posts: 1371
Joined: 19 Jun 2019 07:36
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

terriblefire wrote: 16 Oct 2020 16:25
arkadiusz.makarenko wrote: 16 Oct 2020 16:06 Still have some bug in verilog, as I still clash with tf330 somwhere.
Run the complete memory detection in diagrom to see issues.
Diagrom sends rtc interrupt during memory detection (A3000/4000) (at diagrom boot).

How can I check if I clash with higher addresses?
Can you see anything obvious here ?

Code: Select all

wire rtc_decode = A[23:16] == 8'b1101_1100;
wire rtc_int = PUNT_IN & rtc_decode ;


assign PUNT_OUT = PUNT_IN ? (rtc_decode ? 1'b0 : 1'bz) : 1'b0;

assign INTSIG2 = rtc_int; 
assign DSACK = rtc_int?(INTSIG7?2'b10:2'b11):2'bzz ;

assign INTSIG3 = A[3];
assign INTSIG5 = A[5];
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
terriblefire
Admin sponsor
Admin sponsor
Posts: 5687
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

clock these guys or you'll get logic hazards.

https://en.wikipedia.org/wiki/Hazard_(logic)
———
"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: 5687
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

Put at least rtc_int in an always block...

otherwise any glitch will trigger an interrupt.

Code: Select all


always @(posedge CLKCPU_A) begin 

	rtc_int <= ...;

end

using assign's and combi logic is asking for trouble.

Also your arm code should check the interrupt is still pending before responding.
———
"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: 1371
Joined: 19 Jun 2019 07:36
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

:facepalm:

I should read what is written on the screen, and hold bloody left mouse button when it says to do it if it hangs :D

Saying that adding always and additional check on int signal on arm side, now ram test is successful, workbench boots and clock reads RTC (early days).

Second time I was obsessing about really non issues.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
matt020
Posts: 326
Joined: 29 Sep 2019 09:17
Location: West Australia

Re: TF CD32 Riser Revision 2 Design Complete

Post by matt020 »

Just a quick post from someone who is following this thread with amazement. Such good progress! Keep it up!!
wairnair
Posts: 34
Joined: 09 Dec 2018 15:53

Re: TF CD32 Riser Revision 2 Design Complete

Post by wairnair »

matt020 wrote: 17 Oct 2020 02:16 Just a quick post from someone who is following this thread with amazement. Such good progress! Keep it up!!
same here!
User avatar
arkadiusz.makarenko
Moderator Team
Moderator Team
Posts: 1371
Joined: 19 Jun 2019 07:36
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

Rtc now can be detected by ATK as msm6242 :)
1602958079115401847416370415696.jpg
Just need to complete setting date and that would be easy stuff more or less ready.

Edit:
Default date need to change... I can't face living in 2020 all the time ;)
You do not have the required permissions to view the files attached to this post.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
terriblefire
Admin sponsor
Admin sponsor
Posts: 5687
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

Sweet.
———
"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: 1371
Joined: 19 Jun 2019 07:36
Location: Edinburgh

Re: TF CD32 Riser Revision 2 Design Complete

Post by arkadiusz.makarenko »

Ok
Writes and reads implemented. I may need to add support for sleep mode and restore after wakeup (Need to wait for new board), but at this point I have done what I could. :)

I have created binaries repository
https://github.com/arkadiuszmakarenko/T ... naries.git

CPLD source code: https://github.com/arkadiuszmakarenko/T ... v1XC9572XL
STM32f722 (still can fit in stm32f730) - https://github.com/arkadiuszmakarenko/TFRiserRev1F722

Time for a bottle of wine.
Do not trust people. They are capable of greatness.
~ Stanislaw Lem
terriblefire
Admin sponsor
Admin sponsor
Posts: 5687
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: TF CD32 Riser Revision 2 Design Complete

Post by terriblefire »

arkadiusz.makarenko wrote: 17 Oct 2020 20:58 CPLD source code: https://github.com/arkadiuszmakarenko/T ... v1XC9572XL
STM32f722 (still can fit in stm32f730) - https://github.com/arkadiuszmakarenko/TFRiserRev1F722

Time for a bottle of wine.
boards are 80% done manufacturing.

We have keyboard and mouse support? :)
———
"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."

Return to “TF CD32 Riser”

Who is online

Users browsing this forum: ClaudeBot and 1 guest