Saturday, April 30, 2022

Dive into an IBM Single Shot (SS) gate from an IBM 1130 SLT card

SINGLE SHOT GATE PURPOSE

These gates produce a single pulse of a given duration when triggered, thus converting some logic condition into a pulse that will in turn trigger some other gates. In practice these are edge triggered, the method called AC Trigger by IBM. When the input has a trailing edge, at the same time that the gate input is low, this gate produces a negative going pulse of a fixed duration. 

IBM SCHEMATIC OF AN SS GATE

Single Shot circuit from IBM 1130

The left side consists of the edge triggered input. On the actual card, the resistor is tied to ground thus always enabling this to emit pulses on the falling edge of the input signal. The resistors and inductor determine the fixed pulse time for this monostable circuit. It flips the output transistor on, driving the output low, then when the target time elapses the circuit resets, turning off the transistor.

COMPONENT PARTS IN THE SS GATE

The SS gate is implemented with:

  • half of an SS can
  • half of a FDD can
  • a 2391124 3.9uh coil
  • a 2390301 resistor pack(3@ 150ohms, 1@ 1.8K)
  • a 10ohm discrete resistor
  • sharing a 2390477 resistor pack (2@1K per SS)
  • a 2391304 capacitor (22pf)
The SS can is actually four separate transistors. Two of them are used for a single shot. The FDD is four separate dual-diodes, that is pairs of diodes tied together at one end. The single shot uses two of the pairs in the can. 

Thus we can see that a single shot uses four components and shares half of three more. A pair of single shots would use 11 components on the SLT board. 

Overview of SLT and cans used on the 6213 card in the IBM 1130

 BASICS OF SLT

Solid Logic Technology is a packaging technique that places discrete transistor and diode wafers on a small square of ceramic, along with printed wiring and printed resistors These are then sealed and covered with a metal can.

SLT can

The logic is mainly DTL - Diode Transistor Logic - where diodes are used to form the logical actions such as AND and a transistor amplifies (and inverts) the signal back to its target voltage levels. In some places IBM used ECL - Emitter Coupled Logic - for long signal runs or high power situations but their term for this is Current Switched. Since they invented ECL I guess they can call it whatever they wish.

Logic levels are nominally 0V for low and 3V for high. As with all logic families, there are bands of voltages which represent valid low and valid high signals, since it is unlikely to achieve exactly 0 and 3 due to resistances, other loads and similar electronic factors. 

In between the lowest voltage for a logic high and the highest voltage for a logic low is a forbidden band that provides separation for clearly detecting which state we are in and to provide some immunity from noise in the circuits. 

The output of a gate is set to provide a wider separation to allow for losses as the signal is connected to other gates. Thus, a gate will provide a higher guaranteed minimum voltage for logic high and a lower guaranteed maximum voltage for a logic low. 

The SLT circuits are powered by three standard voltage rails - +3V, -3V and +6V. Thus the standard pin layout for the small SLT cans has four terminals in the center that deliver +3, -3, +6 and ground connections. The standard assignments on the SLT boards hooks up the rails, for example +6 is always on pin B11 and ground is always on pin D08. 

THERE IS NOT A 1 TO 1 ASSOCIATION OF LOGIC GATE AND SLT CAN

Making the reverse engineering a bit more challenging is the fact that an SLT can may be a portion of a gate or often portions of several gates. Thus, a SS (Single Shot pulse generator) gate consists of portions of a FDD can and one SS can, plus several resistors and capacitors external to the cans but mounted on the SLT board near the cans. 

The FDD can is four dual diodes - that is all it is. One of the dual diodes is used along with an SS to form the Single Shot circuit. The other three dual diodes may be used for different logic gates on the same card. 

The workhorse gate of SLT is the AOI, which is AND-OR-INVERT. It has a set of diodes that isolate inputs so that if any of the inputs is low, the point where the diodes tie together is pulled down, otherwise it goes high. In other words, if all inputs are high then the tie point is high, otherwise it is low. The definition of the AND function.

AND-OR-INVERT can

Then there are diodes hooked past the tie point that will provide a high level to the transistor even if the AND side tie point is pulled low.  We can get a high to the transistor either way, from the OR input or from the AND function, thus it is an OR after the AND. Finally, the output of the tie point is passed through a transistor to invert it. This inverts the operation before, so that the AND function becomes a NAND and the or function becomes a NOR. 

IBM refers to these in both the normal and inverted logic sense, as the functions are mirrors of each other. It can be shown as a block with four normal inputs and the output has an inversion symbol, the block labeled A. It can also be shown with four inverted inputs and an normal output, with the block labeled OR. In either case, if any of the four inputs is low the output is high, otherwise the output is low. 

The AOI is made more extensible by providing a pin where additional diodes can be hooked to make the AND function larger than four inputs. Another pin adds additional diodes for more OR conditions to drive the gate. In support of these extensions, IBM provides blocks of diodes in an AOXb (AND-OR Extender) can. 

AND-OR extender can

AOI has a single gate on the can. The AOXb has two dual-input and one quad input extensions, thus can be used with up to three gates. The basic not circuit is an II, Isolating Inverter, which provides two not gates per can. 

Dual NOT gate can

Other cans on our board include the HPD, High Power Driver, which can drive 70mw of power and has two independent drivers. There is an AI which is an AND-INVERT without the or connection. The workhorse of state machines is the flip flop FF can which IBM also calls a multi gated trigger. There is one FF per can. 

FF can

The input gates are unusual as they are what IBM calls AC coupled inputs. Lets look at pins D and E for our discussion. If pin E is at logic low level, then whenever pin D transitions from high to low (a trailing edge), the flipflop is triggered to its reset state. However, if pin E is at logic high level, the resulting pulse when pin D has a trailing edge will be absorbed through pin E and does NOT trigger the gate.

These are drawn on IBM block diagrams as an inverted input which is called the gate and an input with an N which is the AC input or trigger. While a gate input is low, a transition on a trigger input will set or reset the FF (depending on which side of the FF it is placed). When the gate input is high , triggers are ignored. This gate has a gated trigger at D/E for reset, another gated trigger at A/B/C and in 3 is an extender to add even more AC trigger inputs. Similarly, J/K, F/G/H and pin 8 are AC triggers and extensions for the set side. 

Pins 11 and 4 provide the output and inverted output of the flip flop. Pin 7 and pin 12 are direct reset and set links, called DC Reset and DC Set, usually they would be connected through diodes such as with pins 1 and 2. 

Friday, April 29, 2022

Reverse engineering the SLT card prior to debugging, finalizing setup of test rig

SLT CARD 5806213 CAN BE TESTED AS BLACK BOX

The card that does not seem to be working properly is a 06213 card, for which there is no existing schematic or other documentation. While many cards in an 1130 have such drawings, not this one unfortunately. 

The suspect card

The functionality of the card is pretty clear cut - it produces the main clock phases A and B as well as advance pulses to move the system ring counters, called the T-clock and X-clock, around their eight position ring. One storage access cycle is one trip around the ring from T0 to T7 (or X0 to X7). 

It has a number of inputs that control its production of the pulses and therefore will cause the processor to run, single step or halt. Some are obvious - system reset lines, the Reset operator button, the mode control rotary switch and the Program Start operator button. 

Others look at the state of the processor to determine when to stop advancing the ring counters. If doing a Single Step, we emit one advance pulse per press of the Program Start button. If doing a Single Memory Cycle step, we start running at T0 and stop when we advance to T7. If doing a Single Instruction, we keep running until the signal arises that the processor is ready to start over with a fetch of the next instruction. 

The machine may be sitting in a wait state, but if an interrupt request arrives and we are in normal Run mode, it needs to start the CPU to process the interrupt. If one of the peripherals is cycle stealing, which is IBM's term for what is now called Direct Memory Access (DMA), then the advance pulse is going to move the X-clock not the T-clock, but only after completing a memory cycle (getting to state T7). 

The CPU Stop Latch is triggered by going into a wait state, by the Immediate Stop operator button and by errors such as a Parity Error on a memory read. This should also stop the processor from running so it too is an input to this card. 

A few instructions take more than the eight clock steps of a normal memory cycle, thus the machine needs to issue repeated T7 cycles while those longer processes are underway until it is time to finish the memory cycle or instruction. These include shift operations, arithmetic operations and certain kinds of branches. Those state signals are inputs to the card in order to cause it to provide all the cycles they need. 

Finally there are two special situations that this card has to recognize and work with - load/store modes and program load operation. 

If the machine rotary mode switch is set to Load or Display, pushing Program Start will either display the contents of the current word of core on the panel or write the value from the Console Entry Switches into core. Thus in this mode, we want to process a single memory access cycle of eight clock steps. 

In addition, the Program Load function will cause a card reader or paper tape reader to bootstrap the machine by reading a certain amount of data into memory and then execute it, all triggered by a push of the Program Load operator button. The controller electronics for the peripheral device will read the media and transfer the data into ascending core locations beginning at zero. The machine has to take memory access cycles for each word going into memory; this is triggered by a special input for Program Load coming from the peripheral controller. 

By setting up the various conditions to logic true or false (pullup to +3V or pulldown to 0), then feeding an oscillator signal into the card, we should see it make the appropriate outputs. The clock phases A and B, the clock advance pulses plus the Run state and an internal state Delay are all things I can look at. 

I should be able to stop the machine, then set a rotary mode control state and toggle the signals from the Program Start button. That should emit advance pulses, turn on Run and only stop when the appropriate conditions are set as inputs. For all modes except Single Step, we need to raise T7 to stop a memory cycle or instruction. 

As you can see, there are quite a few permutations of input conditions to check, but at least the most basic of functions can be validated fairly simply.

NEED TO UNDERSTAND THE CIRCUITRY TO DEBUG FAILURES AND FIX

If the card passes all its tests and we are pointing elsewhere in the machine for the source of the mystery oscillation of the Delay signal, we don't need the circuitry in this card. More likely, however, it is a problem in this card that must be diagnosed and repaired. Two 6213 cards, each failing in unique ways, suggests a couple of things to me. 

First, it suggests that these two cards are broken in their own ways and I will have to repair at least one to continue with the restoration. Second, it raises the concern that some catastrophic voltage excursion took place which damaged many cards. If that is the case it will be much harder to restore this system. 

I noticed that the rear of one of these cards has black magic marker on various solder pads - this may indicate that this was known to be bad and was being debugged by someone else. I hope it wasn't a 'junk' card meant for disposal that someone stuck in the machine when it was sold to the museum. 

Rear of 6213 card with black marker on some pads

REVERSE ENGINEERING THE CARD SUFFICIENTLY TO DEBUG

I don't have the card schematics and layout, but I do have two bookends that can help me reverse engineer the circuit so that I can figure out where it is going bad. 

The first bookend is the ALD (Automated Logic Diagram) of the 1130 which shows all the logic gates and their interconnections. There are flipflops (FF), And-Or-Invert (AOI) gates, And gates, Not gates, edge triggered inverters, single shots, switch debouncers and dot-OR 'gates' on the diagram for the card.

The second bookend is the physical card with its part numbers on the SLT cans and other components. These indicate which are AOI, FF or other functions for which there ARE circuit diagrams. Since I know the SLT can pin numbers for inputs and outputs, plus the card pin numbers for signals, I can beep out which cans are implementing each gate from the ALD.

The card has four pins that do not show up on the ALD, but they may have some connection to an internal state that would aid in debugging or checkout at the manufacturing plant even though not used inside the 1130 itself. If I can beep out those and relate them to the circuitry, it might let me observe some internal state more easily.

However, every single connection and pin from SLT cans or other components are accessible by touching the solder pad on the rear of the card. Thus, I can narrow down to the component(s) that are failing by varying my inputs and observing the the oscilloscope. 

If I do find bad components, I have the potential to repair the card. Other cards with different overall functions may have the same SLT can that is broken. If I can remove that from a donor card and substitute it for the defective can on this card, I could get it working. Since FFs, AOI and other cans are very common elements, this should be simple to do. 

The backstop, much harder, is to make a tiny PCB the size of the SLT can, using surface mount transistors, diodes, resistors etc as a replacement that can be put on the card in place of the failed can. There would be a time lag of two to three weeks for each can to be fabricated AND it wouldn't be original components in the machine. 

CLEANING UP THE TEST BOX AND GETTING NECESSARY CABLING

The SLT tester box I have had a modification made, introducing switches to break connections between the sockets for certain pins and the pins themselves in the card connector. The ones that were switched aren't the normal SLT power pins, so I really don't now why these mods were made.

I reversed them, so that now the sockets are all connected directly to the associated SLT connector pin. The sockets take a standard 4mm banana plug, of which I was in short supply. I have a suitable number on the way allowing me to cable up on Monday and do the testing. The banana plugs also fit into my bench power supplies, allowing a very convenient method of supplying power.

Wires with a banana plug will route various signals to a breadboard where I can implement pullup and pulldown resistors, add switches for signals I want to vary to put the card through its paces. 

Thursday, April 28, 2022

Switches/buttons in good shape, Diving into debugging of the machine state

TESTED SWITCH CONTACTS ON MACHINE

The pushbuttons and switches were all in pretty good shape, I imagine they were cleaned up by the prior restorers. Everything was good so I could move on to debugging of logic.

DEBUGGING FIRST PROBLEM

I hooked up my oscilloscope to begin chasing down the signals involved in the state machine that controls the processor starting, stopping, stepping and other basic functions. I found a signal behaving quite oddly. This signal, the Delay state flipflop, is on of a chain of three that start the machine running - Advance, Delay and Run. 

Main clock above and abnormal Delay FF signal below

As you can see from the signals, with the top yellow trace showing the main system clock at 2.25MHz, the bottom blue trace is oscillating much faster than any clock in the system. It appears to be about 12.72Mhz. I talked with the last restorer who was dealing with debugging this area of the machine. 

He mentioned that he had swapped in a card from a different 1130 system they used for spare parts. The 1130 did not work with that card either, but the symptoms were different. This suggests that at least one of these cards is bad, if not both. 

I decided to debug the card out of the machine, to simplify things considerably. So many machine functions spread across different boards and backplanes are involved in the central state machine behavior that it might require an unwieldy number of observations before I come across the problem or prove that this card is bad.

SETTING UP MY CARD DEBUGGING RIG

I have a handy appliance with SLT sockets and a breakout of each pin that is easily accessible. The SLT logic requires three power rails - +3, -3 and +6V - which I can easily generate with my bench power supplies including current limiting to avoid any damage during testing.

My SLT card debugging rig with the suspect card inserted

This card receives the oscillator at 2.25MHz and passes on clock pulses based on the run state machine inside. The double size SLT card has 38 input or output signals in addition to the power connections. The inputs are a number of machine conditions, the Prog Start and Reset pushbuttons, the oscillator input and similar state that determines whether to run, wait or single step. 

My function generator will produce the oscillator square wave that will drive the system. While I could slow down the oscillator rate that is not how the 1130 does single stepping style operations so I won't either. 

I can use pullup or pulldown resistors to set the logic levels of all the inputs and then observe the outputs to determine if there are any defective gates on the card. Conveniently I can debug both of the cards using the same setup. 

Wednesday, April 27, 2022

My plan for the next day or two will focus on validating that switches are working, not oxidized

 STATE LOGIC FOR THE 1130 DEPENDS ON SWITCHES ON CONSOLE

In some cases, both a positive and a negative signal must be generated when a switch is depressed. IBM accomplishes this with a DPDT switch whose poles produce the two opposing states. If one of them is not working correctly, as when a contact is oxidized so much it doesn't conduct, then the state machine can be very confused. 

I will therefore go through with a continuity meter, deoxidizing spray and burnishing tool to make sure that all the contacts are working properly. I will do this in four areas - the console display pedestal with its Mode rotary switch, the pushbuttons on next to the keyboard, the CE switches inside the top cover, and the console entry switches in front of the console typewriter.

Once that is done I can begin to hook up scopes and other tools to debug the state of the machine starting with the clocks and working outward. 

Discovered fault in 6V Power Supply, system powers up; beginning of logic debug

INVESTIGATING NON-ISOLATION OF DC SUPPLY 16.5 OUTPUT

The DC Supply 16.5V (nominal 12V) output should be fully isolated from any other circuit in the machine. It is produced by separate secondary windings on a power transformer, not tied to neutral, ground or any other wire. 

Bottom section (12v at 24A) is the 16.5V supply for +6V

As you can see from the diagram above, the raw DC that is hooked to the +6V Regulating Supply should be fully isolated. As such, adding one connection to the Regulating Supply cannot create a circuit and current flow with this. I did see 10V between the common output wire and the common output of the Regulator Supply, which definitely explains the flow of current and breaker triggering.

Regulating supply with 16.5 in, common wire connected only

It was time to look for sneak paths, miswired connections or component failures that might connect something in the DC Power Supply 12v at 24A section with any other wire in the 1130 such that it causes the symptoms I am experiencing.

The problem was indeed a sneak path, but not in the DC Power Supply. I had slid the +6V Regulating Supply into its mounting rails for my tests, but hadn't tightened the bolts that hold it in place. As a consequence, it sagged a bit and unbeknownst to me the heat sinks of the supply were contacting chassis ground! 

CORRECTED PROBLEM, VERIFIED ISOLATION,TESTED WITH ONLY COMMON TERMINAL 

I held it in place and tightened up the mounting bolts. These are accessible from deep inside the rear of the machine after swinging the logic gates out, just to explain why I didn't take that step initially when I was putting the supply in and out of the machine. 

The problem was gone! Time to hook up the common output lead and power up. That also worked fine, no tripping of the breaker and a solid 6V across the outputs. 

TESTING SUPPLY WITH BOTH WIRES CONNECTED, ADJUSTED 6V RAIL LEVEL

Turning on only the 6V Regulating Supply circuit breaker, but not the +3 and -3 supplies, makes it safe to energize for a brief period while I adjust the regulator potentiometer to get the +6V rail spot on its target voltage. I did set it as close to 6.00 as possible. To be extra careful, I went back and tweaked the other supply voltages to 3.00 and -3.00 as close as I could. 

BRINGING UP ALL POWER TO THE 1130

I flipped on all three circuit breakers for the logic rails, made sure the fuses were in place for all DC voltages (-3, +3, +6, +12 and +48), then switched on the processor. It came up, lights were displayed on the console panel, and I saw signs of life.

INITIAL OBSERVATIONS

The RUN lamp goes on immediately when the system is in Run mode, but putting it in single step (SS) mode kept it stopped. I suspect I may have a hot cycle steal that is forcing this to run, however other issues can cause this as well.

The console entry switches were set and indeed their values are gated into the IAR register while in Load mode. The Prog Stop button triggers interrupt level 5 just as it should. 

Of the CE controls, I found that Lamp Test worked but Storage Display did not, largely due to the machine being in a run state. There was no parity error indicated for the initial location (x0000) which suggests that at least that location of core memory is working properly. 

I smelled some smoke and found the CE Meter power box emitting wisps of smoke. I will have to check into that and figure out what is going wrong there. Fortunately this is not a mission critical function and to boot it is relatively easy to fix. 

Tuesday, April 26, 2022

+6V Power supply passes with flying colors, but something is still off here

INSTALLING POWER SUPPLIES AND WIRING THEM INTO THE SYSTEM

I closed up the DC Supply, the unit that provides the raw DC to the regulated power supplies like the one I am repairing. I slid it into the machine and began to wire up the two terminal blocks - the AC inputs side and the DC outputs, essentially.

DC Power Supply - raw DC outputs

Inserted in place, ready to wire up

TB-1 completed, TB-2 at bottom to do next

TB-2 completed, plastic safety cover on TB-1 but not yet TB-2

I then put the +6V Regulated Supply into the chassis and began wiring it up to the input from the DC Supply. I did not connect the load side - the logic circuits that are connected to the 6V rail. 

6V Regulated Supply ready to insert

TEST RESULTS WITH 6A, 12A, 18A AND 24A

With the power supply mounted in the 1130 chassis and its raw 16.5V DC input connected, I wired it to my resistor complex which lets me select 6A, 12A, 18A or 24A loading. The supply held up great, although with a bit of sag in voltage when I hit its full 24A rating. Since my expectation is that this 1130 will be closer to 15A maximum load and the average even less, I thought I was good to go. 

Resistor complex to load up the power supply

ADJUSTING +6V AT RAILS OF BACKPLANES IN 1130, BREAKER TRIPS

I removed my resistor complex, wired in the 1130 logic load. I first checked the resistance of the 6A load side and found it at 3.8 ohms, which means that the idle consumption will be teeny. With everything tidied up, I flipped on only the 6V supply, with a voltmeter on the logic backplane side to sense the delivered voltage, then powered up.

What I expected was minimal load and an opportunity to adjust the 6V rails to the middle of the target range, right on 6.00V. Instead, I heard the breaker click off immediately. This was disappointing indeed. Out came the supply and over to the bench to figure out what else had failed. 

MACHINE STILL GOOD ON BENCH AND AT HIGH LOAD - HMMMMM

With it hooked up and the 4A electronic load active, I powered it on and it was behaving properly. Perhaps it was a load based issue, thus I hauled it back over, slid it into the chassis and wired it up again with my resistor complex to give it high load.

It passed again! On a hunch, I connected only the Common (ground) side of the 6V load to the power supply and powered up. Click. Immediate breaker popping. This is quite mysterious.

The DC Supply that gives us 16.5VDC raw input should be completely isolated from the Common logic side. It is dead simple, a transformer secondary wired to a half wave rectifier and a filter capacitor. No connection from either of the output lugs to anything else in the machine nor to any kind of ground. This should be completely isolated.

However, all is not well in the world of the 1130, since the mere connection of one wire that should have zero path to the DC input causes an immediate overload and shutdown. This is going to require some investigating to figure out what has gone awry, most likely over in the DC Power Supply box.