Skip to content

Commit

Permalink
make TruthTable in DecodeTable lazy (#4178)
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer authored Jun 15, 2024
1 parent 4de3581 commit 2314926
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class DecodeTable[I <: DecodePattern](patterns: Seq[I], fields: Seq[DecodeField[

def bundle: DecodeBundle = new DecodeBundle(fields)

val table: TruthTable = TruthTable(
lazy val table: TruthTable = TruthTable(
patterns.map { op => op.bitPat -> fields.reverse.map(field => field.genTable(op)).reduce(_ ## _) },
fields.reverse.map(_.default).reduce(_ ## _)
)
Expand Down

0 comments on commit 2314926

Please sign in to comment.