Make FPU pipeline depths configurable

This commit is contained in:
Andrew Waterman committed 2014-02-28 13:39:59 -08:00
1 parent 98b830201a
commit c7110c8389
5 files changed
+17 -14

No files matched your search

+2 -2
View File
@@ -21,8 +21,8 @@ class Core(implicit conf: RocketConfiguration) extends Module
val ctrl = Module(new Control)
val dpath = Module(new Datapath)
val fpu: FPU = if (conf.fpu) {
val fpu = Module(new FPU(2,3))
val fpu: FPU = if (!conf.fpu.isEmpty) {
val fpu = Module(new FPU(conf.fpu.get))
dpath.io.fpu <> fpu.io.dpath
ctrl.io.fpu <> fpu.io.ctrl
fpu