cocotb

Function or script on LHS of the equation in python

Function or script on LHS of the equation in python Question: 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 …

Total answers: 3

Modify VHDL generic value with ghdl in cocotb

Modify VHDL generic value with ghdl in cocotb Question: I managed to read generic module value with cocotb without problem. But if I can’t manage to write it. My VHDL generic is : … generic ( … C_M00_AXI_BURST_LEN : integer := 16; … ) I can read it in cocotb: self.dut.log.info(“C_M00_AXI_BURST_LEN 0x{:x}”.format( int(self.dut.c_m00_axi_burst_len))) But if …

Total answers: 1