Home › Practice › RTL Design › Order book cross & lock check
Order book cross & lock check
EasyRTLHFTcombinational
In an exchange limit order book, buyers post a bid price and sellers post an ask price. Normally the best bid sits strictly below the best ask; if bid == ask the book is locked, and if bid >= ask the book is crossed (an immediate trade or feed bug).
Concept first. Only active quotes matter: if either bid_v or ask_v is 0, the book is neither locked nor crossed. After passing, click Check area and speed to see your OpenSTA speed.
crossed = 1whenbid_v=1,ask_v=1, and unsignedbid >= ask.locked = 1whenbid_v=1,ask_v=1, andbid == ask.- No clock.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.