Home › Practice › RTL Design › Best bid selector (4-way max tree)
Best bid selector (4-way max tree)
EasyRTLHFTcombinational
Given four incoming 6-bit unsigned bid prices p0, p1, p2, p3, output the highest price best.
Timing concept (critical path). You can compare p0 vs p1, then that winner vs p2, then vs p3 (a 3-step chain), OR compare (p0, p1) and (p2, p3) at the same time and compare the two winners (a 2-step balanced tree). Both give the exact same answer, but the balanced tree cuts the worst-case path delay by one full comparator! After passing, click Check area and speed to hit the 180 MHz target.
bestis the unsigned maximum ofp0,p1,p2, andp3.- No clock.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.