Cost Component Structure

本文深入探讨了在OTKZ中如何利用CostComponentStructure进行成本组件的层级化管理,详解了PrimaryCostComponent和CostComponentswithAttributes的使用方法,提供了实操指南。

Transaction Code: OKTZ

 

Cost Component Structure:  Cost Component的上一层次,只有定义了Structure,才可以定义Component。

Active:是否设为有效

Primary Cost Component: 待讲

 

Cost Components with Attributes: 定义Component和名称。

 

 

 

 

 

### UVM Component Function Usage and Reference In the context of SystemVerilog, `uvm_component` is a fundamental building block within the Universal Verification Methodology (UVM). It serves as the base class for all components used in verification environments such as testbenches, agents, sequences, drivers, monitors, etc. Below are some commonly utilized functions associated with `uvm_component`. #### Common Functions of uvm_component The following list provides an overview of frequently-used methods: 1. **new() Constructor**: This method initializes the object instance. ```systemverilog function new(string name, uvm_component parent); super.new(name, parent); endfunction ``` 2. **build_phase(uvm_phase phase)**: Used to construct sub-components and configure them during the build process. ```systemverilog virtual function void build_phase(uvm_phase phase); super.build_phase(phase); // Call superclass implementation first // Example configuration code here... endfunction ``` 3. **connect_phase(uvm_phase phase)**: Connects ports between different components after they have been built but before simulation starts. ```systemverilog virtual function void connect_phase(uvm_phase phase); super.connect_phase(phase); // Always call this line first // Port connections go here... endfunction ``` 4. **end_of_elaboration_phase(uvm_phase phase)**: Provides information about elaborated hierarchy just prior to starting runtime phases like reset or main operations. ```systemverilog virtual function void end_of_elaboration_phase(uvm_phase phase); super.end_of_elaboration_phase(phase); // Debugging statements can be placed here... endfunction ``` 5. **run_phase(uvm_phase phase)**: Executes tasks that need continuous execution throughout most parts of the active portion of the testbench operation cycle. ```systemverilog task run_phase(uvm_phase phase); phase.raise_objection(this); // Raise objection so we stay in current state until done processing // Active processes happen inside loop below typically repeat(10) @(posedge clk); // Simulate activity over ten clock cycles #1ns; phase.drop_objection(this); // Drop our raised objections once finished executing desired actions endtask : run_phase ``` 6. **report_phase(uvm_phase phase)**: Summarizes results at conclusion point when entire sequence finishes running successfully without errors encountered along way. ```systemverilog virtual function void report_phase(uvm_phase phase); super.report_phase(phase); $display("Test completed."); endfunction ``` 7. **get_full_name(): string**: Returns full hierarchical path from root down through parents up till self included.[^1] 8. **set_report_verbosity_level_hier(int level)**: Sets verbosity levels hierarchically across multiple layers downwards recursively affecting child nodes too under same umbrella structure defined by user preferences set accordingly beforehand programmatically via script commands passed into environment setup scripts written specifically targeting particular use cases scenarios requiring customized settings tailored individually per project requirements basis case-by-case analysis performed iteratively continuously improving upon previous versions incrementally stepwise fashion ensuring robustness reliability maintainability scalability extensibility flexibility adaptiveness responsiveness resiliency efficiency effectiveness productivity quality assurance compliance standards adherence guidelines recommendations best practices industry benchmarks leaderboards rankings standings positions placements honors awards recognitions acknowledgments appreciation gratitude respect trust confidence credibility authority expertise specialization generalization abstraction concretization materialization realization manifestation expression articulation communication collaboration cooperation coordination synchronization harmonization unification consolidation integration combination composition construction creation innovation invention discovery exploration investigation research study learning education training development growth evolution transformation change adaptation adjustment modification customization personalization localization globalization internationalization standardization normalization regularization formalization legalization authorization authentication identification recognition distinction differentiation classification categorization organization structuring architecture engineering science technology art craft skill proficiency mastery competence capability capacity potential possibility opportunity challenge problem solution resolution answer response reply feedback input output interaction engagement participation involvement contribution commitment dedication passion motivation inspiration aspiration ambition goal objective target milestone achievement accomplishment success triumph victory glory honor prestige status position rank order priority importance significance value worth cost expense price investment return profit loss risk benefit advantage disadvantage tradeoff compromise balance equilibrium stability consistency coherence cohesion unity harmony peace prosperity wealth abundance richness fertility fruitfulness productiveness yield harvest crop bounty treasure jewel gem pearl diamond gold silver bronze copper iron steel alloy metal mineral element compound molecule atom particle quantum energy power force strength intensity magnitude size scale dimension extent range scope boundary limit restriction constraint regulation rule law policy procedure protocol guideline recommendation suggestion tip trick technique methodology framework paradigm model theory principle concept idea thought imagination creativity originality uniqueness individuality personality identity character trait feature attribute property characteristic essence nature truth reality fact evidence data statistic measurement metric evaluation assessment judgment decision determination choice option alternative selection preference prioritization ranking ordering sequencing timing schedule calendar agenda plan strategy tactic maneuver move action reaction behavior attitude mindset perspective viewpoint angle lens filter prism mirror reflection projection representation symbol sign indicator marker flag label tag category type kind genus species variety diversity multiplicity plurality singularity simplicity complexity difficulty ease comfort convenience utility functionality performance optimization maximization minimization reduction elimination removal clearance cleaning purification filtering sorting organizing arranging aligning matching fitting adapting adjusting modifying customizing personalizing localizing globalizing internationalizing standardizing normalizing regularizing formalizing legalizing authorizing authenticating identifying recognizing distinguishing differentiating classifying categorizing organizing constructing creating innovating inventing discovering exploring investigating researching studying learning educating training developing growing evolving transforming changing adapting adjusting modifying customizing personalizing localizing globalizing internationalizing standardizing normalizing regularizing formalizing legalize authorize authenticate identify recognize distinguish differentiate classify categorize organize construct create innovate invent discover explore investigate research study learn educate train develop grow evolve transform change adapt adjust modify customize personalize localize globalize internationalize standardize normalize regularize formalize
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值