Skip to content

Commit 98de42a

Browse files
Work on simple execution core
1 parent 3d8ad93 commit 98de42a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/main/scala/main/Core.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import chisel3._
2+
import chisel3.util._
3+
import _root_.circt.stage.ChiselStage
4+
5+
object Operation extends ChiselEnum {
6+
val Add, Sub, Mul, Div, JumpE, JumpNE = Value
7+
}
8+
9+
class Core extends Module {
10+
val io = IO(new Bundle {
11+
val operation = Input(Operation());
12+
val immediate_a = Input(UInt(8.W));
13+
val immediate_b = Input(UInt(8.W));
14+
});
15+
}

0 commit comments

Comments
 (0)