
AURA: Automated Undercover Risk & Anomaly Detector
Program: MIT Beaver Works Summer Institute (BWSI), Basics of ASICs
Team: OpenLane Odyssey
Implementation: SystemVerilog · SKY130 · Tiny Tapeout
AURA is an eight-channel sensor anomaly detector implemented as a small digital hardware design. Its purpose is to learn a baseline from a set of calibration readings and then identify later readings that differ sufficiently from that baseline.
The design is organized into two operating stages:
The current implementation is a compact, sequential design. It reuses a subtractor and squaring multiplier across calibration and detection instead of building separate arithmetic units for every operation.
The diagram shows the main dataflow. Calibration produces two stored profiles: the mean profile and the sum-of-squared-deviations (SSD) profile. During detection, the current sample is compared with the corresponding channel mean, and its squared deviation is checked against that channel's stored threshold.
The architecture is per-channel: it does not calculate cross-channel covariance or a full covariance matrix. The SSD value is an unnormalized sum of squared deviations, not a normalized statistical variance. Those distinctions matter when interpreting the algorithm and its thresholds.
| Property | Current design |
|---|---|
| Number of channels | 8 |
| Sample width | 8 bits |
| Sample interpretation | Signed two's-complement values |
| Calibration set | 8 samples per channel |
| Calibration input volume | 64 bytes per pass |
| Calibration passes | 2 |
| Detection input | 8 bytes per reading, one channel at a time |
Calibration samples are streamed in row-major order: each of the eight sample rows contains one value for each of the eight channels. The same 64-byte calibration set is supplied for both passes.
Calibration builds a baseline independently for each channel. It uses two passes over the calibration input.
For each channel, AURA accumulates its eight calibration samples:
$ S_i = \sum_{k=0}^{7} x_{k,i} $
The mean is calculated by dividing the sum by eight. In the hardware, division by eight is implemented as an arithmetic right shift by three bits:
$ \mu_i = S_i \texttt{>>>} 3 $
Here, $x_{k,i}$ is calibration sample $k$ from channel $i$, and $\mu_i$ is that channel's stored mean. Because this is signed integer hardware arithmetic, the result follows arithmetic-right-shift semantics rather than floating-point division.
The design stores one mean for each of the eight channels in the mean profile.
The same calibration samples are streamed again. For each sample, the design subtracts its channel's stored mean, squares the deviation, and adds the result to that channel's running total:
$ SSD_i = \sum_{k=0}^{7}(x_{k,i}-\mu_i)^2 $
The final total is stored in the SSD profile (the RTL may refer to this storage as variance_profile). This is an unnormalized sum of squared deviations. It is not divided by eight or by seven, and it is not a full variance-covariance calculation.
After calibration, AURA receives a new reading as eight sequential signed bytes, one byte per channel.
For each channel $i$, it calculates the deviation from the stored mean and squares it:
$ d_i = r_i - \mu_i $
$ d_i^2 = (r_i-\mu_i)^2 $
The channel is marked as anomalous when:
$ d_i^2 > 2 \times SSD_i $
The comparison is performed independently for each channel. AURA aggregates the channel results: if any channel exceeds its threshold during the reading, the anomaly flag is asserted. The anomaly_valid output indicates when the result for the completed eight-byte reading is valid; in the current design it pulses one cycle after the eighth sample is received.
The multiplier and subtractor are reused from calibration Pass 2. The stored mean and SSD profiles provide the reference values during detection.
Rather than instantiate separate arithmetic hardware for every stage, the controller selects the appropriate inputs and reuses:
During calibration Pass 2, the squared deviation is added to the channel's SSD total. During detection, the same squared-deviation result is sent to the threshold comparison.
This sequential resource-sharing strategy reduces the amount of duplicated arithmetic logic. The implementation was structured to fit within two Tiny Tapeout tiles, compared with an earlier matrix-multiplication-based approach that required nine or more tiles.
A byte counter tracks progress through the calibration streams and detection reading. Channel indexing selects the corresponding mean and SSD entries. The controller sequences the two calibration passes and then the detection operations, while multiplexers route values through the shared datapath.
The design uses parameter declarations such as N, DW, SUM_W, DEV_W, and VAR_W to describe channel count and datapath widths. The implemented and verified configuration described here is the eight-channel, eight-bit design; changing parameters should not be assumed to work without checking all dependent widths, counters, arrays, and wrapper logic.
The Tiny Tapeout wrapper exposes the data and control signals through the standard input/output buses.
| Signal | Bit(s) | Purpose |
|---|---|---|
ui_in |
[7:0] |
Serial 8-bit sensor/calibration data byte |
uio_in |
[0] |
Calibration start control |
uio_in |
[1] |
Calibration input/load enable |
uio_in |
[2] |
Detection input/load enable |
uo_out |
[0] |
calib_done — calibration completion status |
uo_out |
[1] |
anomaly_flag — indicates that an anomaly was detected |
uo_out |
[2] |
anomaly_valid — indicates that the completed reading's result is valid |
uio_out |
all | Driven to zero in the current wrapper |
uio_oe |
all | Driven to zero in the current wrapper |
The table documents the wrapper-level mapping. For exact cycle-by-cycle control timing, consult the top-level RTL and its testbench; do not infer a complete transaction protocol from the signal names alone.
Every control input is a one-clock-cycle pulse, with the data byte on ui[7:0] at the same time.
rst_n low, then release it.uio[0] (calib_start).uio[1] (calib_ld_en).uo[0] (calib_done) to go high.uio[2] (reading_ld_en).uo[2] (anomaly_valid) pulses, read uo[1] (anomaly_flag). It holds its value until the next reading finishes.Notes:
calib_done is high.calib_start takes priority over calib_ld_en if both are pulsed together.calib_start. Use rst_n to resynchronize.The project includes testbench-based verification using cocotb and SystemVerilog self-checking tests. These tests exercise the calibration and detection flow and check the design's outputs against expected behavior.
For a reproducible result, run the repository's documented simulation commands and report the simulator, test names, and pass/fail output in the project repository. A testbench's existence should not be presented as proof of exhaustive verification.
The design is written in SystemVerilog and targets the SKY130 process using the Tiny Tapeout / OpenLane flow. The project work includes RTL development, simulation and debugging, synthesis/physical-design checks, and preparing the design for the Tiny Tapeout submission flow.
Relevant implementation details for this project include the SKY130 HD standard-cell library and the physical-design work required to resolve antenna-rule issues. The final repository should retain the actual configuration files and reports used for the submitted build so that implementation claims can be checked against the generated artifacts.
AURA is an educational hardware prototype. Its current approach has several important limitations:
deviation² > 2 × SSD is the implemented decision rule. It is not a universally calibrated statistical confidence bound.AURA should therefore be described as a compact prototype for exploring hardware-based anomaly detection, not as a validated security, safety, or production monitoring system.
docs/images/aura-architecture.svgdocs/images/aura_architecture_preview.pngREADME.mdDeveloped as part of the MIT Beaver Works Summer Institute (BWSI) Basics of ASICs program by Team OpenLane Odyssey.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | Data byte in, bit 0 (calibration byte or reading channel byte) | calib_done -- high once calibration has finished | calib_start -- pulse once to begin calibration |
| 1 | Data byte in, bit 1 (calibration byte or reading channel byte) | anomaly_flag -- high if the last reading was flagged anomalous (valid once anomaly_valid has pulsed) | calib_ld_en -- pulse once per calibration byte on ui[7:0] |
| 2 | Data byte in, bit 2 (calibration byte or reading channel byte) | anomaly_valid -- one-cycle pulse marking anomaly_flag as freshly updated | reading_ld_en -- pulse once per reading-channel byte on ui[7:0] |
| 3 | Data byte in, bit 3 (calibration byte or reading channel byte) | ||
| 4 | Data byte in, bit 4 (calibration byte or reading channel byte) | ||
| 5 | Data byte in, bit 5 (calibration byte or reading channel byte) | ||
| 6 | Data byte in, bit 6 (calibration byte or reading channel byte) | ||
| 7 | Data byte in, bit 7 (calibration byte or reading channel byte) |