Why choose a monolithic logic chip when you can have all of them in one?
The Polygate is a configurable 4-channel logic chip that allows you the modularity of gate behaviour while keeping things acting fast in hardware (minimal register use) like a normal 74xx CMOS IC, all in the same package. The problem I was aiming to solve came down to wanting multiple, specific gates to be available in a single 74xx chip to slim down Ben Eater's breadboard CPU. Realistically, you'd need some additional logic to configure each gate anyways, but this project was less about it's utility and more about getting back into digital chip design (see my EDLO chip), and hopefully getting it taped out this time. One thing I didn't do last time that I want to do this time is really polish this repository, which includes better info and usage docs, gate-level testing, and actually getting it taped out to compare simulation with reality.
- Tiles: 1x1
- Cells used: 160
- PDK: gf180mcuD
- Shuttle: TTGF26c
TODO: Include architecture image
- 4 independently configurable gate channels
- Each channel includes:
- A and B inputs
- Q and nQ outputs
- Control pin for configuring the channel's logic
- Output enable pin
- Gate functions include:
- AND (
Q = A & B) - OR (
Q = A | B) - XOR (
Q = A ^ B) - Shift register (8-bit)
- AND (
TODO: Test local build instructions
- Make sure you have Docker and VS Code installed (waiting for Zed to support dev containers ;-;)
- Clone this repository and open in VS Code
- Once opened, you'll be prompted to "Reopen in a Dev Container", choose yes
- If not prompted, open the command pallette and find
> Open folder in Container
- If not prompted, open the command pallette and find
- Wait for the container to load
- The first load of the dev container will be slow as its downloading necessary toolchain files
- Subsequent loading should much shorter
- Once the container is loaded, open a terminal and enter the following:
cd /workspaces/ttgf-polygate./tt/tt_tool.py --gf --create-user-config(only need to run this once for initial hardening)./tt/tt_tool.py --gf --harden(run this if you need to reharden)
- Once the chip is hardened, enter
cd testandmake -Bto run all tests- For gate-level testing, refer to the Tiny Tapeout local hardening documentation
- If you want to create a rendered image of the chips layout, run
cd /workspaces/ttfg-polygateand./tt/tt_tool.py --gf --create-png
Read the documentation for project
- Tiny Tapeout (everything you need to know about this program)
- Chip Verify (wonderful Verilog reference and design guides)
- HDL Bits (great tutorials to learn Verilog)
