← Back to Pull requests

fix(flip-flops): resolve inconsistent latch vs flip-flop concepts #777

Closed
unknown closed this pull request without merging on May 31, 2026 13:11 UTC
View on GitHub
unknown unknown commented on Apr 02, 2026 20:51 UTC
Author

Fixes #753

Changes done:


  • Fixed typo: "his circuit" → "This circuit" in SR flip-flop introduction

  • Clarified SR flip-flop introduction: replaced vague similarity

  • with explicit edge-triggered vs level-sensitive distinction
  • Clarified D flip-flop introduction: explicitly stated D flip-flop

  • is edge-triggered unlike D latch which is level-sensitive
  • Fixed SR characteristic table heading: "SR Latch" → "SR Flip Flop"

  • Added Verilog mapping section under D flip-flop showing:

  • - Edge-triggered FF: always @(posedge clk) with non-blocking <=
    - Level-sensitive latch: always @(D or en) for contrast
    - Note on non-blocking vs blocking assignment best practice
  • Added Race Around Condition explanation in master-slave section

  • Changed Race Around Condition to ### heading (subsection level)

  • Removed stray triple backtick that broke page rendering
  • Screenshots


    No UI changes — documentation and content fix only.

    Preview Link(s):


    <!-- Add preview link from checks tab after checks complete -->

    By submitting this PR, I have verified the following


  • Checked to see if a similar PR has already been opened

  • Reviewed the contributing guidelines

  • Sample preview link added (add the link(s) for all the pages

  • changed/updated from the checks tab after checks complete)
  • Tried Squashing the commits into one
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Documentation
    Clarified flip-flop triggering behavior for SR and D flip-flops (edge-triggered)
    Added mapping to hardware description (Verilog) for D flip-flops with explanatory examples
    Corrected label in T flip-flop state table
    * Added explanation of race-around conditions and timing separation for JK flip-flops
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 244 lines (+183 / -61) across 3 files Reviewer: Asrani-Aman Review duration: 84499m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 244 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.329
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #777"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 38.8% (MEDIUM) · Higher = larger blast radius
    38.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.3% · Safe to merge
    15.3%