每天学命令<set_default_view>

set_default_view命令用于设定Innovus分析过程中的默认setup和hold分析视图。分析视图在多模式多端角分析设计中至关重要,它结合模式和端角创建不同的视图以进行时序分析。通过-setup和-hold选项,可以分别定义默认的setup和hold分析视图。未设置时,工具将使用现有视图的第一个。示例展示了如何更改默认视图,并提到了相关资源链接和数字后端的相关概念。
摘要由CSDN通过智能技术生成

set_default_view 
{-setup new Default Setup View |-hold new Default Hold View } 


这个命令可以设置设计中的default analysis view,用于setup和hold分析。在Innovus分析过程中,有些命令会用到单个默认的view, 如果你没有用set_default_view设置默认的view,工具会用当前的setup views和hold views里面的第一个view作为defalut view。如果你设置了,工具就会用你设置的default view。

Analysis View。全称分析视图。是用于MMMC多模式多端角分析设计的概念。

在时序分析环境里,EDA工具能够同时读入多种模式或多种时序约束文件、多种时序库文件和多种电阻电容文件。当选定了一种模式和一种端角后,这时的工具环境会提供一种相应的视图(analysis view)来方便地显示分析状况和结果。

通过模式和端角的组合,我们可以组成不同的View,再对应不同设计选择相应的组合视图进行有关时序(setup或hold)分析。


-setup  可以定义default setup analysis view

-hold  可以定义default hold analysis view

例子:

set_analysis_view -setup {view1 view2 view3} -hold {view4 view5 view6}

这样情况下default setup view是view1,default hold view是view4。如果用了下列命令:

<template> <div> <router-view /> <div class="title">购物车</div> <div class="shop_goods" v-for="(item, index) in shopcarList" :key="index"> <van-checkbox v-model="item.isChecked"></van-checkbox> <van-card :title="item.name" :thumb="item.img"> <template #price> <span>¥{{ item.price }}</span> </template> <template #num> <p class="count"> <span @click="del(index)">-</span> <span>{{ item.num }}</span> <span @click="add(index)">+</span> </p> </template> </van-card> </div> <div class="shopcar_total"> <van-submit-bar :price="priceTotal" @submit="onSubmit"> <template #button> <span class="total"> 去结算 </span> </template> <van-checkbox v-model="isAllChecked">全选</van-checkbox> </van-submit-bar> </div> </div> </template> <script> export default { data() { return { stepper: 1, shopcarList: [], }; }, methods: { onSubmit() { console.log(111); }, add(index) { // console.log(index); this.$set( this.shopcarList[index], this.shopcarList[index].num, this.shopcarList[index].num++ ); }, del(index) { if (this.shopcarList[index].num == 1) { this.$toast("不能再减了"); } else { this.$set( this.shopcarList[index], this.shopcarList[index].num, this.shopcarList[index].num-- ); } }, }, created() { this.shopcarList = JSON.parse(localStorage.getItem("shopcar")) || []; console.log(this.shopcarList); }, computed: { isAllChecked: { set(val) { this.shopcarList.forEach((ele) => { ele.isChecked = val; }); }, get() { return this.shopcarList.every((ele) => { return ele.isChecked == true; }); }, }, priceTotal() { let sum = 0; let newPrice = this.shopcarList.filter((ele) => { return ele.isChecked == true; }); sum = newPrice.reduce((pre, current) => { return (pre += current.price * current.num); }, 0); return sum * 100; }, }, }; </script>这个页面怎么优化
06-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值