-2

What will the be DC synthesis output? I don't have access to DC. If a=1 and b=1 will both address locations get updated ? Addr1 and addr2 are logic as well and guaranteed not to be equal.

logic [3:0][31:0] cache;

always_ff .... begin
.....reset...

if (a) 
  cache[addr1] <= data1;


if (b)
  cache[addr2] <= data2;

end
dave_59
  • 39,096
  • 3
  • 24
  • 63
Rez
  • 1
  • 1

1 Answers1

0

Yes, this will synthesize into a 128-bit register with each input bit fed by a 3-to-1 multiplexor selection a bit from data1, data2, or the previous output bit of the register. The selection logic will be a combinational expression of the addresses, a, and b.

dave_59
  • 39,096
  • 3
  • 24
  • 63