-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetupSignals.scala
51 lines (44 loc) · 1.13 KB
/
SetupSignals.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package FiveStage
import chisel3._
import chisel3.core.Wire
import chisel3.util.{ BitPat, Cat }
/**
* Don't touch these
*/
class SetupSignals extends Bundle {
val IMEMsignals = new IMEMsetupSignals
val DMEMsignals = new DMEMsetupSignals
val registerSignals = new RegisterSetupSignals
}
class IMEMsetupSignals extends Bundle {
val setup = Bool()
val address = UInt(32.W)
val instruction = UInt(32.W)
}
class DMEMsetupSignals extends Bundle {
val setup = Bool()
val writeEnable = Bool()
val dataIn = UInt(32.W)
val dataAddress = UInt(32.W)
}
class RegisterSetupSignals extends Bundle {
val setup = Bool()
val readAddress = UInt(5.W)
val writeEnable = Bool()
val writeAddress = UInt(5.W)
val writeData = UInt(32.W)
}
class TestReadouts extends Bundle {
val registerRead = UInt(32.W)
val DMEMread = UInt(32.W)
}
class RegisterUpdates extends Bundle {
val writeEnable = Bool()
val writeData = UInt(32.W)
val writeAddress = UInt(5.W)
}
class MemUpdates extends Bundle {
val writeEnable = Bool()
val writeData = UInt(32.W)
val writeAddress = UInt(32.W)
}