diff --git a/oppgavetekst.org b/oppgavetekst.org index b32271f..bb0d93d 100644 --- a/oppgavetekst.org +++ b/oppgavetekst.org @@ -188,6 +188,15 @@ #+CAPTION: A vector with 4 registers [[./tdt4255figs/pngs/vector.png]] + This shows a vector with 4 registers. Row 1 shows cycles 0 to 3, row 2 shows 4 - 7 etc. + After writing the write enable signal is turned off, thus the values held in the registers are + not overwritten. + + In RTL the black box surrounding the vector shows only the inputs and outputs. The figure shows + the corresponding black box to the last column in the previous figure + + [[./tdt4255figs/pngs/vectorBB.png]] + ** Task 2 - Dot Product Your next task is to implement a dot product calculator. daisyDot should calculate the dot product of two vectors, inA and inB. Ensure that validOut diff --git a/tdt4255figs/pngs/vectorBB.png b/tdt4255figs/pngs/vectorBB.png new file mode 100644 index 0000000..71dfe58 Binary files /dev/null and b/tdt4255figs/pngs/vectorBB.png differ diff --git a/tdt4255figs/vectorBB.svg b/tdt4255figs/vectorBB.svg new file mode 100644 index 0000000..65ca546 --- /dev/null +++ b/tdt4255figs/vectorBB.svg @@ -0,0 +1,379 @@ + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + data in + write enable + data out + 1 + 1 + 0 + Cycle 3 + + + + + + data in + write enable + data out + 0 + 0 + 1 + Cycle 7 + + + + + data in + write enable + data out + + 0 + 1 + Cycle 11 + 1 + +