-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add DatPath module template and a complete 9-inst ALU with more circu…
…its-like description
- Loading branch information
Showing
3 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
*.class | ||
*.log | ||
.DS_Store | ||
.graffle | ||
*.graffle | ||
|
||
# sbt specific | ||
.cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
//************************************************************************** | ||
//-------------------------------------------------------------------------- | ||
// ercesiMIPS Single Cycle Processor Data path | ||
// | ||
// Meng zhang | ||
// version 0.1 | ||
//-------------------------------------------------------------------------- | ||
//************************************************************************** | ||
|
||
package SingleCycle | ||
|
||
import chisel3._ | ||
import chisel3.util._ | ||
//import chisel3.iotesters.Driver | ||
//import utils.ercesiMIPSRunner | ||
class DatToCtlIo extends Bundle() | ||
{ | ||
val cmp_out = Output(Bool()) | ||
//val Imm32 = Output(UInt(32.W)) | ||
//val nPC_sel = Output(Bool()) | ||
} | ||
|
||
class DPathIo extends Bundle() | ||
{ | ||
//val host = new HTIFIO() | ||
val imem_addr = Output(UInt(32.W)) | ||
val dmem_addr = Output(UInt(32.W)) | ||
val dmem_datIn = Output(UInt(32.W)) | ||
val dmem_datOut = Input(UInt(32.W)) | ||
val ctl = new CtltoDatIo().flip() | ||
val dat = new DatToCtlIo() | ||
} | ||
|
||
class DatPath extends Module { | ||
val io = IO(new DPathIo ()) | ||
|
||
val alu9 = Module(new ALU9()) | ||
// | ||
// add your code | ||
// | ||
} |