add SimpleNic

This commit is contained in:
Howard Mao
2017-06-26 20:27:47 -07:00
parent 8d029185ca
commit 6e3a173c93
5 changed files with 82 additions and 2 deletions

View File

@@ -41,3 +41,12 @@ 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