Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: azonenberg/openfpga
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5f4793935549
Choose a base ref
...
head repository: azonenberg/openfpga
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4d4f489b1b3f
Choose a head ref
  • 2 commits
  • 8 files changed
  • 1 contributor

Commits on Jun 5, 2017

  1. Copy the full SHA
    4291452 View commit details
  2. Copy the full SHA
    4d4f489 View commit details
2 changes: 1 addition & 1 deletion src/gp4tchar/gp4tchar.h
Original file line number Diff line number Diff line change
@@ -37,11 +37,11 @@ bool PowerSetup(hdevice hdev, int voltage_mv = 3300);

bool ReadTraceDelays();
bool CalibrateTraceDelays(Socket& sock, hdevice hdev);
bool MeasureDelay(Socket& sock, int src, int dst, float& delay);

bool MeasureLUTDelays(Socket& sock, hdevice hdev);
bool MeasurePinToPinDelays(Socket& sock, hdevice hdev);
bool MeasureCrossConnectionDelays(Socket& sock, hdevice hdev);
bool MeasureInverterDelays(Socket& sock, hdevice hdev);

void WaitForKeyPress();

8 changes: 7 additions & 1 deletion src/gp4tchar/main.cpp
Original file line number Diff line number Diff line change
@@ -89,6 +89,7 @@ int main(int argc, char* argv[])
LogError("Failed to connect to GreenpakTimingTest server\n");
return 1;
}
sock.DisableNagle();

LogNotice("GreenPAK timing characterization helper v0.1 by Andrew Zonenberg\n");

@@ -129,15 +130,20 @@ int main(int argc, char* argv[])
return 1;

//Measure delay through each element
/*
if(!MeasurePinToPinDelays(sock, hdev))
return 1;
if(!MeasureCrossConnectionDelays(sock, hdev))
return 1;
if(!MeasureLUTDelays(sock, hdev))
return 1;
if(!MeasureInverterDelays(sock, hdev))
return 1;
*/
if(!MeasureDelayLineDelays(sock, hdev))
return 1;

//Save to disk

LogNotice("Saving timing data to file %s\n", tfname.c_str());
g_calDevice.SaveTimingData(tfname.c_str());

Loading