Skip to content

Commit

Permalink
remove some debug isntrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Nov 29, 2023
1 parent bf724d5 commit fb2cf89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions examples/sim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ fn main() {
// TODO: maybe filter
signals_to_print.push((name.clone(), expr.clone()));
}
signals_to_print.push(("914 (~f_ack)".to_string(), ExprRef::from_index(914)));
signals_to_print.push(("915".to_string(), ExprRef::from_index(915)));
signals_to_print.push(("931".to_string(), ExprRef::from_index(931)));
signals_to_print.sort_by_key(|(name, _)| name.clone());
}

Expand Down
2 changes: 1 addition & 1 deletion src/sim/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn compile_expr(
.map(|s| s.kind.clone())
.unwrap_or(SignalKind::Node);
let tpe = compile_expr_type(expr, locs, ctx);
let do_trace = expr_ref.index() == 915;
let do_trace = false; // set to true for debugging
Instr {
dst,
tpe,
Expand Down

0 comments on commit fb2cf89

Please sign in to comment.