Skip to content

Commit ffc7471

Browse files
authored
cleaning scripts (#4)
Signed-off-by: Bruno Mesnet <[email protected]> Signed-off-by: Bruno Mesnet <[email protected]>
1 parent 20c9277 commit ffc7471

Some content is hidden

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

64 files changed

+1962
-411
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Any new board or additional ports can be easily added. Board specific files can
4545

4646
I2C communication with these boards can be done with a Rasberry Pi.
4747

48-
AMD/Xilinx Vivado 2018.3 is used to build the FPGA binary images.
48+
AMD/Xilinx Vivado 2021.2 is used to build the FPGA binary images.
4949

5050
Code is designed for AMD/Xilinx UltraScale+ FPGA family.
5151

@@ -81,8 +81,8 @@ GUI). The command output is written to `$design/$command.log`, and
8181
also colorized and printed to the screen. Output files are saved in
8282
the `$design/` directory, including a design checkpoint (.dcp file).
8383

84-
__run_fire.sh__: Runs the main synthesize, then implement using strategy 8,
85-
and gen_bitstream with implementation strategy result 8. This number will be
84+
__run_fire.sh__: Runs the main synthesize, then implement using strategy 17,
85+
and gen_bitstream with implementation strategy result 17. This number will be
8686
adapted depending on the design and the WNS result displayed at the end of
8787
the place and route phase. If run on
8888
a machine with a `bsub` binary found (aka LSF is installed), then the
@@ -128,6 +128,8 @@ __build.lsf__: LSF configuration used for all commands submitted via `bsub`.
128128

129129
__clean_all.sh__: clean the whole project removing all files generated by scripts.
130130

131+
__clean_fire.sh__: clean the whole fire project removing all files generated by scripts.
132+
131133
## Work-In-Progress
132134

133135
These files are either a work-in-progress or stale, and should not be
@@ -136,5 +138,5 @@ used.
136138
__waived_warnings.txt__: List of warnings that are known and
137139
acceptable.
138140

139-
__print_warnings.sh__: Print all the warnings in run.log that are not
141+
__print_warnings_fire.sh__: Print all the warnings in run.log that are not
140142
waived in waived_warnings.txt.

build/README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
This directory contains the various scripts needed to synthesize and
44
implement RTL, as well as generate a bitstream, for an FPGA using the
5-
Fire design. (it was targeting fire (host) and ice (device) but
6-
only fire is available yet. Any "$design" found should be set to "fire")
5+
Fire design.
76

87
The following command launches for the entire process, with some parallelization:
98

@@ -19,7 +18,7 @@ GUI). The command output is written to `$design/$command.log`, and
1918
also colorized and printed to the screen. Output files are saved in
2019
the `$design/` directory, including a design checkpoint (.dcp file).
2120

22-
__run_all.sh__: Takes a design as an argument, and runs the main
21+
__run_fire.sh__: Runs the build image process for fire. Runs the main
2322
synthesize, implement, and gen_bitstream loop sequentially. If run on
2423
a machine with a `bsub` binary found (aka LSF is installed), then the
2524
commands are dispatched via LSF. Additionally, 16 implementation
@@ -32,10 +31,6 @@ __fire/__ : Contain all output files from Vivado. Each
3231
command outputs to a log stored in the top-level directory, and other
3332
files are stored in a sub-directory per command.
3433

35-
__fire_deploy/__ : Contain "important" files from
36-
the run_all.sh script. These are files that could be worth using at a
37-
later point.
38-
3934
## Vivado TCL Scripts
4035

4136
__synthesize.tcl__: Load libraries and read RTL and constraint files,

build/bsub_batch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
#!/usr/bin/env bash
2+
##
3+
## Copyright 2022 International Business Machines
4+
##
5+
## Licensed under the Apache License, Version 2.0 (the "License");
6+
## you may not use this file except in compliance with the License.
7+
## You may obtain a copy of the License at
8+
## http://www.apache.org/licenses/LICENSE-2.0
9+
##
10+
## The patent license granted to you in Section 3 of the License, as applied
11+
## to the "Work," hereby includes implementations of the Work in physical form.
12+
##
13+
## Unless required by applicable law or agreed to in writing, the reference design
14+
## distributed under the License is distributed on an "AS IS" BASIS,
15+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
## See the License for the specific language governing permissions and
17+
## limitations under the License.
18+
##
19+
## The background Specification upon which this is based is managed by and available from
20+
## the OpenCAPI Consortium. More information can be found at https://opencapi.org.
21+
##
22+
223

324
set -e
425

build/bsub_run

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
#!/usr/bin/env bash
2+
##
3+
## Copyright 2022 International Business Machines
4+
##
5+
## Licensed under the Apache License, Version 2.0 (the "License");
6+
## you may not use this file except in compliance with the License.
7+
## You may obtain a copy of the License at
8+
## http://www.apache.org/licenses/LICENSE-2.0
9+
##
10+
## The patent license granted to you in Section 3 of the License, as applied
11+
## to the "Work," hereby includes implementations of the Work in physical form.
12+
##
13+
## Unless required by applicable law or agreed to in writing, the reference design
14+
## distributed under the License is distributed on an "AS IS" BASIS,
15+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
## See the License for the specific language governing permissions and
17+
## limitations under the License.
18+
##
19+
## The background Specification upon which this is based is managed by and available from
20+
## the OpenCAPI Consortium. More information can be found at https://opencapi.org.
21+
##
22+
223

324
set -e
425

build/clean_all.sh

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,34 @@
1+
##
2+
## Copyright 2022 International Business Machines
3+
##
4+
## Licensed under the Apache License, Version 2.0 (the "License");
5+
## you may not use this file except in compliance with the License.
6+
## You may obtain a copy of the License at
7+
## http://www.apache.org/licenses/LICENSE-2.0
8+
##
9+
## The patent license granted to you in Section 3 of the License, as applied
10+
## to the "Work," hereby includes implementations of the Work in physical form.
11+
##
12+
## Unless required by applicable law or agreed to in writing, the reference design
13+
## distributed under the License is distributed on an "AS IS" BASIS,
14+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
## See the License for the specific language governing permissions and
16+
## limitations under the License.
17+
##
18+
## The background Specification upon which this is based is managed by and available from
19+
## the OpenCAPI Consortium. More information can be found at https://opencapi.org.
20+
##
21+
122
rm -rf .cache/
2-
rm .OMI_IPs*
3-
rm -rf ../ip_created_for*
4-
rm -rf fire*
523
rm -rf .Xil
624
rm -rf .ip_user_files
725
rm -rf ip_dir
826
rm *.log
927
rm *.jou
28+
rm vivado*.str
29+
rm iter*
1030
rm usage_statistics_webtalk.*
11-
rm ../fire/src/verilog/DLx*
12-
rm ../fire/src/verilog/dlx*
13-
rm -rf ../fire/src/headers
31+
rm tight_setup_hold_pins.txt
32+
rm -rf ./.tmpCRC
33+
source ./clean_fire.sh
34+
source ./clean_ice.sh

build/clean_fire.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
##
3+
## Copyright 2022 International Business Machines
4+
##
5+
## Licensed under the Apache License, Version 2.0 (the "License");
6+
## you may not use this file except in compliance with the License.
7+
## You may obtain a copy of the License at
8+
## http://www.apache.org/licenses/LICENSE-2.0
9+
##
10+
## The patent license granted to you in Section 3 of the License, as applied
11+
## to the "Work," hereby includes implementations of the Work in physical form.
12+
##
13+
## Unless required by applicable law or agreed to in writing, the reference design
14+
## distributed under the License is distributed on an "AS IS" BASIS,
15+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
## See the License for the specific language governing permissions and
17+
## limitations under the License.
18+
##
19+
## The background Specification upon which this is based is managed by and available from
20+
## the OpenCAPI Consortium. More information can be found at https://opencapi.org.
21+
##
22+
23+
rm .OMI_IPs_fire_*
24+
rm -rf ../ip_created_for_fire
25+
rm -rf fire*
26+
rm -rf ../fire/src/ip/managed_ip_project
27+
rm ../fire/src/verilog/DLx*
28+
rm ../fire/src/verilog/dlx*
29+
rm -rf ../fire/src/headers
30+
rm ../fire/src/vhdl/meta_pkg.vhdl

0 commit comments

Comments
 (0)