SV checker implementation

Hi,

I want to implement a checker to verify something like the below logic in the design. I’m yet to figure out the clock and other signals required for this design. But just want to know what is the best way to validate this - assertion or an UVM class-based task?

R = (term-inductor)∗(code+legs)
loop=(R/(term_loop-inductor))-legs

Thanks

In reply to nimitz_class:

Very weak requirements!
Assertions are good. If the problem is too complex or needs to be in a class, you can use tasks as explained in my paper:

Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us
For training, consulting, services: contact Home - My cvcblr
** SVA Handbook 4th Edition, 2016 ISBN 978-1518681448

  1. SVA Package: Dynamic and range delays and repeats SVA: Package for dynamic and range delays and repeats | Verification Academy
  2. Free books: Component Design by Example FREE BOOK: Component Design by Example … A Step-by-Step Process Using VHDL with UART as Vehicle | Verification Academy
    Real Chip Design and Verification Using Verilog and VHDL($3) Amazon.com
  3. Papers: