Skip to content

Commit

Permalink
Move CoreIO into base cpu file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Barocsi committed Jul 25, 2019
1 parent bec179f commit bd27852
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
12 changes: 9 additions & 3 deletions src/main/scala/base-cpu.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ import chisel3._
/**
* Base CPU module which all CPU models implement
*/
abstract class BaseCPU extends Module {

class CoreIO extends Bundle {
val imem = Flipped(new IMemPortIO)
val dmem = Flipped(new DMemPortIO)
}

class BaseCPU extends Module {
val io = IO(new CoreIO())

// These signals are not and should not be used in the CPU implementation at all -
// they correspond with the port<=>memory connection, but we are in the pipeline<=> port side
io.imem.bus <> DontCare
io.dmem.bus <> DontCare
io.imem.bus <> 0.U.asTypeOf(new MemPortBusIO)
io.dmem.bus <> 0.U.asTypeOf(new MemPortBusIO)
}
10 changes: 0 additions & 10 deletions src/main/scala/components/coreio.scala

This file was deleted.

0 comments on commit bd27852

Please sign in to comment.