ORC_R32IMAZicsr/sim/orc_r32i_tb_env.py
def build_phase(self, phase):
        super().build_phase(phase)
        """         
           Function: build_phase
          
           Definition: Gets configurations from the UVMDb and creates components.

           Args:
             phase: build_phase
        """
        arr = []
        if (not UVMConfigDb.get(self, "", "tb_env_config", arr)):
            uvm_fatal("ORC_R32I_TB_ENV/NoTbEnvConfig", "Test Bench config not found")
        
        self.cfg = arr[0]

        self.inst_agent = wb_master_agent.type_id.create("inst_agent", self)
        self.inst_agent.cfg = self.cfg.inst_agent_cfg

        self.mem_read_agent = wb_master_agent.type_id.create("mem_read_agent", self)
        self.mem_read_agent.cfg = self.cfg.mem_read_agent_cfg

        self.mem_write_agent = wb_master_agent.type_id.create("mem_write_agent", self)
        self.mem_write_agent.cfg = self.cfg.mem_write_agent_cfg
        
        self.predictor = orc_r32i_predictor.type_id.create("predictor", self)
        #self.predictor = UVMRegPredictor.type_id.create("predictor", self)
        
        if (self.cfg.has_scoreboard):
            #self.scoreboard = scoreboard_simple.type_id.create("scoreboard", self)
            self.scoreboard = UVMInOrderBuiltInComparator.type_id.create("scoreboard", self)
         
           Function: build_phase
          
           Definition: Gets configurations from the UVMDb and creates components.

           Args:
             phase: build_phase
        
build_phase
Definition: Gets configurations from the UVMDb and creates components.
build_phase Definition : Gets configurations from the UVMDb and creates components .
def build_phase(self, phase):
        super().build_phase(phase)
        arr = []
        if (not UVMConfigDb.get(self, "", "tb_env_config", arr)):
            uvm_fatal("ORC_R32I_TB_ENV/NoTbEnvConfig", "Test Bench config not found")
        self.cfg = arr[0]
        self.inst_agent = wb_master_agent.type_id.create("inst_agent", self)
        self.inst_agent.cfg = self.cfg.inst_agent_cfg
        self.mem_read_agent = wb_master_agent.type_id.create("mem_read_agent", self)
        self.mem_read_agent.cfg = self.cfg.mem_read_agent_cfg
        self.mem_write_agent = wb_master_agent.type_id.create("mem_write_agent", self)
        self.mem_write_agent.cfg = self.cfg.mem_write_agent_cfg
        self.predictor = orc_r32i_predictor.type_id.create("predictor", self)
        if (self.cfg.has_scoreboard):
            self.scoreboard = UVMInOrderBuiltInComparator.type_id.create("scoreboard", self)
def build_phase ( self , phase ) : super ( ) . build_phase ( phase ) arr = [ ] if ( not UVMConfigDb . get ( self , "" , "tb_env_config" , arr ) ) : uvm_fatal ( "ORC_R32I_TB_ENV/NoTbEnvConfig" , "Test Bench config not found" ) self . cfg = arr [ 0 ] self . inst_agent = wb_master_agent . type_id . create ( "inst_agent" , self ) self . inst_agent . cfg = self . cfg . inst_agent_cfg self . mem_read_agent = wb_master_agent . type_id . create ( "mem_read_agent" , self ) self . mem_read_agent . cfg = self . cfg . mem_read_agent_cfg self . mem_write_agent = wb_master_agent . type_id . create ( "mem_write_agent" , self ) self . mem_write_agent . cfg = self . cfg . mem_write_agent_cfg self . predictor = orc_r32i_predictor . type_id . create ( "predictor" , self ) if ( self . cfg . has_scoreboard ) : self . scoreboard = UVMInOrderBuiltInComparator . type_id . create ( "scoreboard" , self )
Function: build_phase
Definition: Gets configurations from the UVMDb and creates components.
Function : build_phase Definition : Gets configurations from the UVMDb and creates components .
"""         
           Function: build_phase
          
           Definition: Gets configurations from the UVMDb and creates components.

           Args:
             phase: build_phase
        """ #self.predictor = UVMRegPredictor.type_id.create("predictor", self) #self.scoreboard = scoreboard_simple.type_id.create("scoreboard", self)
self
phase
None