Write SystemVerilog code to the following specification: Variables a and…
Write SystemVerilog code to the following specification: Variables a and b are declared in a module. Generate random values such that a is greater than b. Do not use $random or $urandom.
Model answer
Use the scope randomize function, std::randomize() , with an inline constraint. It works on variables in a module, without a class.