diff options
| author | Richard Lin | 2017-04-13 22:59:00 -0700 |
|---|---|---|
| committer | GitHub | 2017-04-13 22:59:00 -0700 |
| commit | e07248b8f6022fafdb84f5d1c0ebe3fc90a5475a (patch) | |
| tree | f2bb938fd35651b4fc7b88cbcd20e163cc75dd2e /src/main/scala/chisel3/util | |
| parent | 97902cdc53eec52aa0cd806b8cb49a0e3f2fb769 (diff) | |
Module Hierarchy Refactor (#469)
Diffstat (limited to 'src/main/scala/chisel3/util')
| -rw-r--r-- | src/main/scala/chisel3/util/BlackBoxUtils.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/chisel3/util/BlackBoxUtils.scala b/src/main/scala/chisel3/util/BlackBoxUtils.scala index 084d58f9..fbcf4a59 100644 --- a/src/main/scala/chisel3/util/BlackBoxUtils.scala +++ b/src/main/scala/chisel3/util/BlackBoxUtils.scala @@ -7,7 +7,7 @@ import chisel3.core.ChiselAnnotation import firrtl.transforms.{BlackBoxInline, BlackBoxResource, BlackBoxSourceHelper} trait HasBlackBoxResource extends BlackBox { - self: Module => + self: BlackBox => def setResource(blackBoxResource: String): Unit = { annotate(ChiselAnnotation(self, classOf[BlackBoxSourceHelper], BlackBoxResource(blackBoxResource).serialize)) @@ -15,7 +15,7 @@ trait HasBlackBoxResource extends BlackBox { } trait HasBlackBoxInline extends BlackBox { - self: Module => + self: BlackBox => def setInline(blackBoxName: String, blackBoxInline: String): Unit = { annotate(ChiselAnnotation( |
