I have a base sequence, and some sequences extend it.
I want that the base sequence will responsible for setting the constraints of some member of the transaction.
class axi_base_sequence extends uvm_sequence#(axi_transaction);
function new (string name = "axi_sequence");
[b]//can I add the following to ensure that the set constrain always happens?
if(!uvm_config_db #(axi_agent_config)::get(m_sequencer, "", "db_axi_agent_config", m_cfg)) begin
`uvm_error("task_body", "axi_agent_config not found")
m_cfg.max = 3455;
m_cfg.max = 34;[/b]