Line 10... |
Line 10... |
// Creator: Dan Gisselquist, Ph.D.
|
// Creator: Dan Gisselquist, Ph.D.
|
// Gisselquist Technology, LLC
|
// Gisselquist Technology, LLC
|
//
|
//
|
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
//
|
//
|
// Copyright (C) 2015, Gisselquist Technology, LLC
|
// Copyright (C) 2015-2016, Gisselquist Technology, LLC
|
//
|
//
|
// This program is free software (firmware): you can redistribute it and/or
|
// This program is free software (firmware): you can redistribute it and/or
|
// modify it under the terms of the GNU General Public License as published
|
// modify it under the terms of the GNU General Public License as published
|
// by the Free Software Foundation, either version 3 of the License, or (at
|
// by the Free Software Foundation, either version 3 of the License, or (at
|
// your option) any later version.
|
// your option) any later version.
|
Line 91... |
Line 91... |
m_fpga = new FPGA(new USBI());
|
m_fpga = new FPGA(new USBI());
|
else
|
else
|
m_fpga = new FPGA(new NETCOMMS(FPGAHOST, port));
|
m_fpga = new FPGA(new NETCOMMS(FPGAHOST, port));
|
|
|
|
|
|
// Read our file and copy it into memory
|
try {
|
try {
|
int nr;
|
int nr;
|
pos = SDRAMBASE;
|
pos = SDRAMBASE;
|
do {
|
do {
|
nr = BUFLN;
|
nr = BUFLN;
|
Line 130... |
Line 131... |
exit(-1);
|
exit(-1);
|
}
|
}
|
|
|
unsigned mmaddr[65536], mmval[65536], mmidx = 0;
|
unsigned mmaddr[65536], mmval[65536], mmidx = 0;
|
|
|
|
// Read it back from memory
|
try {
|
try {
|
pos = SDRAMBASE;
|
pos = SDRAMBASE;
|
const unsigned int MAXRAM = SDRAMBASE*2;
|
const unsigned int MAXRAM = SDRAMBASE*2;
|
bool mismatch = false;
|
bool mismatch = false;
|
unsigned total_reread = 0;
|
unsigned total_reread = 0;
|