OpenCores
URL https://opencores.org/ocsvn/lpffir/lpffir/trunk

Subversion Repositories lpffir

[/] [lpffir/] [trunk/] [bench/] [systemc/] [main.cpp] - Diff between revs 2 and 7

Show entire file | Details | Blame | View Log

Rev 2 Rev 7
Line 59... Line 59...
#endif
#endif
 
 
  sc_time T(10,SC_NS);
  sc_time T(10,SC_NS);
  sc_time Tsim = T * 15 ;
  sc_time Tsim = T * 15 ;
  sc_clock clk("clk",T);
  sc_clock clk("clk",T);
  sc_signal<bool> rst("rst");
  sc_signal<bool> rstn("rstn");
  Vbench uut("top");
  Vbench uut("top");
  uut.clk (clk);
  uut.clk (clk);
  uut.rst(rst);
  uut.rstn(rstn);
 
 
#ifdef TRACE
#ifdef TRACE
  // Verilator trace file, depth
  // Verilator trace file, depth
  uut.trace(tfp, 10);
  uut.trace(tfp, 10);
  tfp->open("simu.vcd");
  tfp->open("simu.vcd");
#endif
#endif
 
 
  rst = 1;
  rstn = 0;
  sc_start(10*T);
  sc_start(10*T);
  rst = 0;
  rstn = 1;
  sc_start(Tsim);
  sc_start(Tsim);
 
 
#ifdef TRACE
#ifdef TRACE
  tfp->close();
  tfp->close();
#endif
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.