-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
266 additions
and
298 deletions.
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
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
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,6 +1,18 @@ | ||
package treecorel2.common | ||
package treecorel2 | ||
|
||
import chisel3._ | ||
import chisel3.util._ | ||
|
||
trait AXI4Config extends InstConfig {} | ||
trait AXI4Config extends IOConfig { | ||
val AxiProtLen = 3 | ||
val AxiIdLen = 4 | ||
val AxiUserLen = 1 | ||
val AxiSizeLen = 3 // NOTE: or 2? | ||
val AxiLen = 8 | ||
val AxiStrb = 8 | ||
val AxiBurstLen = 2 | ||
val AxiCacheLen = 4 | ||
val AxiQosLen = 4 | ||
val AxiRegionLen = 4 | ||
val AxiRespLen = 2 | ||
} |
This file was deleted.
Oops, something went wrong.
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
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,23 @@ | ||
package treecorel2 | ||
|
||
import chisel3._ | ||
import chisel3.util._ | ||
|
||
class StallControl extends Module with InstConfig { | ||
val io = IO(new Bundle { | ||
val globalEn = Input(Bool()) | ||
val stall = Input(Bool()) | ||
val st1 = Output(Bool()) | ||
val st2 = Output(Bool()) | ||
val st3 = Output(Bool()) | ||
}) | ||
|
||
protected val (tickCnt, cntWrap) = Counter(io.globalEn && io.stall, 3) | ||
protected val cyc1 = io.stall && (tickCnt === 0.U) | ||
protected val cyc2 = io.stall && (tickCnt === 1.U) | ||
protected val cyc3 = io.stall && (tickCnt === 2.U) | ||
|
||
io.st1 := cyc1 | ||
io.st2 := cyc2 | ||
io.st3 := cyc3 | ||
} |
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
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
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
Oops, something went wrong.