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

Subversion Repositories tv80

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /tv80/trunk
    from Rev 92 to Rev 93
    Reverse comparison

Rev 92 → Rev 93

/sc_env/tv_responder.h
1,7 → 1,7
#ifndef TV_RESPONDER_H_
#define TV_RESPONDER_H_
 
#include "systemc.h"
#include "sc_env.h"
 
SC_MODULE(tv_responder)
{
/sc_env/env_memory.cpp
26,7 → 26,7
int c = 1;
while (c) {
c = read (buf, 1, 1, fh);
c = fread (buf, 1, 1, fh);
if (c && (*buf == '\n'))
c = 0;
else buf++;
55,10 → 55,20
{
FILE *fh;
char line[80];
char *lp;
int rlen, addr, rtyp;
fh = fopen (filename, "r");
readline (fh, line);
while (strlen(line) > 0) {
printf ("DEBUG: strlen(line)=%d\n", strlen(line));
sscanf (line, "%2x%2x%2x", &rlen, &addr, &rtyp);
printf ("DEBUG: rlen=%d addr=%d rtyp=%d\n", rlen, addr, rtyp);
lp = line + 6;
for (int c=0; c<rlen; c++) {
}
}
fclose (fh);
}
/sc_env/sc_env.h
0,0 → 1,8
#ifndef SC_ENV_H
#define SC_ENV_H
 
#include <stdint.h>
#include <systemc.h>
 
#endif
 
/sc_env/env_memory.h
1,4 → 1,4
#include "systemc.h"
#include "sc_env.h"
 
#ifndef ENV_MEMORY_H
#define ENV_MEMORY_H

powered by: WebSVN 2.1.0

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