In reply to rgarcia07:
Sure!
Lets say some DataBus:
localparam WIDTH = 32;
logic [WIDTH-1:0] dataBusTest;
where dataBusTest can be (0x100 → 0xFFFF_FC00). This is limited by some mathematical constraints on the upstream logic.
I want to have the following bins:
- min_value = { 0x100 }
- max_value = { 0xFFFF_FC00 }
- 64 bins equally spaced from 0x100 to 0xFFFF_FC00, where the bin names reflect the numerical range they contain.
#3 is the issue. I cant seem to create bins that contain a range of numerical values without getting syntax errors. My current workaround is this:
bins range_bins [BINS_CNT] = {[MIN_VAL:MAX_VAL]};
but the problem is, lets say for bin[0] i get the name bin[0], with auto binning, i would get the bin name bin[256:67109100].
Is this enough information for you?