185 Vector dot product

185 : 0b 010 111 001 : Vector dot product

Select Project 1 2 3 4 5 6 7 8 9 ON SW2
  • Author: Robert Riachi
  • Description: Compute the dot product of two 2x1 vectors each containing 2 bit integers
  • GitHub repository
  • Wokwi project
  • Extra docs
  • Clock: 0 Hz
  • External hardware:

How it works

a := in[0:1], b := in[2:3], c := in[4:5], d := in[6:7] - [a,b,c,d] => [ac * bd]

How to test

set input to 11011010 => which means [11,01]⋅[10,10] => as ints [3,1]⋅[2,2] => output should be 00001000 => (32) + (12) = 8

IO

# Input Output
0 clock segment a
1 reset segment b
2 none segment c
3 none segment d
4 none segment e
5 none segment f
6 none segment g
7 none none