-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync with local branch, phase 2 done
- Loading branch information
1 parent
5ee345a
commit c512fd2
Showing
25 changed files
with
433 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,6 @@ csr | |
*.xclbin | ||
*.sh | ||
tmp_fpga_top | ||
code_gen | ||
tmp_para | ||
code_gen | ||
para_gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Verification | ||
|
||
As we have a cache in ThunderGP, the static verification method (emu-sw) can not be used for the verification and validation of our framework. ThunderGP provides an automatic verification scheme, by calling the function ```accelratorProfile``` after the calcuation, the verification will be automatically performed, and it will output the difference between the result from hardware unit and the golden. Currently it only supports the verification on the fisrt super step. | ||
As we have a cache in ThunderGP, the static verification method (emu-sw) can not be used for the verification and validation of our framework. ThunderGP provides an automatic verification scheme, by calling the function ```acceleratorProfile``` after the calcuation, the verification will be automatically performed, and it will output the difference between the result from hardware unit and the golden. Currently it only supports the verification on the fisrt super step. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ void edgePropCouple ( | |
break; | ||
} | ||
} | ||
clear_stream(input); | ||
clear_stream(edgeProp); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef __DEVICE_COMMON_H__ | ||
#define __DEVICE_COMMON_H__ | ||
|
||
typedef struct | ||
{ | ||
int slr_id; | ||
int luts; | ||
int ffs; | ||
int dsp; | ||
int bram; | ||
int uram; | ||
} slr_resource_info_t; | ||
|
||
|
||
#endif /* __DEVICE_COMMON_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include "device_common.h" | ||
|
||
const char * board_name = "u200"; | ||
|
||
const slr_resource_info_t slrs[] = | ||
{ | ||
{ | ||
.slr_id = 0, | ||
.luts = 354831, | ||
.ffs = 723372, | ||
.dsp = 2265, | ||
.bram = 638, | ||
.uram = 320, | ||
}, | ||
{ | ||
.slr_id = 1, | ||
.luts = 159854, | ||
.ffs = 331711, | ||
.dsp = 1317, | ||
.bram = 326, | ||
.uram = 160, | ||
}, | ||
{ | ||
.slr_id = 2, | ||
.luts = 354962, | ||
.ffs = 723353, | ||
.dsp = 2265, | ||
.bram = 638, | ||
.uram = 320, | ||
}, | ||
}; | ||
|
||
const int mem_cu_map[] = | ||
{ | ||
0, 1, 1, 2 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#include "device_common.h" | ||
|
||
const char * board_name = "u250"; | ||
|
||
const slr_resource_info_t slrs[] = | ||
{ | ||
{ | ||
.slr_id = 0, | ||
.luts = 345171, | ||
.ffs = 704801, | ||
.dsp = 2877, | ||
.bram = 500, | ||
.uram = 320, | ||
}, | ||
{ | ||
.slr_id = 1, | ||
.luts = 344533, | ||
.ffs = 702517, | ||
.dsp = 2877, | ||
.bram = 500, | ||
.uram = 320, | ||
}, | ||
{ | ||
.slr_id = 2, | ||
.luts = 344878, | ||
.ffs = 703253, | ||
.dsp = 2877, | ||
.bram = 500, | ||
.uram = 0, | ||
}, | ||
{ | ||
.slr_id = 3, | ||
.luts = 345158, | ||
.ffs = 703761, | ||
.dsp = 2877, | ||
.bram = 500, | ||
.uram = 320, | ||
}, | ||
}; | ||
|
||
const int mem_cu_map[] = | ||
{ | ||
0, 1, 2, 3 | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include "device_common.h" | ||
|
||
const char * board_name = "vcu1525"; | ||
|
||
const slr_resource_info_t slrs[] = | ||
{ | ||
{ | ||
.slr_id = 0, | ||
.luts = 354830, | ||
.ffs = 723371, | ||
.dsp = 2265, | ||
.bram = 638, | ||
.uram = 320, | ||
}, | ||
{ | ||
.slr_id = 1, | ||
.luts = 159088, | ||
.ffs = 329162, | ||
.dsp = 1317, | ||
.bram = 326, | ||
.uram = 160, | ||
}, | ||
{ | ||
.slr_id = 2, | ||
.luts = 354934, | ||
.ffs = 723328, | ||
.dsp = 2265, | ||
.bram = 638, | ||
.uram = 320, | ||
}, | ||
}; | ||
|
||
const int mem_cu_map[] = | ||
{ | ||
0, 1, 1, 2 | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <stdio.h> | ||
|
||
#include "device_common.h" | ||
|
||
#ifndef DEVICE_HEADER | ||
#error "no board name" | ||
#endif | ||
|
||
#include DEVICE_HEADER | ||
|
||
int main(int argc, char **argv) { | ||
printf("%s \n", board_name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.