use literalinclude directive to pull source directly from example package

This commit is contained in:
Howard Mao
2019-09-09 22:47:23 -07:00
parent fd5e0024a7
commit 646d7cba4c
5 changed files with 48 additions and 110 deletions

View File

@@ -70,10 +70,12 @@ class WithDTMTop extends Config((site, here, up) => {
/**
* Class to specify a top level BOOM and/or Rocket system with PWM
*/
// DOC include start: WithPWMTop
class WithPWMTop extends Config((site, here, up) => {
case BuildTop => (clock: Clock, reset: Bool, p: Parameters) =>
Module(LazyModule(new TopWithPWMTL()(p)).module)
})
// DOC include end: WithPWMTop
/**
* Class to specify a top level BOOM and/or Rocket system with a PWM AXI4