Randcase Vs Randsequence in Systemverilog
In short: randcase picks one branch at random using weights: each branch weight divided by the sum of all weights is its chance of being taken. randsequence is bigger; it builds structured sequences from named productions, so it can produce ordered or branching stimulus such as instruction streams. Use randcase for a quick weighted choice…
