OpenCores
URL https://opencores.org/ocsvn/bustap-jtag/bustap-jtag/trunk

Subversion Repositories bustap-jtag

[/] [bustap-jtag/] [trunk/] [sim/] [up_bfm_c.c] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 9 ash_riple
#include <stdio.h>
2
 
3
#include "svdpi.h"
4
#include "dpiheader.h"
5
int up_bfm_c(double fw_delay)
6
{
7
  int cpu_addr_i;
8
  int cpu_data_i;
9
  int cpu_data_o;
10
 
11
  int t;
12
  for (t=0; t<=4000; t=t+4)
13
  {
14
 
15
      cpu_addr_i = 0x0000c0a0+t;
16
      cpu_data_i = t+0;
17
      cpu_wr(cpu_addr_i, cpu_data_i);
18
 
19
      cpu_hd(50);
20
 
21
      cpu_addr_i = 0x0000c0a0+t;
22
      cpu_rd(cpu_addr_i, &cpu_data_o);
23
 
24
      cpu_hd(100);
25
  }
26
 
27
  return(0); /* Return success (required by tasks) */
28
}

powered by: WebSVN 2.1.0

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