Is there a reduce()
list method in Specman that I can use for general reduction functions? I'm thinking of something like:
var x: list of bit = some_function_that_returns_list_of_bit;
var bitmap: uint = x.reduce(foo());
where reduce()
works like in Python:
foo(last: uint, val: bit) is: uint {
return (last << 1 ) | bit;
};