ilo@chen_
← Projects
Computer-Aided VLSI System Design · Project 3

Barcode-configured convolution engine

The engine loads a 64 × 64 image, extracts an embedded Code 128 pattern, and uses the decoded configuration to set convolution stride and dilation. Eight local SRAM banks feed four processing elements. Each element combines nine weighted samples, rounds the fixed-point result and clamps it to an unsigned output byte. Address and valid signals accompany the four output lanes.

Drag to rotate · Scroll to zoom
IMAGE STOREWINDOW GENERATORFOUR REGISTERED OUTPUT LANES Pixel input4 × 8 bits Barcode shift4 × LSB SRAM 0 · 512 × 8SRAM 1 · 512 × 8SRAM 2 · 512 × 8SRAM 3 · 512 × 8SRAM 4 · 512 × 8SRAM 5 · 512 × 8SRAM 6 · 512 × 8SRAM 7 · 512 × 88 byte-wide outputs · 3 address groups Address and tap selectstride · dilation · row Bank output steering8 bytes · boundary zero fill Window registers3 rows × 8 byte registers Kernel weights9 signed bytes PE 1taps [0:+3] Output 1byte · addr · valid PE 2taps [1:+3] Output 2byte · addr · valid PE 3taps [4:+3] Output 3byte · addr · valid PE 4taps [5:+3] Output 4byte · addr · valid LOAD_IMAGE → LOAD_WEIGHT → CONV → DONEBANKED SRAM / 8 × 512 × 8REGISTERED WINDOWSFOUR OUTPUT LANESAddr ASRAM 0Addr ASRAM 1Addr BSRAM 2Addr BSRAM 3Addr BSRAM 4Addr BSRAM 5Addr CSRAM 6Addr CSRAM 7QTap selectWindow row 0Window row 1Window row 28 taps per rowPE 1taps [0:2] × 3 rowsLane 1PE 2taps [1:3] × 3 rowsLane 2PE 3taps [4:6] × 3 rowsLane 3PE 4taps [5:7] × 3 rowsLane 4Nine kernel weights are broadcast to all four PEs.PE / NINE PIPELINED MULTIPLIERSREGISTERED REDUCTIONPixel 1,1 · W7×3-stagePixel 1,2 · W8×3-stagePixel 1,3 · W9×3-stageΣPartial sum 1Pixel 2,1 · W4×3-stagePixel 2,2 · W5×3-stagePixel 2,3 · W6×3-stageΣPartial sum 2Pixel 3,1 · W1×3-stagePixel 3,2 · W2×3-stagePixel 3,3 · W3×3-stageΣPartial sum 3ΣRound · Q7Clip [0,255]PE 1 tap indices shown · PE 2 / 3 / 4 start at columns 1 / 4 / 5
Read data and configuration together

Four input pixels arrive together. Their least significant bits enter a shift register while the pixel data enters eight 512 × 8 SRAM banks. Four shifted comparisons align the incoming bit stream with the barcode mask.

Configure the window

The controller loads the kernel coefficients before entering CONV. The decoded configuration selects stride and dilation. Stride changes the distance between output windows; dilation changes the spacing between taps within one window.

Parallelize across output positions

Each processing element forms nine signed-weight products for its 3 × 3 window. Four PEs share the kernel and consume different windows. Banking makes the required image samples available to the parallel datapath.

Preserve the address–data pairing

Each lane rounds its accumulated sum at the seven-fractional-bit boundary and saturates the result to 0–255. Pipelined addresses and valid bits identify the output pixels; the finish indication marks completion.