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/sc_env/app_localcfg
    from Rev 106 to Rev 108
    Reverse comparison

Rev 106 → Rev 108

/build.py
30,10 → 30,9
cmd = command + " " + " ".join(expfilelist)
print "Executing",cmd
os.system (cmd)
print "Removing old object files"
os.system ("rm -f obj_dir/*.o")
 
#f = walktree (basepath, filelist[0])
#print expfilelist
#print f
 
run_verilator()
 
/it_cfg_driver.cpp
36,5 → 36,10
}
}
}
 
while (!send_queue.empty() && (send_queue.front() == 0)) {
send_queue.pop();
addr++;
}
}
}
/app_env_top.cpp
9,6 → 9,7
#include "it_cfg_monitor.h"
#include "Vlcfg.h"
#include "load_ihex.h"
#include <assert.h>
 
extern char *optarg;
extern int optind, opterr, optopt;
25,6 → 26,7
char mem_src_name[FILENAME_SZ];
uint8_t memory[MAX_MEM_SIZE];
VerilatedVcdSc *tfp;
int run_time = 5; // in microseconds
//z80_decoder dec0 ("dec0");
 
sc_clock clk("clk125", 8, SC_NS, 0.5);
52,7 → 54,7
// clear program memory
for (int i=0; i<MAX_MEM_SIZE; i++) memory[i] = 0;
 
while ( (index = getopt(argc, argv, "d:i:k")) != -1) {
while ( (index = getopt(argc, argv, "d:i:t:")) != -1) {
printf ("DEBUG: getopt optind=%d index=%d char=%c\n", optind, index, (char) index);
if (index == 'd') {
strncpy (dumpfile_name, optarg, FILENAME_SZ);
61,6 → 63,12
} else if (index == 'i') {
strncpy (mem_src_name, optarg, FILENAME_SZ);
memfile = true;
} else if (index == 't') {
run_time = atoi (optarg);
assert (run_time > 0);
printf ("Running for %d microseconds\n", run_time);
} else {
printf ("Unknown index %c\n", (char) index);
}
}
 
126,7 → 134,7
while (bused <= max) {
cword = 0;
for (int i=0; i<4; i++) cword |= (memory[bused++] << (i*8));
printf ("Queueing %x\n", cword);
//printf ("Queueing %x\n", cword);
driver.add_queue (cword);
}
}
145,7 → 153,7
sc_start (sc_time(2500,SC_NS));
lcfg_proc_reset.write(0);
 
sc_start (sc_time(5000, SC_NS));
sc_start (sc_time(run_time, SC_US));
 
/*
sc_close_vcd_trace_file (trace_file);
/Makefile
41,6 → 41,9
Sp.o: $(SYSTEMPERL)/Sp.cpp
$(CXX) -I$(SYSTEMPERL) -c $^
 
newcode:
rm -f obj_dir/*.o
 
clean:
rm -f *.o
rm -f obj_dir/*.o

powered by: WebSVN 2.1.0

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