forked from SpinalHDL/VexRiscv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into linux
# Conflicts: # src/main/scala/vexriscv/plugin/IBusSimplePlugin.scala # src/test/cpp/regression/main.cpp
- Loading branch information
Showing
13 changed files
with
315 additions
and
63 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
63 changes: 63 additions & 0 deletions
63
src/main/scala/vexriscv/demo/GenFullNoMmuNoCacheSimpleMul.scala
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,63 @@ | ||
package vexriscv.demo | ||
|
||
import vexriscv.plugin._ | ||
import vexriscv.ip.{DataCacheConfig, InstructionCacheConfig} | ||
import vexriscv.{plugin, VexRiscv, VexRiscvConfig} | ||
import spinal.core._ | ||
|
||
/** | ||
* Created by spinalvm on 15.06.17. | ||
*/ | ||
object GenFullNoMmuNoCacheSimpleMul extends App{ | ||
def cpu() = new VexRiscv( | ||
config = VexRiscvConfig( | ||
plugins = List( | ||
new IBusSimplePlugin( | ||
resetVector = 0x80000000l, | ||
cmdForkOnSecondStage = false, | ||
cmdForkPersistence = false, | ||
prediction = STATIC, | ||
catchAccessFault = false, | ||
compressedGen = false | ||
), | ||
new DBusSimplePlugin( | ||
catchAddressMisaligned = false, | ||
catchAccessFault = false | ||
), | ||
new DecoderSimplePlugin( | ||
catchIllegalInstruction = true | ||
), | ||
new RegFilePlugin( | ||
regFileReadyKind = plugin.SYNC, | ||
zeroBoot = false | ||
), | ||
new IntAluPlugin, | ||
new SrcPlugin( | ||
separatedAddSub = false, | ||
executeInsertion = true | ||
), | ||
new FullBarrelShifterPlugin, | ||
new HazardSimplePlugin( | ||
bypassExecute = true, | ||
bypassMemory = true, | ||
bypassWriteBack = true, | ||
bypassWriteBackBuffer = true, | ||
pessimisticUseSrc = false, | ||
pessimisticWriteRegFile = false, | ||
pessimisticAddressMatch = false | ||
), | ||
new MulSimplePlugin, | ||
new DivPlugin, | ||
new CsrPlugin(CsrPluginConfig.small), | ||
new DebugPlugin(ClockDomain.current.clone(reset = Bool().setName("debugReset"))), | ||
new BranchPlugin( | ||
earlyBranch = false, | ||
catchAddressMisaligned = true | ||
), | ||
new YamlPlugin("cpu0.yaml") | ||
) | ||
) | ||
) | ||
|
||
SpinalVerilog(cpu()) | ||
} |
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,61 @@ | ||
package vexriscv.demo | ||
|
||
import vexriscv.plugin._ | ||
import vexriscv.{plugin, VexRiscv, VexRiscvConfig} | ||
import spinal.core._ | ||
|
||
/** | ||
* Created by spinalvm on 15.06.17. | ||
*/ | ||
object GenMicroNoCsr extends App{ | ||
def cpu() = new VexRiscv( | ||
config = VexRiscvConfig( | ||
withMemoryStage = false, | ||
withWriteBackStage = false, | ||
plugins = List( | ||
new IBusSimplePlugin( | ||
resetVector = 0x80000000l, | ||
cmdForkOnSecondStage = false, | ||
cmdForkPersistence = false, | ||
prediction = NONE, | ||
catchAccessFault = false, | ||
compressedGen = false | ||
), | ||
new DBusSimplePlugin( | ||
catchAddressMisaligned = false, | ||
catchAccessFault = false, | ||
earlyInjection = false | ||
), | ||
new DecoderSimplePlugin( | ||
catchIllegalInstruction = false | ||
), | ||
new RegFilePlugin( | ||
regFileReadyKind = plugin.SYNC, | ||
zeroBoot = false, | ||
writeRfInMemoryStage = false | ||
), | ||
new IntAluPlugin, | ||
new SrcPlugin( | ||
separatedAddSub = false, | ||
executeInsertion = false | ||
), | ||
new LightShifterPlugin, | ||
new HazardSimplePlugin( | ||
bypassExecute = false, | ||
bypassMemory = false, | ||
bypassWriteBack = false, | ||
bypassWriteBackBuffer = false, | ||
pessimisticUseSrc = false, | ||
pessimisticWriteRegFile = false, | ||
pessimisticAddressMatch = false | ||
), | ||
new BranchPlugin( | ||
earlyBranch = true, | ||
catchAddressMisaligned = false | ||
), | ||
new YamlPlugin("cpu0.yaml") | ||
) | ||
) | ||
) | ||
SpinalConfig(mergeAsyncProcess = false).generateVerilog(cpu()) | ||
} |
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.