so I am adding when block around a line in the code but the problem is adding this when block changes the scope making the variables declared inside it not seen from other parts in the program
The problem is that in cases like that
val (_, _, d_done, refill_cnt) = edge_out.count(tl_out.d)}
so is their a way to add this line inside a when block without changing the scope
the point is declaring it outside the when block and then assigning the value requires me to know it's type and with lot's of variables that's can get hard
what i want to achive is something like that
when (refill_addr <80000000.U){
val (_, _, d_done, refill_cnt) = edge_out.count(tl_out.d)}
Without changing the scope