21 lines
519 B
C++
21 lines
519 B
C++
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "Vcputest.h"
|
|
#include "verilated.h"
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
Verilated::commandArgs(argc, argv);
|
|
Vcputest *tb=new Vcputest;
|
|
|
|
// simulation and output goes here
|
|
// for (int k=0; k<(1<<27); k++)
|
|
// {
|
|
// tb->CLK=k&1;
|
|
// tb->eval();
|
|
// if ((k&(1<<22)-1)==0)
|
|
// printf("%s", (tb->LED)?"*":" "); // should show the Morse-code pattern for SOS on a single line
|
|
// }
|
|
// printf("\n");
|
|
}
|