VL06 · Sem 4 · Digital design
Priority encoder
Aim: Find the highest active request line.
🧪 Live simulation🧊 Real-time 3D bench⚠ Simulated values, not physical measurements
🔬 Virtual lab
Starting the lab…
📘 Theory
When several requests are active, a priority encoder reports the highest one and a valid flag. Interrupt controllers use exactly this.
y = index of the highest set bit
🧰 Apparatus (virtual)
- Yosys
- simulator
📝 Procedure
🎤 Viva questions
What does the valid output tell you
Whether any request is active at all.
How does a casez help
It allows “don’t care” bits in the patterns.
🛡️ Safety
Software only. Area and timing use generic teaching assumptions; they are not silicon measurements or sign-off results.