I have 2 inputs x : unsigned bw : integer
when x>bw I want to check if x(x'length downto bw) = "1111111......"
How do i write this in VHDL since my length of x is unknown at this point. Normally if x was 4 bits, i would check if x(3) and x(2) and x(1) and x(0) = '1' ;