remove SimpleNIC

This commit is contained in:
Howard Mao
2017-08-31 11:03:11 -07:00
parent 171abb54e7
commit 91df4098f3
6 changed files with 1 additions and 63 deletions

View File

@@ -33,22 +33,6 @@ class WithSimBlockDevice extends Config((site, here, up) => {
}
})
class WithLoopbackNIC extends Config((site, here, up) => {
case BuildTop => (p: Parameters) => {
val top = Module(LazyModule(new ExampleTopWithSimpleNIC()(p)).module)
top.connectNicLoopback()
top
}
})
class WithSimNetwork extends Config((site, here, up) => {
case BuildTop => (p: Parameters) => {
val top = Module(LazyModule(new ExampleTopWithSimpleNIC()(p)).module)
top.connectSimNetwork()
top
}
})
class BaseExampleConfig extends Config(
new freechips.rocketchip.chip.DefaultConfig)
@@ -66,12 +50,6 @@ class SimBlockDeviceConfig extends Config(
class BlockDeviceModelConfig extends Config(
new WithBlockDevice ++ new WithBlockDeviceModel ++ new BaseExampleConfig)
class LoopbackNICConfig extends Config(
new WithLoopbackNIC ++ new BaseExampleConfig)
class SimNetworkConfig extends Config(
new WithSimNetwork ++ new BaseExampleConfig)
class WithTwoTrackers extends WithNBlockDeviceTrackers(2)
class WithFourTrackers extends WithNBlockDeviceTrackers(4)

View File

@@ -41,12 +41,3 @@ class ExampleTopWithBlockDevice(implicit p: Parameters) extends ExampleTop
class ExampleTopWithBlockDeviceModule(l: ExampleTopWithBlockDevice)
extends ExampleTopModule(l)
with HasPeripheryBlockDeviceModuleImp
class ExampleTopWithSimpleNIC(implicit p: Parameters) extends ExampleTop
with HasPeripherySimpleNIC {
override lazy val module = new ExampleTopWithSimpleNICModule(this)
}
class ExampleTopWithSimpleNICModule(outer: ExampleTopWithSimpleNIC)
extends ExampleTopModule(outer)
with HasPeripherySimpleNICModuleImp