Reverse Engineering Atari 'SLAGS' IC's

ColinD

Active member
Feedback
6 (86%)
Credits
1,367CR
atari_slag_lsi_extra.PNG


ColinD2014-11-10 19:54:33
 

ColinD

Active member
Feedback
6 (86%)
Credits
1,367CR
Right..... Comparing the Schems... The more complex variant with the 2 hold ? lines just uses an extra couple of gates.... so we have the extra 2 control lines to add in.... These are tied to 5v when not used so we need to base the final design on the last page.... Notice that are also not cascaded....

I think we are nearly there now :)

EDIT... BOO... this might be more complex than it seems.... for just the couple of extra pins !!! grrr..... There seems to be a lot of extras going on !!!

ColinD2014-11-10 19:54:01
 

ColinD

Active member
Feedback
6 (86%)
Credits
1,367CR
Just had a chat with Adam C (of the Pole Position Clone) and he said he will have a litttle look at it.....

This is nice.... We all need to work together, and at least I've got the ball rolling at the minute..... like I say, I'm really struggling to get my head around these 2 extra pins !!

Thanks for all your help,
Regards,
Colin
 

ColinD

Active member
Feedback
6 (86%)
Credits
1,367CR
Right.... This is over my head at the moment (The flopping term), but may make sense to Chris etc ?

From Adam.... ( I think when he says Phase its the Graphics Planes )

Ok.. so looking at the schematics, I can see that for Phase
0/1 and Phase 2/3 HLDA and HLDB are not used (tied high). And the shift
control for the equivalent circuits are generated by MOS0 and MOS1.
(Connected to the S0 and S1 pins on the 74ls299 shifters) - (This is the section I worked out - Col )

The boolean equations for those signals are:

S0 = MOS0 = LDMO | /MOFLIP;

S1 = MOS1 = LDMO | MOFLIP;

If you look at the ones for Phase 4/5 there's an extra
/MOHOLD term in there. (This is the extra 2 pins I couldn't suss - Col )

Phase 4:

S0 = MOS0 = LDMO | (/MHOLD4 & /MOFLIP);

S1 = MOS1 = LDMO | (/MHOLD4 & MOFLIP);

Phase 5:

S0 = MOS0 = LDMO | (/MHOLD5 & /MOFLIP);

S1 = MOS1 = LDMO | (/MHOLD5 & MOFLIP);

You can see why this makes sence.. in Phase 0/1 where this
is not needed the logic becomes:

S0 = MOS0 = LDMO | (1 & /MOFLIP) = LDMO | /MOFLIP;

S1 = MOS1 = LDMO | (1 & MOFLIP) = LDMO | MOFLIP;

(same as above)

Now I don't see /MHOLD on the input to the SLAG, but a quick
check shows that /?MHOLD is actually created by flopping the /NOROM signal on
page 3B. It's clocked by syclkB (which already goes to the SLAG) and is
gated by /LDMO. /LDMO is simply an OR of /GLD and BMO/PF which are booth
inputs to the SLAG.

--

-Adam
"Please don't judge my God by my inability to follow him" -
Chris Mollins
===============
www.onecircuit.com
www.mapleridge.net
===============

ColinD2014-09-19 21:00:20
 

cmjones01

Newbie
Credits
194CR
Great stuff. Thanks for the extra diagrams, Colin, and the analysis from Adam. It did made sense to me, when all taken together. The logic is now a bit bigger (uses a bit more than half an XC9572) because of the extra latches for the /MHOLD signals, and I had to split out the shift register mode select signals for each of motion object/playfield 0/1, but it's all logical (boom boom) enough.

Chris
 

ColinD

Active member
Feedback
6 (86%)
Credits
1,367CR
Adam adds....

I code mainly in verilog but I know you brits like VHDL. ;)
In which case it would look something like this...

I'm coding it from a SLAG perspective.. looking at only the
SLAG inputs, as if I were reverse engineering the SLAG.

flp, mo_pf, hld_n ld_n and phin are all inputs to the SLAG.

s0 <= ldmo or (hld_n and flp_reg);

s1 <= ldmo or (hld_n and not flp_reg);

ldmo_n <= ld_n or mo_pf;

ldmo <= not ldmo_n;

flop_proc : process (syclkB) is

if rising_edge(phin) then

if (ldmo_n = '0') then

hold_n <= norom_n;

flp_reg <= flp;

end if;

end if;

end process flop_proc;

Those S0 and S1 signals you would use to drive your
74ls299's.
 

ColinD

Active member
Feedback
6 (86%)
Credits
1,367CR
I had another look at the schematics tonight, and its all suddenly made sense now.... I don't know how I managed to miss the logic for the 2 extra inputs on the slags , but at least its all clear now....

Cheers, Col

ColinD2014-11-10 19:52:49
 

ColinD

Active member
Feedback
6 (86%)
Credits
1,367CR
Looking at the Schematics for the System 1 main board, there are about 5 Customs that can be reversed in much the same way :)

Basically using the LSI SP-286 Schematics and comparing to SP-277 the TTL version.

Might be useful in the future to investigate these....

Cheers, Col

ColinD2014-09-20 19:21:40
 

ColinD

Active member
Feedback
6 (86%)
Credits
1,367CR
Would it fit in one of these then ??? They cost $15

cpld_board.png


http://www.seeedstudio.com/depot/XC9572XL-CPLD-development-board-v1b-p-799.html

Cct-XC9572XL-CPLD-breakout-lv.png


Drop the 28 pins SLAGS into the footprint here and hook up the Supply Voltages to the Other pins.... You just have a little overhang at the top and the bottom but should be fine, maybe use longer pins to clear other parts nearby ?

cpld_pinout2.PNG


Would you hook the Power up like this ??

cpld_pinout3.png


ColinD2014-09-20 21:04:12
 

ColinD

Active member
Feedback
6 (86%)
Credits
1,367CR
Having a look at the data sheet the VCC_IO can't go more then 3.6V ? - So can't hook the 5v up to it ? - Whats the score there ?

The inputs are 5v tolerant but the outputs wont do 5v.....

Do we run it at 3.3v using the jumper ? and it's still enough to drive the outputs ?

Or do we have to add 5v Pullups to the 4 output pins and maybe tri state the output ?

Says the IC won't drive more then 6ma so might be a bit weak ? Hopefully not..... 1K pullups would be fine... although I'd probably go a little higher....

ColinD2014-09-20 21:50:43
 

cmjones01

Newbie
Credits
194CR
ColinD said:
Adam adds....

<p ="Msonormal"><o:p> </o:p>

<p ="Msonormal">I code mainly in verilog but I know you brits like VHDL. ;)
 In which case it would look something like this...<o:p></o:p>

<p ="Msonormal">I'm coding it from a SLAG perspective.. looking at only the
SLAG inputs, as if I were reverse engineering the SLAG.<o:p></o:p>

<p ="Msonormal">flp, mo_pf, hld_n ld_n and phin are all inputs to the SLAG.<o:p></o:p>

<p ="Msonormal"><o:p> </o:p>

<p ="Msonormal">s0 <= ldmo or (hld_n and flp_reg);<o:p></o:p>

<p ="Msonormal">s1 <= ldmo or (hld_n and not flp_reg);<o:p></o:p>

<p ="Msonormal"><o:p> </o:p>

<p ="Msonormal">ldmo_n <= ld_n or mo_pf;<o:p></o:p>

<p ="Msonormal">ldmo <= not ldmo_n;<o:p></o:p>

<p ="Msonormal"><o:p> </o:p>

<p ="Msonormal">flop_proc : process (syclkB) is<o:p></o:p>

<p ="Msonormal">if rising_edge(phin) then<o:p></o:p>

<p ="Msonormal">if (ldmo_n = '0') then<o:p></o:p>

<p ="Msonormal">hold_n <= norom_n;<o:p></o:p>

<p ="Msonormal">flp_reg <= flp;<o:p></o:p>

<p ="Msonormal">end if;<o:p></o:p>

<p ="Msonormal">end if;<o:p></o:p>

<p ="Msonormal">end process flop_proc;<o:p></o:p>

<p ="Msonormal"><o:p> </o:p>

<p ="Msonormal"><o:p> </o:p>

<p ="Msonormal">Those S0 and S1 signals you would use to drive your
74ls299's.<o:p></o:p>

That's basically what my code looks like, though the flip-flip is separated out into a 74LS378 model. I've tried to keep the VHDL structured like the original TTL so that other people can follow it in the future.

It's a real blessing that Atari made this reverse engineering method possible!

Thank you for coding in VHDL. We don't trust Verilog in Europe because there's nowhere near enough typing for it to work properly ;-)

Chris
 

cmjones01

Newbie
Credits
194CR
ColinD said:
Having a look at the data sheet the VCC_IO can't go more then 3.6V ? - So can't hook the 5v up to it ? - Whats the score there ??

Do we run it at 3.3v using the jumper ? and it's still enough to drive the outputs ?
I haven't looked at the schematic of that module in detail, but if it has a 3.3V regulator on it, it'll be fine. Because of the unique way in which TTL logic levels are defined, 3.3V is plenty to count as a logic 1.

Chris
 

ColinD

Active member
Feedback
6 (86%)
Credits
1,367CR
Just updated my post.... Yes you are right.... the 3.3 falls into the right window for the output... and has a jumper to hook up the regulated 3.3v to the VCC_IO.. sorted :)

ColinD said:
Having a look at the data sheet the VCC_IO can't go more then 3.6V ? - So can't hook the 5v up to it ? - Whats the score there ?

The inputs are 5v tolerant but the outputs wont do 5v.....

Do we run it at 3.3v using the jumper ? and it's still enough to drive the outputs ?

Or do we have to add 5v Pullups to the 4 output pins and maybe tri state the output ?

Says the IC won't drive more then 6ma so might be a bit weak ? Hopefully not..... 1K pullups would be fine... although I'd probably go a little higher....

ColinD2014-09-20 22:07:53
 

ColinD

Active member
Feedback
6 (86%)
Credits
1,367CR
Aha.... Those modules might be wider than the IC, so might have to make up a little carrier pcb so it will fit to prototype first !!

Might be time to fire up some pcb design software !!
 

ColinD

Active member
Feedback
6 (86%)
Credits
1,367CR
Having a pop at the pcb design a little more..... Have the Jtag connector on the left for programming , just need to add the surface mount power regulation section to the right hand side and maybe a few caps here and there..... Its a blooming tight fit though thats for sure.... Grrrrr......

ColinD2014-11-10 19:57:37
 

obcd

Active member
Credits
3,830CR
It would complicate construction, but in worst case you could use a sandwich of 2 pcb's. The bottom one could have the power regulator on it The top one would be the board you have now with some decoupling capacitors added. Just my 5 cents..
 

cmjones01

Newbie
Credits
194CR
Looking good - that should all fit, even if it is a bit of a squeeze!

It would be good to get the design working with an off-the-shelf board and a load of bits of wire first, then when we're confident that the idea is sound, get the actual PCBs made. I've got one XC9572XL prototyping board here, and those ones Colin posted the link to would be perfectly good too.

Chris
 
Top