update
This commit is contained in:
parent
3359396800
commit
7a16c7add2
28
src/App.vue
28
src/App.vue
@ -1,5 +1,7 @@
|
||||
<template>
|
||||
<div class="vcd-wrapper">
|
||||
<div class="vcd-render-wrapper" @mousemove="getMousemove">
|
||||
</div>
|
||||
|
||||
<!-- 左上角的 sidebar,用于显示 -->
|
||||
<Sidebar></Sidebar>
|
||||
|
||||
@ -7,14 +9,10 @@
|
||||
<div class="vcd-toolbar">
|
||||
|
||||
</div>
|
||||
<!-- 渲染区域 -->
|
||||
<div class="vcd-render">
|
||||
|
||||
</div>
|
||||
<!-- 显示当前信号树形关系 -->
|
||||
<!-- 右侧工具合集 -->
|
||||
<RightNav :topModules="VcdInfo.topModules"></RightNav>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -34,7 +32,7 @@ export default {
|
||||
|
||||
const VcdInfo = reactive({
|
||||
topModules: [],
|
||||
values: []
|
||||
values: [],
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
@ -69,6 +67,12 @@ export default {
|
||||
VcdInfo.topModules.push(topModule);
|
||||
}
|
||||
|
||||
globalLookup.status = vcdstream.info.status;
|
||||
globalLookup.version = vcdstream.info.version;
|
||||
globalLookup.timescale = vcdstream.info.timescale;
|
||||
globalLookup.date = vcdstream.info.date;
|
||||
globalLookup.t0 = vcdstream.info.t0;
|
||||
|
||||
// 这一步时,已经加载完成
|
||||
// 默认第一个模块被选中
|
||||
if (VcdInfo.topModules.length > 0) {
|
||||
@ -82,8 +86,13 @@ export default {
|
||||
}
|
||||
});
|
||||
|
||||
function getMousemove(event) {
|
||||
console.log(event);
|
||||
}
|
||||
|
||||
return {
|
||||
VcdInfo
|
||||
VcdInfo,
|
||||
getMousemove
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -98,4 +107,9 @@ export default {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.vcd-render-wrapper {
|
||||
height: 98vh;
|
||||
width: 98vw;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
@ -12,6 +12,17 @@ const globalLookup = reactive({
|
||||
// 当前选中的某个 信号 的 数据。可复选。
|
||||
currentWires: new Set(),
|
||||
|
||||
// 模拟器的版本,比如如果使用 iverilog 那么就是 Icarus Verilog
|
||||
version: '',
|
||||
// 创建时间
|
||||
date: '',
|
||||
// 状态 默认是 simulation
|
||||
status: '',
|
||||
// 单位时间
|
||||
timescale: '',
|
||||
// 初始时间,一般都是 0
|
||||
t0: 0,
|
||||
|
||||
initcurrentModule(module) {
|
||||
if (this.currentModule === undefined && module) {
|
||||
this.currentModule = module;
|
||||
|
@ -93,6 +93,7 @@ function makeSearchResultItem(searchString, module, searchScope, caseSensitivity
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user