peteraa 7 anni fa
parent
commit
0bff4328da
4 ha cambiato i file con 1414 aggiunte e 2 eliminazioni
  1. +4
    -1
      oppgavetekst.org
  2. +0
    -1
      ov0/src/main/scala/daisyMatMul.scala
  3. BIN
      tdt4255figs/pngs/vector.png
  4. +1410
    -0
      tdt4255figs/vector.svg

ov0/src/main/scala/oppgavetekst.org → oppgavetekst.org Vedi File

@@ -179,12 +179,15 @@
else else
dataOut(T - vectorLength) dataOut(T - vectorLength)
#+end_src #+end_src
From the figure the principle of operation becomes clearer [inkskape drawing, rm sketch]
From the figure the principle of operation becomes clearer
To test your implementation you can run To test your implementation you can run
sbt> testOnly Core.daisyVecSpec sbt> testOnly Core.daisyVecSpec
in your sbt console in your sbt console
#+CAPTION: A vector with 4 registers
[[./tdt4255figs/pngs/vector.png]]
** Task 2 - Dot Product ** Task 2 - Dot Product
Your next task is to implement a dot product calculator. daisyDot should 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 calculate the dot product of two vectors, inA and inB. Ensure that validOut

+ 0
- 1
ov0/src/main/scala/daisyMatMul.scala Vedi File

@@ -57,7 +57,6 @@ class daisyMultiplier(dims: Dims, dataWidth: Int) extends Module {
matrixB.dataIn := io.dataInB matrixB.dataIn := io.dataInB
matrixB.writeEnable := io.writeEnableB matrixB.writeEnable := io.writeEnableB



//////////////////////////////////////// ////////////////////////////////////////
//////////////////////////////////////// ////////////////////////////////////////
/// Set up counter statemachine /// Set up counter statemachine


BIN
tdt4255figs/pngs/vector.png Vedi File

Before After
Width: 505  |  Height: 394  |  Size: 17KB

+ 1410
- 0
tdt4255figs/vector.svg
File diff soppresso perché troppo grande
Vedi File


Loading…
Annulla
Salva