> build_flow_VFlow

ysyx_22040000 李心杨
 Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
  11:54:44  up   1:30,  2 users,  load average: 0.58, 0.75, 0.87
This commit is contained in:
tracer-ysyx 2024-03-13 11:54:44 +08:00 committed by xinyangli
parent a5c273ead8
commit 3e3ad2ce06
2 changed files with 390 additions and 380 deletions

View file

@ -19,6 +19,12 @@ int main(int argc, char **argv, char **env) {
top->trace(m_trace, 5);
m_trace->open("waveform.vcd");
#endif
top->reset = 1;
top->clock = 1;
top->eval();
top->clock = 0;
top->reset = 0;
top->eval();
for (sim_time = 0; sim_time < MAX_SIM_TIME; sim_time++) {
top->eval();
top->clock = !top->clock;