185 Vector dot product

185 : Vector dot product

Design renderSelect Project123456789ONSW2
  • Author: Robert Riachi
  • Description: Compute the dot product of two 2x1 vectors each containing 2 bit integers
  • GitHub repository
  • Clock: 0 Hz

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

#InputOutput
0clocksegment a
1resetsegment b
2segment c
3segment d
4segment e
5segment f
6segment g
7