Hello,
I am trying to understand why the constraint failure in edaplayground is not observed using +define+FIX
I wanted to confirm with SV experts on the following
- Unlike subroutines, properties can’t be overridden in extended class.
Hence class ‘ext_seq’ essentially has 2 properties named ’ max_id’ & ‘unique_id’ ( in absence of +define+FIX )
When I assignbase_h.max_id = 4;
I end up assigning the inherited property max_id whereas the 2nd ‘max_id’ within ‘ext_seq’ is at default value of 0 - Hence when body() task of ‘ext_seq’ executes, I observe “unique_id == 0” and axid is constrained between
[ 0 : ( 0 - 1 ) ] i.e [0 : 5'b11111]
- When inline constrain of
id == axid;
is used there is a conflict within constraint ‘max_id_width’
Please correct me if I missing something