Hi Forum,
I am new to UVM RAL and was trying to understand the application of calling register.set()
Consider the following 2 ways to configure specific registers during IP initialization
(1) Using set() & update()
reg_block.rega.set(wdata1);
reg_block.regb.set(wdata2);
reg_block.regc.set(wdata3);
// Configure other registers
reg_block.update();
(2) Directly calling write()
reg_block.rega.write(status,wdata1);
reg_block.regb.write(status,wdata2);
reg_block.regc.write(status,wdata3);
// Configure other registers
There is an extra method called in (1) compared to (2) ,
so wouldn’t any user prefer using (2) ?
When should I consider using set() & update() over directly calling write() ?