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

Subversion Repositories sxp

[/] [sxp/] [trunk/] [csim/] [sxp_sim.cc] - Blame information for rev 59

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 28 samg
#include <iostream.h>
2
#include "./reg_file/reg_file.cc"
3
#include "./memory/memory.cc"
4
#include "./fetch/fetch.cc"
5
#include "./ext/ext.cc"
6
#include "./alu/alu.cc"
7
#include "./sxp/sxp.cc"
8
 
9
int main ()
10
{
11
  unsigned cycle = 0;
12
  sxp sxp_proc;
13
  cout << "Starting SXP Simulation\n";
14
  while (sxp_proc.end_sim == false) {
15
  cycle += 1;
16
  sxp_proc.run_cycle();
17
  sxp_proc.print_regs();
18
  cout << "---------------------------\n";
19
  if (cycle == 20)
20
    sxp_proc.interupt(1);
21
  }
22
  cout << "Ending SXP Simulation\n";
23
  return(0);
24
}
25
 
26
/*
27
 *  $Id: sxp_sim.cc,v 1.1 2001-10-29 00:53:17 samg Exp $
28
 *  Program  : sxp_sim.cc
29
 *  Author   : Sam Gladstone
30
 *  Function : Simulate a c++ version of the SXP
31
 *  $Log: not supported by cvs2svn $
32
 */
33
 

powered by: WebSVN 2.1.0

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