瀏覽代碼

make pseudocode render

master
Peter Aaser GitHub 7 年之前
父節點
當前提交
8ac9a4ea05
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      ov0/src/main/scala/oppgavetekst.org

+ 4
- 2
ov0/src/main/scala/oppgavetekst.org 查看文件

@@ -170,13 +170,15 @@
** Task 1 - Vector
The first component you should implement is a register bank for storing a vector.
This module works as follows:
#+begin_src scala
// pseudocode

let dataOut(T) = if (T - vectorLength) < 0 then 0 else
if enableIn(T - vectorLength)
then dataIn(T - vectorLength)
else
dataOut(T - vectorLength)
#+end_src
From the figure the principle of operation becomes clearer [inkskape drawing, rm sketch]
To test your implementation you can run


Loading…
取消
儲存