Skip to content

Commit 9c8969b

Browse files
heeran-xilinxGitHub Enterprise
authored andcommitted
Next (#650)
1 parent 9061c0b commit 9c8969b

File tree

482 files changed

+9961
-1217
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

482 files changed

+9961
-1217
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@Library('pipeline-library')_
22

3-
VitisLibPipeline (branch: 'master', libname: 'Vitis_Accel_Examples', run_sw_in_pr: 'true', TARGETS: 'vitis_sw_emu:vitis_hw_emu',
4-
email: '[email protected]', devtest: 'RunDeploy.sh', TOOLVERSION: '2020.1_released')
3+
VitisLibPipeline (branch: 'next', libname: 'Vitis_Accel_Examples', run_sw_in_pr: 'true', TARGETS: 'vitis_sw_emu:vitis_hw_emu',
4+
email: '[email protected]', devtest: 'RunDeploy.sh', TOOLVERSION: '2020.2_daily_latest')

common/includes/cmdparser/cmdlineparser.h

Lines changed: 15 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include <string>
2121
#include <vector>
2222

23-
using namespace std;
24-
2523
namespace sda {
2624
namespace utils {
2725

@@ -37,31 +35,13 @@ bool is_file(const std::string &name);
3735
class CmdLineParser {
3836
public:
3937
class CmdSwitch {
40-
public:
41-
CmdSwitch() {}
42-
CmdSwitch(const CmdSwitch &rhs) { copyfrom(rhs); }
43-
44-
void copyfrom(const CmdSwitch &rhs) {
45-
this->key = rhs.key;
46-
this->shortcut = rhs.shortcut;
47-
this->default_value = rhs.default_value;
48-
this->value = rhs.value;
49-
this->desc = rhs.desc;
50-
this->istoggle = rhs.istoggle;
51-
this->isvalid = rhs.isvalid;
52-
}
53-
54-
CmdSwitch &operator=(const CmdSwitch &rhs) {
55-
this->copyfrom(rhs);
56-
return *this;
57-
}
5838

5939
public:
60-
string key;
61-
string shortcut;
62-
string default_value;
63-
string value;
64-
string desc;
40+
std::string key;
41+
std::string shortcut;
42+
std::string default_value;
43+
std::string value;
44+
std::string desc;
6545
bool istoggle;
6646
bool isvalid;
6747
};
@@ -72,8 +52,9 @@ class CmdLineParser {
7252
virtual ~CmdLineParser();
7353

7454
bool addSwitch(const CmdSwitch &s);
75-
bool addSwitch(const string &name, const string &shortcut, const string &desc,
76-
const string &default_value = "", bool istoggle = false);
55+
bool addSwitch(const std::string &name, const std::string &shortcut,
56+
const std::string &desc, const std::string &default_value = "",
57+
bool istoggle = false);
7758

7859
/*!
7960
* sets default key to be able to read a 2 argumented call
@@ -88,7 +69,7 @@ class CmdLineParser {
8869
/*!
8970
* retrieve value using a key
9071
*/
91-
string value(const char *key);
72+
std::string value(const char *key);
9273

9374
int value_to_int(const char *key);
9475

@@ -110,14 +91,14 @@ class CmdLineParser {
11091
*/
11192
CmdSwitch *getCmdSwitch(const char *key);
11293

113-
bool token_to_fullkeyname(const string &token, string &fullkey);
94+
bool token_to_fullkeyname(const std::string &token, std::string &fullkey);
11495

11596
private:
116-
map<string, CmdSwitch *> m_mapKeySwitch;
117-
map<string, string> m_mapShortcutKeys;
118-
vector<CmdSwitch *> m_vSwitches;
119-
string m_strDefaultKey;
120-
string m_appname;
97+
std::map<std::string, CmdSwitch *> m_mapKeySwitch;
98+
std::map<std::string, std::string> m_mapShortcutKeys;
99+
std::vector<CmdSwitch *> m_vSwitches;
100+
std::string m_strDefaultKey;
101+
std::string m_appname;
121102
};
122103

123104
// bool starts_with(const string& src, const string& sub);
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Copyright (C) 2020 Xilinx, Inc
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"). You may
5+
* not use this file except in compliance with the License. A copy of the
6+
* License is located at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations
14+
* under the License.
15+
*/
16+
17+
#define DDR_BANK_CNTS 3
18+
#define DDR0_BANDWIDTH bandwidth_1
19+
#define DDR1_BANDWIDTH bandwidth_2
20+
#define DDR2_BANDWIDTH bandwidth_3
21+
#define TOTAL_BANK_CNTS 3
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"meminfo": [
3+
{
4+
"type": "DDR",
5+
"banks": [
6+
{
7+
"name": "DDR[0]"
8+
},
9+
{
10+
"name": "DDR[1]"
11+
},
12+
{
13+
"name": "DDR[2]"
14+
}
15+
]
16+
}
17+
]
18+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[connectivity]
2+
sp=bandwidth_1.output:DDR[0]
3+
sp=bandwidth_1.input:DDR[0]
4+
sp=bandwidth_2.output:DDR[1]
5+
sp=bandwidth_2.input:DDR[1]
6+
sp=bandwidth_3.output:DDR[2]
7+
sp=bandwidth_3.input:DDR[2]
8+
nk=bandwidth:3
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Copyright (C) 2020 Xilinx, Inc
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"). You may
5+
* not use this file except in compliance with the License. A copy of the
6+
* License is located at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations
14+
* under the License.
15+
*/
16+
17+
#define DDR_BANK_CNTS 4
18+
#define DDR0_BANDWIDTH bandwidth_1
19+
#define DDR1_BANDWIDTH bandwidth_2
20+
#define DDR2_BANDWIDTH bandwidth_3
21+
#define DDR3_BANDWIDTH bandwidth_4
22+
#define TOTAL_BANK_CNTS 4
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"meminfo": [
3+
{
4+
"type": "DDR",
5+
"banks": [
6+
{
7+
"name": "DDR[0]"
8+
},
9+
{
10+
"name": "DDR[1]"
11+
},
12+
{
13+
"name": "DDR[2]"
14+
},
15+
{
16+
"name": "DDR[3]"
17+
}
18+
]
19+
}
20+
]
21+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[connectivity]
2+
sp=bandwidth_1.output:DDR[0]
3+
sp=bandwidth_1.input:DDR[0]
4+
sp=bandwidth_2.output:DDR[1]
5+
sp=bandwidth_2.input:DDR[1]
6+
sp=bandwidth_3.output:DDR[2]
7+
sp=bandwidth_3.input:DDR[2]
8+
sp=bandwidth_4.output:DDR[3]
9+
sp=bandwidth_4.input:DDR[3]
10+
nk=bandwidth:4
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Copyright (C) 2020 Xilinx, Inc
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"). You may
5+
* not use this file except in compliance with the License. A copy of the
6+
* License is located at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations
14+
* under the License.
15+
*/
16+
17+
#define DDR_BANK_CNTS 4
18+
#define DDR0_BANDWIDTH bandwidth_1
19+
#define DDR1_BANDWIDTH bandwidth_2
20+
#define DDR2_BANDWIDTH bandwidth_3
21+
#define DDR3_BANDWIDTH bandwidth_4
22+
#define TOTAL_BANK_CNTS 4
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"meminfo": [
3+
{
4+
"type": "DDR",
5+
"banks": [
6+
{
7+
"name": "DDR[0]"
8+
},
9+
{
10+
"name": "DDR[1]"
11+
},
12+
{
13+
"name": "DDR[2]"
14+
},
15+
{
16+
"name": "DDR[3]"
17+
}
18+
]
19+
}
20+
]
21+
}

0 commit comments

Comments
 (0)