A
anasimtiaz
Hi,
I have two vectors a1 and a2, e.g.
a1: 0 0 1 0 0 0 0 0 0
a2: 0 0 0 0 0 0 0 1 0
a3 is a vector that OR's the two:
a3: 0 0 1 0 0 0 0 1 0
I want to create a mask from this a4 such that
a4: 0 0 1 1 1 1 1 1 0
and use this as the enable signal downstream. I want to update the registers that are between the 1's I get in a1 and a2. Whats the best way to get a4 from a1 and a2?
Many thanks
I have two vectors a1 and a2, e.g.
a1: 0 0 1 0 0 0 0 0 0
a2: 0 0 0 0 0 0 0 1 0
a3 is a vector that OR's the two:
a3: 0 0 1 0 0 0 0 1 0
I want to create a mask from this a4 such that
a4: 0 0 1 1 1 1 1 1 0
and use this as the enable signal downstream. I want to update the registers that are between the 1's I get in a1 and a2. Whats the best way to get a4 from a1 and a2?
Many thanks