Add an AXI4 flavor of PWM peripheral.

Also closes #41.
This commit is contained in:
Paul Rigge
2019-01-24 17:13:40 -08:00
parent 304592f61e
commit 8cf06db45c
3 changed files with 56 additions and 14 deletions

View File

@@ -26,7 +26,12 @@ class WithExampleTop extends Config((site, here, up) => {
class WithPWM extends Config((site, here, up) => {
case BuildTop => (clock: Clock, reset: Bool, p: Parameters) =>
Module(LazyModule(new ExampleTopWithPWM()(p)).module)
Module(LazyModule(new ExampleTopWithPWMTL()(p)).module)
})
class WithPWMAXI4 extends Config((site, here, up) => {
case BuildTop => (clock: Clock, reset: Bool, p: Parameters) =>
Module(LazyModule(new ExampleTopWithPWMAXI4()(p)).module)
})
class WithBlockDeviceModel extends Config((site, here, up) => {
@@ -57,6 +62,8 @@ class RoccExampleConfig extends Config(
class PWMConfig extends Config(new WithPWM ++ new BaseExampleConfig)
class PWMAXI4Config extends Config(new WithPWMAXI4 ++ new BaseExampleConfig)
class SimBlockDeviceConfig extends Config(
new WithBlockDevice ++ new WithSimBlockDevice ++ new BaseExampleConfig)