-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vexii fiber now support FetchL1Plugin
- Loading branch information
Showing
2 changed files
with
27 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package vexiiriscv.fetch | ||
|
||
import spinal.core._ | ||
import spinal.lib._ | ||
import spinal.lib.bus.tilelink | ||
import spinal.lib.bus.tilelink.{DebugId, S2mSupport} | ||
import spinal.lib.misc.plugin.FiberPlugin | ||
|
||
|
||
class FetchFetchL1TileLinkPlugin(node : bus.tilelink.fabric.Node) extends FiberPlugin { | ||
val logic = during build new Area{ | ||
val fcp = host[FetchL1Plugin] | ||
fcp.logic.bus.setAsDirectionLess() | ||
val down = fcp.logic.bus.toTilelink() | ||
master(down) | ||
node.m2s.forceParameters(down.p.node.m) | ||
node.s2m.supported.load(S2mSupport.none()) | ||
node.bus.component.rework(node.bus << down) | ||
} | ||
} |
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