I have a requirement on cocotb similar to below :
x = "a"
x = 2 => This should become a = 2
Can someone please help whether would it be possible to achieve this in python ? I need to assign values to DUT (like below) based on the above approach:
for sig in ["sig_1", "sig_2"]:
self.bfm.sig = 1