Silicon Lab

Protocols Problems

Build a design, hunt its bugs, or repair what fails. Every answer runs on a real simulator.

All Problems

Build starts from a specification: make it work, then make it small or fast. Bug Hunt asks for the checker or the test that catches broken designs. Repair hands you a failure: find the cause, then fix the design.

01

On-Chip Interconnect Protocols

Bus basics, then the AMBA buses: AXI, APB and AHB.

99 problems

Protocols · P1 Protocol Fundamentals

  1. P1.1.1 The SoC Address Decoder 975 Implement Medium Browser
  2. P1.2.1 The Reset Synchronizer 1050 Implement Medium Browser
  3. P1.3.1 Implement a Sink 1125 Implement Medium Browser
  4. P1.3.2 Catch the Broken Sources 1350 Verify Hard Browser
  5. P1.4.1 Beats into Transactions 750 Implement Easy Browser
  6. P1.4.2 The Read That Passed a Write 1350 Debug Medium Browser
  7. P1.5.1 The Throughput That Never Rose 1200 Debug Medium Browser
  8. P1.6.1 The FIFO That Overflowed 1200 Debug Medium Browser
  9. P1.6.2 A Credit Counter 975 Implement Medium Browser
  10. P1.6.4 Size the FIFO 975 Implement Medium Browser
  11. P1.6.3 The Credit Checker 1275 Verify Hard Browser
  12. P1.7.1 A Scoreboard Keyed by Tag 1200 Implement Medium Browser
  13. P1.7.2 Put the Bursts Back Together 1125 Implement Medium Browser
  14. P1.8.1 Fix the Strobe 900 Fix Easy Browser
  15. P1.9.1 A Round-Robin Arbiter Model 975 Implement Medium Browser
  16. P1.9.2 A Weighted Round Robin 1125 Implement Medium Browser
  17. P1.9.3 The Lost Update 1425 Debug Medium Browser
  18. P1.10.1 Properties for the Link 1350 Verify Hard Verilator
  19. P1.11.2 Break the Links 1125 Break It Medium Browser
  20. P1.11.3 The Beat That Arrived Late 1200 Debug Medium Browser
  21. P1.11.4 Fix the Sink 975 Fix Medium Browser
  22. P1.11.5 A Monitor for the Link 975 Implement Medium Browser
  23. P1.11.1 Catch Every Broken Link 1425 Verify Hard Browser
  24. P1.12.1 A Word Bridge Between Clocks 1425 Implement Hard Browser
  25. P1.12.2 The Handshake Checker 1350 Verify Hard Browser
  26. P1.13.1 Packets into Flits 1125 Implement Medium Browser

Protocols · P2 AXI

  1. P2.1.1 The Transfer Counter 1050 Debug Easy Browser
  2. P2.2.1 Catch the Broken Managers 1350 Verify Hard Browser
  3. P2.3.1 The Write Dependencies 1350 Verify Hard Browser
  4. P2.4.1 RDATA Not Held 1200 Debug Medium Browser
  5. P2.5.1 An Issuer with N Outstanding 1125 Implement Medium Browser
  6. P2.5.2 A Full Register Slice 1350 Implement Hard Browser
  7. P2.6.1 The Address of Every Beat 1200 Implement Medium Browser
  8. P2.6.2 The WRAP Boundary 1125 Fix Medium Browser
  9. P2.6.3 The Burst Rules Checker 1425 Verify Hard Browser
  10. P2.7.1 The Lane Mapper 1050 Implement Medium Browser
  11. P2.8.1 A Byte-Accurate Write Memory 1425 Implement Hard Browser
  12. P2.9.1 The Strobe Handling 1125 Fix Medium Browser
  13. P2.9.2 Big-Endian Stores on Byte Lanes 1125 Implement Medium Browser
  14. P2.10.1 The Same-ID Order Checker 1425 Verify Hard Browser
  15. P2.11.1 An ID-Keyed Scoreboard 1200 Implement Medium Browser
  16. P2.12.1 The Stale Read 1350 Debug Medium Browser
  17. P2.13.1 An Exclusive Monitor 1200 Implement Medium Browser
  18. P2.13.4 The Default Subordinate 1200 Implement Medium Browser
  19. P2.13.2 The Exclusive Retry Loop 1350 Implement Hard Browser
  20. P2.13.3 The Exclusive Rules Checker 1500 Verify Hard Browser
  21. P2.14.4 The Region Decoder 1200 Implement Medium Browser
  22. P2.14.1 The Response Point 1350 Implement Hard Browser
  23. P2.14.2 The Modification Checker 1500 Verify Hard Browser
  24. P2.14.3 The AxPROT Firewall 1350 Implement Hard Browser
  25. P2.15.1 A Lite Subordinate 1125 Fix Medium Browser
  26. P2.16.1 Six Properties for the Link 1425 Verify Hard Verilator
  27. P2.17.1 The AXI Monitor 1350 Implement Hard UVM
  28. P2.18.2 Break the Subordinates 1275 Break It Medium Browser
  29. P2.18.3 Break the Managers 1275 Break It Medium Browser
  30. P2.18.4 The Beat That Landed in the Wrong Word 1275 Debug Medium Browser
  31. P2.18.5 The Subordinate That Reordered 1275 Fix Medium Browser
  32. P2.18.1 Catch Every Broken Subordinate 1425 Verify Hard Browser
  33. P2.18.6 A Beat-to-Transaction Monitor 1425 Implement Hard Browser
  34. P2.19.1 The Read Downsizer 1350 Implement Hard Browser

Protocols · P3 APB

  1. P3.1.1 The Bus Meter 1050 Implement Easy Browser
  2. P3.2.2 An APB Requester 1275 Implement Medium Browser
  3. P3.2.1 An APB Register Block 1350 Implement Hard Browser
  4. P3.3.1 Stale Read Data 1200 Debug Medium Browser
  5. P3.4.1 The Error on the Wrong Cycle 900 Fix Easy Browser
  6. P3.5.1 The Strobes 900 Fix Easy Browser
  7. P3.6.1 Decoder and Read Mux 975 Implement Medium Browser
  8. P3.7.1 The Bridge's APB Side 1425 Implement Hard Browser
  9. P3.8.1 Properties for the APB Link 1350 Verify Hard Verilator
  10. P3.9.1 The APB Monitor 1200 Implement Medium UVM
  11. P3.9.2 The Register Adapter 1275 Implement Medium UVM
  12. P3.10.2 Break the Completers 1125 Break It Medium Browser
  13. P3.10.3 The FIFO That Lost Entries 1275 Debug Medium Browser
  14. P3.10.1 Catch Every Broken Completer 1425 Verify Hard Browser
  15. P3.11.1 The APB4-to-APB3 Adapter 1425 Implement Hard Browser
  16. P3.12.1 The PAS Filter 1275 Implement Medium Browser
  17. P3.13.1 The Wake-Up and User-Signal Checker 1425 Verify Hard Browser
  18. P3.13.2 The Bridge That Keeps the Sideband 1350 Implement Hard Browser
  19. P3.14.1 The Completer's Parity Block 1275 Implement Medium Browser

Protocols · P4 AHB

  1. P4.1.1 The Pipeline Meter 1050 Implement Medium Browser
  2. P4.2.1 A Zero-Wait AHB Subordinate 1200 Implement Medium Browser
  3. P4.3.1 The Write That Happened on IDLE 1200 Debug Medium Browser
  4. P4.4.1 The Hold Checker 1425 Verify Hard Browser
  5. P4.5.1 A One-Cycle Error 1125 Fix Medium Browser
  6. P4.6.1 The Beat Generator 1200 Implement Medium Browser
  7. P4.6.2 WRAP8 1125 Fix Medium Browser
  8. P4.7.1 Lane Handling 1125 Fix Medium Browser
  9. P4.8.1 The Mux 1275 Fix Medium Browser
  10. P4.8.2 Decoder and Default Subordinate 1125 Implement Medium Browser
  11. P4.9.1 An Exclusive Access Monitor 1350 Implement Hard Browser
  12. P4.10.1 Properties for the AHB Link 1425 Verify Hard Verilator
  13. P4.11.1 The AHB Monitor 1425 Implement Hard UVM
  14. P4.12.2 Break the Subordinates 1275 Break It Medium Browser
  15. P4.12.3 The Read That Returned Its Neighbour's Data 1275 Debug Medium Browser
  16. P4.12.1 Catch Every Broken Subordinate 1425 Verify Hard Browser
  17. P4.12.4 An AHB-to-APB Bridge 1350 Implement Hard Browser
  18. P4.13.1 The AHB5 Firewall 1500 Implement Hard Browser
  19. P4.14.1 The AHB5 Parity Checker 1425 Verify Hard Browser
  20. P4.15.1 The Lock-Aware Arbiter 1200 Implement Medium Browser
02

Peripheral & Serial Interface Protocols

Serial fundamentals, then UART, SPI and QSPI, I2C and I3C.

63 problems

Module P6 · Protocols · P6 UART

  1. P6.2.1 Encode a UART Frame 825 Implement Easy Browser
  2. P6.3.2 Move the Sample into the Bit 1650 Fix Hard Browser
  3. P6.4.1 A Receiver That Survives the Sweep 1650 Implement Hard Browser
  4. P6.4.2 Locate the First Displaced Sample 1650 Debug Hard Browser
  5. P6.5.1 The Missing Overrun Flag 1200 Fix Medium Browser
  6. P6.5.2 Check UART Errors Without False Alarms 1650 Verify Hard Browser
  7. P6.6.1 RTS and CTS Around a Byte FIFO 1200 Implement Medium Browser
  8. P6.6.2 A Compact UART Voter and Sampler 1650 Optimize Hard Simulation + synthesis
  9. P6.7.1 A UART Monitor That Earns Its Verdict 1650 Verify Hard Browser
  10. P6.7.2 Find Five Faulty UART Receivers 1650 Break It Hard Browser
  11. P6.7.3 Find the Lost Frame After Recovery 1650 Debug Hard Browser

Module P7 · Protocols · P7 SPI and QSPI

  1. P7.1.1 An Eight-Clock SPI Peripheral 825 Implement Easy Browser
  2. P7.2.2 Diagnose the Displaced SPI Reply 1200 Debug Medium Browser
  3. P7.2.1 Check Mode and Edge Discipline 1650 Verify Hard Browser
  4. P7.3.1 Sample MISO After It Becomes Valid 1200 Fix Medium Browser
  5. P7.4.1 Release MISO When Deselected 1200 Fix Medium Browser
  6. P7.4.2 Load Three Devices Through One Chain 1200 Implement Medium Browser
  7. P7.5.1 A Monitor for All Four SPI Modes 1200 Implement Medium Browser
  8. P7.5.2 Prove the SPI Sampling Edge 1650 Verify Hard Verilator
  9. P7.6.1 Decode the Flash Read Phases 1200 Implement Medium Browser
  10. P7.7.1 Release the Quad Lanes at Turnaround 1200 Fix Medium Browser
  11. P7.8.1 WEL and BUSY at a Flash Command Boundary 1200 Implement Medium Browser
  12. P7.8.2 The Program That Crossed a Page 1650 Debug Hard Browser
  13. P7.9.1 Fetch a Wrapped Quad Flash Line 1650 Implement Hard Simulation + synthesis
  14. P7.9.2 A Cache Line in Eighty-Four Clocks 1650 Optimize Hard Browser
  15. P7.10.1 Check the Controller and Its Flash Model 1650 Verify Hard Browser
  16. P7.10.2 Choose Flash Programs That Expose Hidden Faults 1650 Break It Hard Browser
  17. P7.11.1 Complement the Flash Protection Range 1200 Fix Medium Browser
  18. P7.12.1 Keep Suspended Erase Commands Isolated 1200 Fix Medium Browser
  19. P7.13.1 Respect Each Security Register Lock 1200 Fix Medium Browser
  20. P7.14.1 Honor Opcode-Dependent Flash Timing 1200 Fix Medium Browser

Module P8 · Protocols · P8 I2C

  1. P8.1.1 Read the Open-Drain Driver View 825 Implement Easy Browser
  2. P8.2.1 Recognize START STOP and Repeated START 825 Implement Easy Simulation + synthesis
  3. P8.3.1 Receive Eight Bits and Own the Ninth 825 Implement Easy Browser
  4. P8.3.2 The ACK That Outlived Its Slot 1650 Debug Hard Browser
  5. P8.4.2 Seven Address Bits Plus Direction 1200 Fix Medium Browser
  6. P8.4.1 A Register Target with Repeated START 1650 Implement Hard Browser
  7. P8.5.1 Wait for the Stretched Clock 1200 Fix Medium Browser
  8. P8.5.2 Verify a Controller Under Legal Stretching 1200 Verify Medium Browser
  9. P8.6.1 Separate Five Arbitration Failures 1650 Break It Hard Browser
  10. P8.6.2 Prove Arbitration Withdrawal 1650 Verify Hard Verilator
  11. P8.6.3 A Controller That Withdraws on Arbitration Loss 1650 Implement Hard Browser
  12. P8.7.2 Respect Bus-Free and Fm-Plus Timing 1200 Fix Medium Browser
  13. P8.7.1 Measure Logical I2C Timing Without Rejecting a Stretch 1650 Verify Hard Browser
  14. P8.8.1 Recover a Stuck SDA with at Most Nine Clocks 1650 Implement Hard Browser
  15. P8.8.2 Why Nine Recovery Clocks Never Arrived 1650 Debug Hard Browser
  16. P8.10.1 Decode Seven-Bit Ten-Bit and General-Call Traffic 1650 Implement Hard Browser
  17. P8.11.4 Keep a Combined Read on the Busy Bus 1200 Fix Medium Browser
  18. P8.11.1 Verify the Target Across Its Transaction Boundaries 1650 Verify Hard Browser
  19. P8.11.2 A Small Program for Controller and Target Faults 1650 Break It Hard Browser
  20. P8.11.3 Locate the Misread Most-Significant Bit 1650 Debug Hard Browser
  21. P8.11.5 Shrink the Bit Controller Without Losing Stretch State 1650 Optimize Hard Simulation + synthesis
  22. P8.12.1 Send the UFm Ninth Bit High 1200 Fix Medium Browser
  23. P8.13.1 Budget the Clock from Measured Bus Edges 825 Implement Easy Browser

Module P9 · Protocols · P9 I3C

  1. P9.1.1 Keep Legacy and SDR Reads Distinct 1200 Fix Medium Browser
  2. P9.2.1 Write the SDR Odd-Parity T-Bit 1200 Fix Medium Browser
  3. P9.3.1 Release SDA for the Header ACK 1200 Fix Medium Browser
  4. P9.4.1 Withdraw After Losing DAA Arbitration 1200 Fix Medium Browser
  5. P9.5.1 Address a Direct CCC to One Target 1200 Fix Medium Browser
  6. P9.6.1 Send the Mandatory IBI Byte 1200 Fix Medium Browser
  7. P9.7.1 Distinguish HDR Restart from Exit 1200 Fix Medium Browser
  8. P9.8.1 Catch Contention and Legacy Stretching 1200 Verify Medium Browser
  9. P9.9.1 Take SCL Only After the Handoff STOP 1200 Fix Medium Browser
03

High-Speed Interface Protocols

The links that carry data off the chip at speed.

82 problems

Module P10 · Protocols · P10 High-Speed Fundamentals

  1. P10.1.1 Find the Rate Where the Bus Breaks 900 Implement Easy Browser
  2. P10.2.1 Add the Comma Aligner 1350 Implement Medium Browser
  3. P10.3.1 Fix the Disparity Bug 1350 Fix Medium Browser
  4. P10.3.2 Write an 8b/10b Decoder with Error Flags 1650 Implement Hard Browser
  5. P10.4.1 Build the Block-Lock Machine 1350 Implement Medium Browser
  6. P10.5.1 Break the Self-Synchronising Scrambler 900 Break It Easy Browser
  7. P10.5.2 Debug the Descrambler That Never Recovers 1350 Debug Medium Browser
  8. P10.5.3 Scramble 32 Bits per Clock 1350 Implement Medium Browser
  9. P10.6.1 Verify a CDR 1650 Verify Hard Browser
  10. P10.7.1 Separate the DCD 1350 Implement Medium Browser
  11. P10.8.1 Terminate the Line 825 Implement Easy Verilator
  12. P10.9.1 Open the Eye with Two Taps 1275 Optimize Medium Verilator
  13. P10.9.2 Tune the CTLE Zero 1275 Optimize Medium Verilator
  14. P10.11.1 Implement the CRC and Its Check 900 Implement Easy Browser
  15. P10.11.2 Correct One Symbol 1650 Implement Hard Browser
  16. P10.12.1 Deskew Four Lanes 1350 Implement Medium Browser
  17. P10.14.1 Stop the Credit Leak 1350 Fix Medium Browser
  18. P10.15.1 Write a PRBS Checker 1350 Implement Medium Browser

Module P11 · Protocols · P11 Ethernet

  1. P11.2.1 Build the Frame with Padding 900 Implement Easy Browser
  2. P11.3.1 Debug the Receiver That Drops Every Frame 1350 Debug Medium Browser
  3. P11.4.1 Implement the Address Filter 900 Implement Easy Browser
  4. P11.5.1 Fix the FCS Generator 1350 Fix Medium Browser
  5. P11.5.2 A CRC That Takes 64 Bits per Clock 1650 Optimize Hard Simulation + synthesis
  6. P11.6.1 Verify the Interframe Gap 1350 Verify Medium Browser
  7. P11.7.1 A Receive-Side Frame Checker 1350 Implement Medium Browser
  8. P11.8.1 Classify the Bad Frame 1350 Implement Medium Browser
  9. P11.9.1 Insert and Strip a Tag 1350 Implement Medium Browser
  10. P11.10.1 Verify Pause Handling 1350 Verify Medium Browser
  11. P11.11.1 Eight Timers, One Frame 1350 Implement Medium Browser
  12. P11.12.1 Why 64 Bytes? 900 Debug Easy Browser
  13. P11.12.2 Retry or Give up After a Collision 1350 Implement Medium Browser
  14. P11.13.1 A GMII Receiver 900 Implement Easy Browser
  15. P11.14.1 Fix the RGMII Capture 1350 Fix Medium Browser
  16. P11.15.1 An MDIO Master 1350 Implement Medium Browser
  17. P11.16.1 Address Then Data 1350 Debug Medium Browser
  18. P11.17.1 Debug the MAC That Puts Start in the Wrong Lane 1350 Debug Medium Browser
  19. P11.18.1 Widen the Reconciliation Sublayer 1350 Implement Medium Browser
  20. P11.19.1 Fix the Station That Talks into a Dead Link 1350 Fix Medium Browser
  21. P11.20.2 Verify Synchronisation 900 Verify Easy Browser
  22. P11.20.1 Find the Frame Between Ordered Sets 1350 Implement Medium Browser
  23. P11.21.1 Resolve Duplex and Pause 900 Implement Easy Browser
  24. P11.21.2 Verify Auto-Negotiation 900 Verify Easy Browser
  25. P11.22.1 Encode Data, Start and Terminate Blocks 1350 Implement Medium Browser
  26. P11.22.2 Decode Every Block Type 1650 Implement Hard Browser
  27. P11.23.1 Verify the PCS Receive Sequence 1350 Verify Medium Browser
  28. P11.23.2 Receive Raw Blocks 1350 Implement Medium Browser
  29. P11.23.3 Hold the FIFO Level with Idle 1350 Implement Medium Browser
  30. P11.24.1 Verify Block Lock 1350 Verify Medium Browser
  31. P11.24.2 Build the BER Monitor 1350 Implement Medium Browser
  32. P11.25.3 Loopback and Test Mode Control 900 Implement Easy Browser
  33. P11.25.1 A PRBS31 Checker 1350 Implement Medium Browser
  34. P11.25.2 Build the Pseudo-Random Test Pattern 1350 Implement Medium Browser
  35. P11.26.1 Compute BIP3 1350 Implement Medium Browser
  36. P11.26.2 Deal the Blocks and Insert the Markers 1350 Implement Medium Browser
  37. P11.27.2 Block Lock on Every Lane 900 Implement Easy Browser
  38. P11.27.1 Deskew and Reorder the Lanes 1650 Implement Hard Browser
  39. P11.28.1 Which PCS Lane Is on Which Wire? 1350 Debug Medium Browser
  40. P11.29.1 Transcode 66 to 65 and Back 900 Implement Easy Browser
  41. P11.29.3 Verify FEC Block Lock 900 Verify Easy Browser
  42. P11.29.2 Build the FEC Block: Parity and PN-2112 1350 Implement Medium Browser
  43. P11.29.4 Find and Remove One Burst 1350 Implement Medium Browser
  44. P11.29.5 The FEC Receive Path 1650 Implement Hard Browser
  45. P11.30.1 A 64B/66B to 257B Transcoder 1350 Implement Medium Browser
  46. P11.31.1 An RS Parity Generator for 10-Bit Symbols 1350 Implement Medium Browser
  47. P11.32.1 Will the Burst Be Corrected? 1350 Debug Medium Browser
  48. P11.33.1 Split the Stream into Two Codewords 1350 Implement Medium Browser
  49. P11.34.1 Thirty-Two Lanes, Two Flows 1350 Debug Medium Browser
  50. P11.34.2 A Restart Goes Wrong 1350 Debug Medium Browser
  51. P11.35.1 Gray Map and Precode 900 Implement Easy Browser
  52. P11.36.1 Decode A Fast Link Pulse Burst 1350 Implement Medium Browser
  53. P11.37.1 Resolve the Highest Common Mode 900 Implement Easy Browser
  54. P11.38.1 Debug the Link That Never Completes Training 1350 Debug Medium Browser
  55. P11.39.1 Wake Before You Send 900 Fix Easy Browser
  56. P11.40.1 Verify the Statistics Block 1650 Verify Hard Browser
  57. P11.41.1 Offset and Delay from Four Timestamps 900 Implement Easy Browser
  58. P11.41.2 Where Did 40 Ns Go? 1350 Debug Medium Browser
  59. P11.42.1 A Timestamp Unit 1650 Implement Hard Browser
  60. P11.43.1 A 4B/5B Decoder with Code Violations 900 Implement Easy Browser
  61. P11.44.1 Reassemble the Preempted Frame 1650 Implement Hard Browser
  62. P11.45.1 Set the Guard Band 1350 Implement Medium Browser
  63. P11.46.1 The Replay Window 1350 Implement Medium Browser
  64. P11.47.1 The Receive Scoreboard 1500 Verify Hard UVM