Saturday, July 2, 2016

aaaaaaaand...I've designed an Alto.

After seeing this fascinating blog post from Ken Shirriff about restoring a Xerox Alto computer, I realized much to my surprise, that my homebrew CPU project was, more or less, identical to the internal architecture of the Alto.  This doesn't mean I'm some kind of super genius on par with the PARC elite, but rather that by limiting myself to 7400-series logic as the basis for my CPU, and by deciding to use a 16-bit data/memory bus, that ultimately the most practical design was one centered around the 74181 ALU.

After reading about how the Alto is designed, I think I'm going to use it for further inspiration for how to design my own CPU.

As you can see from the dearth of posts to my blog, however, development has basically stalled indefinitely.  I'm hoping to start over yet again, this time by designing the whole CPU in Verilog/VHDL and uploading it to an FPGA.  That way I can validate the design and have a much better way to test and validate each component of the system: by interfacing my own boards with the FPGA core, I can confirm that the physical components behave identically to the verified and correct design as implemented in software.  One by one, I can reimplement the FPGA core's functional units in hardware, and eventually discard the FPGA all together.

This approach could end up being a bit more fun as well, since it means I can start by implementing some I/O devices, without having to have the whole CPU up and running first.  That way I can write some sample software for the CPU, to make sure I've got sufficient functionality built into the design.  Then when I actually do build the physical boards, I'll know that I'm not missing some critical functionality that will be difficult or impossible to hack in later.

Saturday, October 20, 2012

BusBoard backplane

I went ahead and purchased a couple pieces of BusBoard (from Amazon; free shipping since I have Prime!) and a pile of DIN-41612 VME-style connectors.  The connectors have three rows of 32 pins, but due to the BusBoard design, two of the rows are bound to the same bus.  Thus the net is 64 wires on the bus.  I got the DIN-41612 connectors from Phoenix Enterprises.

Here's what the finished backplane looks like:


There are 7 ports on top for component cards.  I also put right-angle male and female connectors on either side so I could daisy-chain backplanes together if needed for more component boards.


I will likely use a setup like this so that I can have the board I'm currently "interested" in be presented face-up instead of stuffed sideways.  For example, my first component card will be power, clock and control, and will likely live in this position for a while.  In the future, when there are, perhaps, I/O devices like an LCD or keypad, I can chain boards together like this to make a nice tidy system.


When cards are installed vertically, they'll look like this.  There's plenty of space between boards for any oversize components.


Here's a close-up of the BusBoard traces.  It's really well thought-out: one side of the bus is denoted with the "skinny" traces, while the other side is noted with the "thick" traces.  Thus it's simple to position components on the board to ensure you're connecting to the right pins on the bus.

Of course, the bus traces run the entire length of the board, so I'll need to invest in a battery-powered dremel tool or something so I can selectively break traces.  I can also stack a non-bussed protoboard over the BusBoard and connect them with standard DIN connectors if I end up in a situation where cutting traces is too much development effort.

Sunday, October 14, 2012

Reboot!

Hi, folks.  Been a while since I've posed anything here.  As you can imagine based on my lack of updates, I haven't been giving this project much attention.  So this weekend, I gave it some thought: "why am I not working on this project more?"

The answer was that while I have the design for everything ready to go, the sheer quantity of labor in soldering everything together was turning me off in favor of other avocations.

So how does one avoid having to do so much soldering, without giving up the project goal of using 7400-series logic?  After some searching, I came across BusBoard: http://www.busboard.us/pdfs/BPS-MAR-BB3U-001.pdf  This stuff is awesome -- it provides a set of zig-zag traces that make connecting DIN-style connectors to other components WAY easier.  And the boards are compatible with DIN-41512 VME-style backplane connectors.

So I've decided to reboot the project, based on these boards.  I'll first build a backplane with 7x DIN-41512 female connectors on top, a male right angle connector on the right, and a female right angle connector on the left.  That way I'll be able to daisy-chain the backplanes together to add more cards if I need them.  Each card will have a right-angle male connector on the end that mates with the backplane.

This arrangement gives me a 64-wire bus, which reduces the amount of point-to-point soldering substantially, and should also improve reliability and the looks of the finished product.

Since I'll be starting fresh with a new backplane design, this also gave me an opportunity to revisit my architecture and tweak it a bit.  I've made the following changes:


  1. Fixed 24-bit instruction format:
    • 5 bit instruction opcode
    • 2 bit "A" register address
    • 2 bit "B" register address
    • 15 bit data field
  2. Instruction opcodes no longer directly map to control signals on component boards.  Instead, I'll use EEPROMs or (cough) a microcontroller on each board to issue control signals.  Since instructions are only 5 bits, I can use a simple 512 byte (256x16) EEPROM and generate up to 16 control signals on each card.  If I go the microcontroller route, I can use cheapo MSP430s: 8 GPIO pins; 5 input (opcode), 3 output (shift register for arbitrary number of control signals).  The EEPROM would be best, but availability may be slim for such small ones.
  3. The old architecture required a "C" register bus, which has been removed; ALU instructions will write back to register A (A [op] B => A)
  4. I've added a couple interrupt lines to the architecture, since I have a feeling that it'll get annoying really fast to have to poll for things like keyboard input.  Having the ability to have a hardware module interrupt the CPU and run one of two service routines would be very helpful.
  5. The new design will be based exclusively on 74HC series chips; I made the mistake of mixing 74LS, 74HC, and 74HCT parts in various places in my current boards, which I believe contributed to a very poor reliability.

Here's the updated architecture:

  • Harvard architecture system with 64k (16 bits) instructions and 64kbyte (15 bits addr. x 16 bit words) RAM
  • 16-bit data words, little-endian
  • 24-bit instructions
    • 23-19: opcode
    • 18-17: register A select
    • 16-15: register B select
    • 14-0: 15 bits of data
  • Single-cycle design; falling clock signal triggers a new instruction on the bus; rising clock signal commits data to memory and registers
  • 64-wire bus:
    • 0-15: register A data
    • 16-31: register B data
    • 32-55: 24 bit instruction
    • 56: register A write/!read
    • 57: register B write/!read
    • 58: CLK
    • 59: !RST
    • 60: INT0
    • 61: INT1
    • 62: +3.3V
    • 63: GND
  • Instructions (more will be added later when I/O devices begin to appear)
    • NOP
    • LD RAM@[data] into A
    • LDR RAM@[B] into A
    • MOV A into B
    • MOVD [data] into B
    • ST [data] into RAM@[B]
    • STR A into RAM@[B]
    • STD A into RAM@[data]
    • ALU A [op] B into A (ALU opcode in [data] field)
    • SR shift A right one bit
    • SL shift A left one bit
    • JMP jump to [data]
    • JMPR jump to [A]
    • JMPZ jump to [data] if [B] == 0
    • JMPRZ jump to [A] if [B] == 0
    • JMPNZ jump to [data] if [B] != 0
    • JMPRNZ jump to [A] if [B] != 0
The trick now is to start rebuilding the various components.  To that end, I've gone ahead and ordered some busboards and DIN-41512 connectors.  I'll get the backplane put together and tested, then build a new clock/control unit, which will be driven by a microcontroller -- this will give me WAY more control over the clock and reset signals without having to fiddle with DIP switches.  I will also be able to display the clock speed on a 7-segment display right on the clock unit.  I'll then rebuild the instruction counter, and probably pony up for some ZIF sockets for the EEPROMs that contain the machine code.  After that, it should be much more simple to build boards that implement different instructions (and serve as the register file and RAM), since the bulk of the soldering will be avoidable with careful placement of the components on each board to intercept the various buses.

I'll of course keep the blog up to date as I make progress...

Saturday, November 12, 2011

Shift/Jump control board finished!

After a long hiatus, I finally got the last bits of wiring finished on the Shift/Jump unit control board.  I haven't actually powered it up yet to see if it works (even if I did, I wouldn't know for sure, since I still don't have a reasonable way to get a signal onto the A/B buses).  But at least it's all wired up and ready for the (comparatively simple) transfer boards, which move a 16-bit signal from one bus to another.

Front of the control board

Yay point-to-point wiring!

Installed in the Shift/Jump unit backplane

Monday, September 26, 2011

Nice guide to 74LS vs 74HC vs 74HCT

I've been tinkering recently with my Launchpad, with the goal of developing a 32-bit I/O expander that I can use to simulate traffic on my CPU's buses without having to run an actual program.  This will allow me to debug individual modules without having to wire up the entire system, upload test software into the EEPROMs, and trace the signals across a half dozen boards.

Along the way I've had to start taking a hard look at signal voltages for various stuff, because the TI MSP430 is a 3.6V part, and I need to drive my 5V TTL and CMOS logic with it.  This requires some logic level conversion, and as it turns out, some deeper knowledge about the differences in the chips I'm plugging into my breadboard.

I was under the mistaken impression that 74LS (TTL) logic was effectively identical to 74HC (CMOS) logic except for maximum frequency capability.  Turns out I was way off, and in fact you cannot mix these components in a system without performing logic level conversions.  I also thought that the 74LS series was the "most preferred" for new projects; but it looks like I'm wrong there too -- the 74HC series is the "best" these days.

I found this very helpful link that describes the differences in the series and notes the interoperability of them.  It also has a really nice breakdown of the basic 74 series chips, their pinouts, and how to do basic daisy-chaining of things like counters.  An excellent page to have bookmarked so that you're not constantly digging up datasheets just to see what the pinout is for a chip...

http://www.kpsec.freeuk.com/components/74series.htm

Tuesday, August 2, 2011

Launchpad!

Hey!  Believe it or not, I'm still here, and still working on this project.  Just not a whole lot of spare time these days :-)

This weekend I purchased something that I swore in my first post that I wouldn't -- a microcontroller.  I got myself a TI Launchpad development board.  It was only $4.30 with free shipping.  How could I pass that up?!

But don't fret -- I'm not planning to use it to take the easy route on any parts of the CPU.  I will, however, be using it to simulate certain components (primarily the register file) while I work on the other CPU components.  I'm finding that it's quite difficult to properly test the various units when I don't actually have registers with which to put data on the bus...

Once the Launchpad comes in I'll get familiarized with the interface, write a few "hello world" programs for the MSP430 and then get crackin' on the register file simulator...

Sunday, May 8, 2011

Xprotolab

I recently took delivery of a Gabotronics Xprotolab device.  For less than $50 I now have a fully functional 2-channel oscilloscope, 8-channel logic analyzer, arbitrary waveform generator, frequency counter, and spectrum analyzer, all in a tiny matchbox-sized little package.  Very very cool.

Here's the device as it was shipped to me:

Out of the box



Sitting on keyboard for scale
One of the reasons I wanted an oscilloscope was to investigate why my control board doesn't seem to function properly at 32kHz but does fine at 16kHz.  So I wired it up to my control board:


I have channel one hooked to the output clock that goes to the other boards, and channel two hooked to the output of the inverter where the clock signal comes right off the crystal.

What I found was interesting.  Here are the signals while in 16kHz mode:

CH1 (top): 16kHz output clock
CH2 (bottom): 32kHz input clock

Notice that the 32kHz signal coming from the crystal/inverter is nice and square, with equal time spent at high and low.  Then I switch into 32kHz mode (which causes the output from the clock to skip the ripple counter and simply feed directly into the output buffers:

CH1 (top): 32kHz output clock
CH2 (bottom) 32kHz input clock

Yikes!  The resulting clock (top signal) is heavily skewed toward high, with barely any time at all spent at low.  The input clock clearly shows why: what was once a neat square wave has turned into a badly squished sine wave.  I suspect this is due to excessive current draw out of the inverter circuit.  Since I'm using a basic clock circuit using a crystal, two capacitors, and an inverter, the current sink into the output stage of the inverter can have very dramatic effects on how the resulting signal looks.

Since in 32kHz mode the output is going through a different (presumably higher draw and/or capacitance) path, the crystal is not able to generate the even periodic pulses that it's supposed to.

While it's unlikely that I'm going to rework my control board just to fix this one issue, it was very interesting being able to finally see down into the actual signals being generated, instead of having to infer this behavior from traces on the logic analyzer.



Sunday, February 20, 2011

Shift/Jump unit control board in progress

I've started working on the shift/jump unit control board.  Today I implemented the MODSEL/!MODSEL logic and the LR selectors.  For reference, here's the schematic:


Back side of board -- point-to-point wiring being used in this case.

Front of the board -- the sharpie labels will get replaced with proper printed ones when finished.

Sunday, February 13, 2011

Interface

I went ahead and soldered the headers onto the perfboard that the control bits will end up on...

 

shift/jump unit backplane PCB is finished

All done: the shift/jump unit backplane is now complete.  I think it turned out pretty darn good, all things considered.

Solder-side view.  The gaggle of wires at the bottom is the
B register bus.  Since the pinout of the 40-pin socket is
such that the rightmost pin must go to the leftmost breakout,
there was no way to run the traces without using vias, which
I am not able to do.  So a little point-to-point soldering finishes it off.

Component side

I got these plastic snap-in feet from Jameco.  Must simpler than trying
to scrounge up brass standoffs and screws.

The worst section of etching on the board.  Surprisingly I only had to
re-route two of the traces.  Also notice the gummy stuff between the
pins -- I still haven't perfected my flux application, and I tend to use
too much, resulting in a gummy mess between all the pins.

I'm very happy with how the silkscreen came out.  It's surprisingly
legible, and I'm shocked it lined up as well as it does, given
that I had to align it pretty much blind.
The next steps will be building the four data transfer modules (each board will just be a pair of 74245 tristate buffers on an etched PCB), the control module (perfboard with point-to-point connections), and an A/B register bus simulator.

The A/B register bus simulator will just be a board with 32 DIP switches (16 for bus A and 16 for bus B) and a little control logic to set the outputs to hi-Z when the write signal is not asserted.  This will let me test whether the board actually works, before having actually constructed a working register file.

Sunday, January 30, 2011

shift/jump unit backplane PCB is etched

I got the backplane etched.  Not really my best work, but passable.  Before I started the etching I had to touch up a bunch of spots where the toner didn't transfer very well with an etch resist pen.  So that's what  all the big globs of copper are.  One improvement from my last PCB was that I was able to do a toner transfer to add a silkscreen to the top side.  Sweet!

Solder side of the board

Looks like these traces may have run together.

These traces seem to be OK, though they're on the same 10mil pitch.

Silk screen layer!

Quite readable...

shift/jump unit backplane PCB

I've started the etching process on the shift/jump unit backplane PCB.  Here's a "photo-realistic" view of what it will look like when done...let's see how close I get!

Saturday, January 29, 2011

shift/jump unit preview

I've decided on the final design for the shift/jump unit.  The unit itself implements four types of instructions:

  • Shift data in register A left one position and write to register B
  • Copy data in register A to register B
  • Jump (based on a few conditions) to an address encoded in the instruction
  • Jump (based on a few conditions) to an address in register A
All four of these instruction types use the same model: read from a bus, do something, then write to another bus.  To simplify construction, I'm building a backplane that makes these buses accessible, and will implement four instruction boards and a control board that plug into it.

The backplane will have SIP sockets, and the risers will have right-angle SIP headers that plug into them.  By expanding the buses from a 40-pin socket to a single row, it will make wiring much easier.

Here's what the backplane currently looks like:

You'll notice that the traces aren't complete -- since I can't do a two-sided board, I'll have to hand-wire some of the more complex bits, such as expanding the 40-pin register A/B bus to the proper SIP sockets.

Once the backplane is complete, it's just a matter of building the various boards one at a time.  Each board will be relatively simple, making building and troubleshooting much easier than trying to build the whole thing in one shot.

Welcome, Reddit readers!

Wow, one of my friends posted a link to my blog on Reddit.  Welcome!

The number of followers on my blog have gone up quite a bit -- I'm glad folks are interested.  Please take a few minutes to go back and read some of my first posts about my project to get a feel for what it's all about.

To quickly answer some of the questions/comments that came up in the Reddit thread:

  • Yes, I'm building a CPU out of discrete logic, primarily 7400-series.
    • I am "cheating" on the ALU by using 4x 74LS181 units -- though I hardly think that building an EEPROM program memory, register file, RAM unit, jump processing, and an I/O unit out of discrete components can be called "cheating".  Furthermore, who cares?
  • I'm not an EE, nor do I strive to be, so those of you that are will likely notice design flaws or inefficiencies that I won't see.  Feel free to point them out in the comments.
  • No, when this thing is done it won't run Minix or Linux or anything.  First off, it's a Harvard architecture, which would make porting any "real" OSes quite difficult.  Harvard architecture computers are more akin to the old IBM punched-card computers -- the program memory is separate from the computational memory.  Secondly, I'm not  a software developer, so porting an OS would be grievously difficult and not fun for me.
  • When it's all done, I plan to write a few simple programs in assembly language:
    • A loader that lets you select a program to run.  Being a Harvard architecture, all the programs will be on the EEPROM; the loader will just handle displaying a menu and letting you pick which one to run, and give the system somewhere to go once the program finishes.
    • A few simple games, such as Pong, maybe Tetris or something.
    • If I can get a serial port or maybe even an ethernet connection to work, it would be really awesome to write a text-based game like LORD or something and let folks on the internet connect to it and play.  I'd say that getting to that state would probably be the farthest I'd take the project.
  • Yes, I know it's been done before, in a hundred different ways.  In fact, it was projects like BMOW that gave me the confidence to think I could do it myself.
  • Yes, I am aware that there are things like FPGAs and microcontrollers and various other kinds of programmable logic that would make building something like this easier.  But what's the fun in that? I don't want to write a Verilog program describing a CPU and then simply compile it and upload it to some faceless chunk of silicon on a development board.  I wanted the visceral, pat-myself-on-the-back pride that comes with building something with my hands -- to create something from nothing.
  • There seem to be two distinct camps out there -- the "PCBs are lazy/cheating/etc" crowd, and the "If you're not designing PCBs you're doing it wrong" crowd.  Somehow, I'm somewhere in the middle.  As you can see from my posts, I'm dipping my toes in the PCB creation pool, and it's got pros and cons.
    • Pros
      • Can save hours of tedious soldering or wire wrapping when there are lots of connections to make.
      • Get it right the first time by designing in a schematic, with assurance that the end product will be wired up right.
      • Along with the above, avoids the dreaded "WTF just happened" after soldering 32 new wires down, and hunting in vain for the short that mysteriously appeared.
    • Cons
      • Time-consuming for simple designs
      • Complex designs really need to have vias and at least two layers to be feasible, and etching a two-layer board is beyond my capabilities...so this severely limits what I can do with PCBs.
      • Expensive -- everything from the copper clad boards to the etchant is expensive.  At least with point-to-point, the incremental cost is just a few dollars per board.
    • I suspect most of this project from this point forward will end up being a hybrid of PCB and point-to-point design.  PCBs will likely be etched for things like backplanes where there are a lot of parallel connections, and point-to-point boards will plug into the backplanes to get the more complex wiring.
I'm glad folks are interested -- I'll be sure to keep you posted with posts as I continue to make progress.  Stay tuned for info about the shift/jump unit.

Sunday, January 9, 2011

Program counter + instruction buffer is complete!

After about 6 hours working today, I managed to get the remainder of the program counter + instruction buffer complete.  Here's what the completed setup looks like:
 The leftmost board is the control unit, the center board is the program counter, and the rightmost board is the custom PCB I built that houses the instruction buffers.

I ended up spending about 2 of the 6 hours trying in vain to build a reliable cable to connect these two boards using standard SIP sockets and ribbon cable.  But it was all just too flaky and unreliable so I decided to brute-force it and just graft a piece of old perfboard between the two SIP headers, then wire-wrap and solder the interconnect.  It's not pretty, but it's definitely reliable, when is crucial when it comes to the more complex parts of the system.  I don't want to be chasing down a loose wire in a cable while I'm trying to debug the complex inner workings of the various execution units!

Here's how it looks with all the logic analyzer probes attached.

Success!  My test pattern appears properly on the analyzer.  I also double-checked the 40-pin sockets behind the buffers and found (and fixed) one short, but aside from that everything was perfect!

Now onward to the shift/jump unit.  I've got some new ideas about how to implement it that will take  most advantage of single-sided PCB etching without having to resort to a lot of convoluted, complex extra wiring.  More on that as I start getting the board designs finished...

Saturday, January 8, 2011

PCB try #3: WIN.

I decided that my previous PCB design for the instruction buffer was too complex for what it really needed to do.  The primary goal is to ensure that the execution modules take their instruction signals from buffers rather than directly from the EEPROMs.  So I scaled the PCB design back to just a single set of buffers (24 bits) and a pair of 40-pin sockets that will be used to distribute the instructions to the boards.  Recognizing that since it's a single-side board, I'm going to have to do some manual soldering anyway, I left the final leg from the buffers to the 40-pin socket empty, since trying to route those connections on a single-sided PCB would be a mess, and it will actually be tidier to simply solder in 24 wires on the back.

Here's the front with the components attached -- pretty slick, if I do say so myself!

Now I just need to get the last 24 wires soldered in and I can start working on the jump/shift unit.

Based on my experiences building this PCB, I expect that I'll implement the jump/shift unit in several "units," each of which is relatively easy to implement on a single-sided PCB.  I'll then wire those together using wire-wrap (or solder, depending on the situation).

Thursday, December 30, 2010

shift/jump unit schematics

I've finished up the draft schematics for the shift/jump unit. I've split the schematics into several sheet, using common nets to link them together. I'll be laying out the PCB for this unit soon (as soon as I finish up drilling and assembly the instruction buffer PCB).

This is (most of) the control logic for the module. Notice that there isn't much complicated logic here -- the first 9 bits of the instruction are reserved for control signals:
  • bits 23 and 22: module select
  • bits 21, 20, 19, 18, 17: instruction (control signals)
  • bits 16 and 15: register bus A select
  • bits 14 and 13: register bus B select
  • bits 12-0: 13 bits of in-instruction data
The output of the modules in this sheet are expanded control signals that determine which of the following tristate buffers are enabled (thus enabling the desired function):




And this beast is a giant multiplexer that determines whether the 13-bit data region of the instruction, or the 16-bit input register, gets sent to the instruction jump bus.


One more tristate controls whether the register control signals may reach the register A/B bus:

And the last sheet simply contains the board's connectors, making it easier to draw the other schematics without having to worry about the specific pinout of the connectors.

Updated CPU architecture

As you can see above, I've modified the CPU architecture slightly after giving some further thought to the design of the register file. Notice that the "C" register bus only exists between the ALU and the register file now, whereas before it went to all modules. Also notice that the A and B register buses are now bidirectional.

My thinking with the original design was that by predefining the function of each register bus (read/write) it would make the resulting circuitry simpler in the register file. But after further consideration, I realized that the most effective and efficient way to build the register file is to have each register be its own private board, with hooks into all three register buses.

In the new design, each register will be identical in circuitry, and a DIP switch will be used to identify it to the bus. So register W will have DIPs set to 00, X to 01, Y to 10, and Z to 11. That way I can take advantage of economies of scale -- I design and build one register unit, and then simply duplicate that unit 3 more times (not too bad if I'm printing PCBs). By focusing on the design of a single register, the overall design of the register file gets much simpler, even though the individual registers are more complex (for example, tristate buffers will need to be setup to properly address the buses depending on whether that register is selected on that bus). But the upsides are many. For one, I can build one register to start, and use it to test various aspects of the other units, before the other registers are complete. Using the DIP switches, I can simulate a register behaving like any of the four registers. Finally, it simplifies the cabling between the various units, since a single 40-pin cable can now carry all of the register traffic for all but the ALU. And the ALU will have one extra link to the register file. The register file itself will be a stack of four boards, all connected in parallel on the A, B, and C register buses.

Wednesday, December 29, 2010

Willem EEPROM Programmer!

My Willem EEPROM programmer came in the mail today. As discussed in an earlier post, I was hoping to get it working by running a Windows virtual machine on my Linux PC and routing the parallel port to it. However, it appears that QEMU is not quite up to snuff when it comes to effectively simulating a real parallel port. So, I ended up tossing a second hard drive in my computer and installed Windows XP on it, then setup Grub to dual-boot. It's kludgey, but it works, and I've confirmed that the programmer interfaces just fine.

Now I just need to get some data to program, and I can run the last set of tests on the program counter before moving on to the next stage of development.

Monday, December 27, 2010

PCB design lessons learned

I've learned a few lessons after printing out my first board.
  1. Be patient! In all aspects, designing a PCB takes patience.
    • Take your time doing the toner transfer with the iron. Firm, even pressure, and at least 5 minutes under the iron.
    • When soaking the board after ironing, be patient and let the warm water disintegrate the paper, or else you risk tearing the toner off of the board.
    • When etching, don't rush -- etching a 6x6 board took me over half an hour, and as evidenced by the shorted pads, I could have probably let it etch for another few minutes.
  2. 10mil traces are OK -- but be careful! they have a tendency to smear if ground on too hard during the transfer.
  3. Touch-up before etching -- carefully inspect every trace and touch up anything that looks remotely like a gap with an etch resist pen.
  4. Invest in a circuit pen -- would have saved me a lot of time repairing traces if I could have just dabbed some conductive ink in the gap.
  5. Trust and utilize the design constraints feature of your PCB utility. Maintain at least 10mil between all components -- any closer and the error from toner smearing and/or etching errors tends to cause shorts. I think I was lucky -- I had some components as little as 5mil apart and ignored the DRC whining at me. I should have listened.
The next board I build I'll try to follow all of these rules. And of course I'll keep you posted!