URL
https://opencores.org/ocsvn/wbuart32/wbuart32/trunk
[/] [wbuart32/] [trunk/] [bench/] [cpp/] [speechtest.cpp] - Diff between revs 5 and 18
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 5 |
Rev 18 |
Line 39... |
Line 39... |
//
|
//
|
//
|
//
|
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
//
|
//
|
//
|
//
|
|
#include <verilatedos.h>
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <fcntl.h>
|
#include <fcntl.h>
|
#include <unistd.h>
|
#include <unistd.h>
|
#include <string.h>
|
#include <string.h>
|
#include <time.h>
|
#include <time.h>
|
Line 113... |
Line 114... |
VerilatedVcdC* tfp = new VerilatedVcdC;
|
VerilatedVcdC* tfp = new VerilatedVcdC;
|
tb.trace(tfp, 99);
|
tb.trace(tfp, 99);
|
tfp->open("speechtrace.vcd");
|
tfp->open("speechtrace.vcd");
|
|
|
testcount = 0;
|
testcount = 0;
|
while(testcount < baudclocks * 16 * 2048) {
|
while(testcount < baudclocks * 16 * 4096) {
|
// Run one tick of the clock.
|
// Run one tick of the clock.
|
|
|
tb.i_clk = 1; // Positive edge
|
tb.i_clk = 1; // Positive edge
|
tb.eval();
|
tb.eval();
|
tfp->dump(5*(2*testcount));
|
tfp->dump(5*(2*testcount));
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.