addrTableItem = self.addrTable.getItem(name) # Get the details of the relevant item from the addr table.
if addrTableItem.getMask() != 0xffffffff:
raise ChipsException("Block/FIFO read error: cannot perform block or FIFO read on a masked register address!")
try:
if not addrTableItem.getReadFlag(): raise ChipsException("Read transaction creation error: read is not allowed on register '" + addrTableItem.getName() + "'.")
# create and run the transaction and get the response
if not addrTableItem.getWriteFlag(): raise ChipsException("Write transaction creation error: write is not allowed on register '" + addrTableItem.getName() + "'.")
# create and run the transaction and get the response
addrTableItem=self.addrTable.getItem(name)# Get the details of the relevant item from the addr table.
ifaddrTableItem.getMask()!=0xffffffff:
raiseChipsException("Block/FIFO read error: cannot perform block or FIFO read on a masked register address!")
try:
ifnotaddrTableItem.getReadFlag():raiseChipsException("Read transaction creation error: read is not allowed on register '"+addrTableItem.getName()+"'.")
# create and run the transaction and get the response
ifnotaddrTableItem.getWriteFlag():raiseChipsException("Write transaction creation error: write is not allowed on register '"+addrTableItem.getName()+"'.")
# create and run the transaction and get the response
self.assertEqual(testHeaderU32_orig, testHeaderU32_update3) # if the silly input hasn't overwritten anything else, then the original should equal update3
self.assertEqual(testHeaderU32_orig,testHeaderU32_update3)# if the silly input hasn't overwritten anything else, then the original should equal update3