Skip to content

Commit

Permalink
Fix: Properly define edge markers for low and high
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Jun 20, 2023
1 parent 337c24d commit cc050c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wavedrom/src/figure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,10 @@ impl Figure {
match state {
CycleState::X => definitions.has_undefined = true,
CycleState::Gap => definitions.has_gaps = true,
CycleState::PosedgeClockMarked => definitions.has_posedge_marker = true,
CycleState::NegedgeClockMarked => definitions.has_negedge_marker = true,
// NOTE: This is overeager for the definition on the High and Low
// marked states, but this is fine for now.
CycleState::PosedgeClockMarked | CycleState::HighMarked => definitions.has_posedge_marker = true,
CycleState::NegedgeClockMarked | CycleState::LowMarked => definitions.has_negedge_marker = true,
_ => {}
}
}
Expand Down

0 comments on commit cc050c3

Please sign in to comment.