
CardMCU C0 is an 8-bit microcontroller prototype implemented for Tiny Tapeout SKY130.
It contains:
The CPU accesses peripherals through a memory-mapped I/O interface.
GPIO input is connected to ui_in[7:0] and GPIO output is connected to uo_out[7:0].
The bidirectional pins are used as:
uio[0]: UART RXuio[1]: UART TXuio[2]: SPI MISOuio[3]: SPI SCLKuio[4]: SPI MOSIuio[5]: SPI CS_Nuio[6:7]: unusedThe design is intended to run at 10 MHz.
Apply a clock to clk and hold rst_n low to reset the design.
Release rst_n and allow the internal program ROM to execute.
For the current CardMCU C0 demonstration firmware, uo_out[7:0] should eventually become 0xFF.
UART RX should idle high on uio[0].
UART TX output is available on uio[1].
SPI signals are available on:
uio[2]uio[3]uio[4]uio[5]The current automated Cocotb test runs the design with a 10 MHz clock and verifies that the GPIO output reaches 0xFF.
No external hardware is required for the basic GPIO test.
A USB-to-UART adapter can be connected to the UART pins for serial testing.
An SPI peripheral may be connected to the SPI pins for SPI testing.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | GPIO_IN0 | GPIO_OUT0 | UART_RX |
| 1 | GPIO_IN1 | GPIO_OUT1 | UART_TX |
| 2 | GPIO_IN2 | GPIO_OUT2 | SPI_MISO |
| 3 | GPIO_IN3 | GPIO_OUT3 | SPI_SCLK |
| 4 | GPIO_IN4 | GPIO_OUT4 | SPI_MOSI |
| 5 | GPIO_IN5 | GPIO_OUT5 | SPI_CS_N |
| 6 | GPIO_IN6 | GPIO_OUT6 | |
| 7 | GPIO_IN7 | GPIO_OUT7 |