Skip to content

Commit

Permalink
emit inline pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
rachitnigam committed Aug 16, 2019
1 parent 2c79f2b commit f893577
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/backends/VivadoBackend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ private class VivadoBackend extends CppLike {
}

def emitFuncHeader(func: FuncDef, entry: Boolean = false): Doc = {
text(s"#pragma HLS INLINE") <@>
(if (entry)
vsep(func.args.map(arg =>
arg.typ match {
Expand Down

0 comments on commit f893577

Please sign in to comment.