Skip to content

Commit

Permalink
Atualizando para "processor_ci"
Browse files Browse the repository at this point in the history
  • Loading branch information
gabcro committed Feb 5, 2025
1 parent 043f273 commit e399a7b
Show file tree
Hide file tree
Showing 86 changed files with 420 additions and 420 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Thank you for considering contributing to the project! We’re happy to welcome
Clone your forked repository to your local development environment.

```bash
git clone https://github.com/YOUR_USERNAME/processor-ci.git
cd processor-ci
git clone https://github.com/YOUR_USERNAME/processor_ci.git
cd processor_ci
```

3. **Create a Branch**
Expand Down Expand Up @@ -83,4 +83,4 @@ Thank you for considering contributing to the project! We’re happy to welcome

## License

By contributing to this project, you agree that your contributions will be licensed under the same license as the project. See the [license](https://github.com/LSC-Unicamp/processor-ci/blob/main/LICENSE) for details.
By contributing to this project, you agree that your contributions will be licensed under the same license as the project. See the [license](https://github.com/LSC-Unicamp/processor_ci/blob/main/LICENSE) for details.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ProcessorCI

[![Pylint](https://github.com/LSC-Unicamp/processor-ci/actions/workflows/pylint.yml/badge.svg)](https://github.com/LSC-Unicamp/processor-ci/actions/workflows/pylint.yml)
[![Python Code Format Check](https://github.com/LSC-Unicamp/processor-ci/actions/workflows/blue.yml/badge.svg)](https://github.com/LSC-Unicamp/processor-ci/actions/workflows/blue.yml)
[![Pylint](https://github.com/LSC-Unicamp/processor_ci/actions/workflows/pylint.yml/badge.svg)](https://github.com/LSC-Unicamp/processor_ci/actions/workflows/pylint.yml)
[![Python Code Format Check](https://github.com/LSC-Unicamp/processor_ci/actions/workflows/blue.yml/badge.svg)](https://github.com/LSC-Unicamp/processor_ci/actions/workflows/blue.yml)

- **Não fala Inglês? [clique aqui](./README.pt.md)**

Expand All @@ -21,8 +21,8 @@ This repository contains utility scripts to configure processors, perform synthe
Clone the repository to your local development environment:

```bash
git clone https://github.com/LSC-Unicamp/processor-ci.git
cd processor-ci
git clone https://github.com/LSC-Unicamp/processor_ci.git
cd processor_ci
```

2. **Set up a Virtual Environment and Install Dependencies**
Expand Down Expand Up @@ -127,7 +127,7 @@ Core #(
);
```

More details are available in the [Controller documentation](https://lsc-unicamp.github.io/processor-ci-controller/).
More details are available in the [Controller documentation](https://lsc-unicamp.github.io/processor_ci-controller/).

#### 3. Integrating with Jenkins

Expand Down
10 changes: 5 additions & 5 deletions README.pt.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ProcessorCI

[![Pylint](https://github.com/LSC-Unicamp/processor-ci/actions/workflows/pylint.yml/badge.svg)](https://github.com/LSC-Unicamp/processor-ci/actions/workflows/pylint.yml)
[![Python Code Format Check](https://github.com/LSC-Unicamp/processor-ci/actions/workflows/blue.yml/badge.svg)](https://github.com/LSC-Unicamp/processor-ci/actions/workflows/blue.yml)
[![Pylint](https://github.com/LSC-Unicamp/processor_ci/actions/workflows/pylint.yml/badge.svg)](https://github.com/LSC-Unicamp/processor_ci/actions/workflows/pylint.yml)
[![Python Code Format Check](https://github.com/LSC-Unicamp/processor_ci/actions/workflows/blue.yml/badge.svg)](https://github.com/LSC-Unicamp/processor_ci/actions/workflows/blue.yml)

Bem-vindo ao ProcessorCI!

Expand All @@ -19,8 +19,8 @@ Este repositório contém scripts utilitários para configurar processadores, re
Clone o repositório para o seu ambiente de desenvolvimento local.

```bash
git clone https://github.com/LSC-Unicamp/processor-ci.git
cd processor-ci
git clone https://github.com/LSC-Unicamp/processor_ci.git
cd processor_ci
```

2. **Configure um ambiente virtual e instale as dependências**
Expand Down Expand Up @@ -125,7 +125,7 @@ Core #(
);
```

Mais detalhes na [documentação do Controller](https://lsc-unicamp.github.io/processor-ci-controller/).
Mais detalhes na [documentação do Controller](https://lsc-unicamp.github.io/processor_ci-controller/).

#### 3. Integrando ao Jenkins

Expand Down
2 changes: 1 addition & 1 deletion config_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
# "digilent_arty_a7_100t"
]
DESTINATION_DIR = './temp'
MAIN_SCRIPT_PATH = '/eda/processor-ci/main.py'
MAIN_SCRIPT_PATH = '/eda/processor_ci/main.py'


def get_top_module_file(modules: list[dict[str, str]], top_module: str) -> str:
Expand Down
8 changes: 4 additions & 4 deletions core/fpga.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def make_build_file(config: dict, board: str, toolchain_path: str) -> str:
toolchain_path = toolchain_path[:-1]

base_config_path = (
f'{toolchain_path}/processor-ci/build_scripts/{board}.tcl'
f'{toolchain_path}/processor_ci/build_scripts/{board}.tcl'
)

if not os.path.exists(base_config_path):
Expand All @@ -150,7 +150,7 @@ def make_build_file(config: dict, board: str, toolchain_path: str) -> str:
prefix = get_prefix(board, False, False)
file.write(
prefix
+ f' {toolchain_path}/processor-ci/rtl/{config["folder"]}.v\n'
+ f' {toolchain_path}/processor_ci/rtl/{config["folder"]}.v\n'
)

for i in config['files']:
Expand Down Expand Up @@ -184,7 +184,7 @@ def build(build_script_path: str, board: str, toolchain_path: str) -> None:
if toolchain_path[-1] == '/':
toolchain_path = toolchain_path[:-1]

makefile_path = f'{toolchain_path}/processor-ci/makefiles/{board}.mk'
makefile_path = f'{toolchain_path}/processor_ci/makefiles/{board}.mk'

macros = get_macros(board)

Expand Down Expand Up @@ -232,7 +232,7 @@ def flash(board: str, toolchain_path: str) -> None:
if toolchain_path[-1] == '/':
toolchain_path = toolchain_path[:-1]

makefile_path = f'{toolchain_path}/processor-ci/makefiles/{board}.mk'
makefile_path = f'{toolchain_path}/processor_ci/makefiles/{board}.mk'

with subprocess.Popen(
['make', '-f', makefile_path, 'load'],
Expand Down
4 changes: 2 additions & 2 deletions core/jenkins.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def generate_jenkinsfile(

# Command for extra utilities in the pipeline
utilities_command = (
r'sh "python3 /eda/processor-ci/core/labeler_prototype.py -d \$(pwd) '
+ '-c /eda/processor-ci/config.json -o /jenkins/processor_ci_utils/labels.json"'
r'sh "python3 /eda/processor_ci/core/labeler_prototype.py -d \$(pwd) '
+ '-c /eda/processor_ci/config.json -o /jenkins/processor_ci_utils/labels.json"'
)

# Determine simulation command based on file types
Expand Down
10 changes: 5 additions & 5 deletions jenkins_pipeline/.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pipeline {
stage('Utilities') {
steps {
dir("") {
sh "python3 /eda/processor-ci/core/labeler_prototype.py -d \$(pwd) -c /eda/processor-ci/config.json -o /jenkins/processor_ci_utils/labels.json"
sh "python3 /eda/processor_ci/core/labeler_prototype.py -d \$(pwd) -c /eda/processor_ci/config.json -o /jenkins/processor_ci_utils/labels.json"
}
}
}
Expand All @@ -39,7 +39,7 @@ pipeline {
steps {
dir("") {
echo 'Starting synthesis for FPGA colorlight_i9.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p -b colorlight_i9'
}
}
Expand All @@ -48,7 +48,7 @@ pipeline {
steps {
dir("") {
echo 'Flashing FPGA colorlight_i9.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p -b colorlight_i9 -l'
}
}
Expand All @@ -73,7 +73,7 @@ pipeline {
steps {
dir("") {
echo 'Starting synthesis for FPGA digilent_nexys4_ddr.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p -b digilent_nexys4_ddr'
}
}
Expand All @@ -82,7 +82,7 @@ pipeline {
steps {
dir("") {
echo 'Flashing FPGA digilent_nexys4_ddr.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p -b digilent_nexys4_ddr -l'
}
}
Expand Down
10 changes: 5 additions & 5 deletions jenkins_pipeline/AUK-V-Aethia.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pipeline {
stage('Utilities') {
steps {
dir("AUK-V-Aethia") {
sh "python3 /eda/processor-ci/core/labeler_prototype.py -d \$(pwd) -c /eda/processor-ci/config.json -o /jenkins/processor_ci_utils/labels.json"
sh "python3 /eda/processor_ci/core/labeler_prototype.py -d \$(pwd) -c /eda/processor_ci/config.json -o /jenkins/processor_ci_utils/labels.json"
}
}
}
Expand All @@ -39,7 +39,7 @@ pipeline {
steps {
dir("AUK-V-Aethia") {
echo 'Starting synthesis for FPGA colorlight_i9.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p AUK-V-Aethia -b colorlight_i9'
}
}
Expand All @@ -48,7 +48,7 @@ pipeline {
steps {
dir("AUK-V-Aethia") {
echo 'Flashing FPGA colorlight_i9.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p AUK-V-Aethia -b colorlight_i9 -l'
}
}
Expand All @@ -73,7 +73,7 @@ pipeline {
steps {
dir("AUK-V-Aethia") {
echo 'Starting synthesis for FPGA digilent_nexys4_ddr.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p AUK-V-Aethia -b digilent_nexys4_ddr'
}
}
Expand All @@ -82,7 +82,7 @@ pipeline {
steps {
dir("AUK-V-Aethia") {
echo 'Flashing FPGA digilent_nexys4_ddr.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p AUK-V-Aethia -b digilent_nexys4_ddr -l'
}
}
Expand Down
10 changes: 5 additions & 5 deletions jenkins_pipeline/Anfield.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pipeline {
stage('Utilities') {
steps {
dir("Anfield") {
sh "python3 /eda/processor-ci/core/labeler_prototype.py -d \$(pwd) -c /eda/processor-ci/config.json -o /jenkins/processor_ci_utils/labels.json"
sh "python3 /eda/processor_ci/core/labeler_prototype.py -d \$(pwd) -c /eda/processor_ci/config.json -o /jenkins/processor_ci_utils/labels.json"
}
}
}
Expand All @@ -39,7 +39,7 @@ pipeline {
steps {
dir("Anfield") {
echo 'Starting synthesis for FPGA colorlight_i9.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p Anfield -b colorlight_i9'
}
}
Expand All @@ -48,7 +48,7 @@ pipeline {
steps {
dir("Anfield") {
echo 'Flashing FPGA colorlight_i9.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p Anfield -b colorlight_i9 -l'
}
}
Expand All @@ -73,7 +73,7 @@ pipeline {
steps {
dir("Anfield") {
echo 'Starting synthesis for FPGA digilent_nexys4_ddr.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p Anfield -b digilent_nexys4_ddr'
}
}
Expand All @@ -82,7 +82,7 @@ pipeline {
steps {
dir("Anfield") {
echo 'Flashing FPGA digilent_nexys4_ddr.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p Anfield -b digilent_nexys4_ddr -l'
}
}
Expand Down
10 changes: 5 additions & 5 deletions jenkins_pipeline/Baby-Risco-5.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pipeline {
stage('Utilities') {
steps {
dir("Baby-Risco-5") {
sh "python3 /eda/processor-ci/core/labeler_prototype.py -d \$(pwd) -c /eda/processor-ci/config.json -o /jenkins/processor_ci_utils/labels.json"
sh "python3 /eda/processor_ci/core/labeler_prototype.py -d \$(pwd) -c /eda/processor_ci/config.json -o /jenkins/processor_ci_utils/labels.json"
}
}
}
Expand All @@ -39,7 +39,7 @@ pipeline {
steps {
dir("Baby-Risco-5") {
echo 'Starting synthesis for FPGA colorlight_i9.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p Baby-Risco-5 -b colorlight_i9'
}
}
Expand All @@ -48,7 +48,7 @@ pipeline {
steps {
dir("Baby-Risco-5") {
echo 'Flashing FPGA colorlight_i9.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p Baby-Risco-5 -b colorlight_i9 -l'
}
}
Expand All @@ -73,7 +73,7 @@ pipeline {
steps {
dir("Baby-Risco-5") {
echo 'Starting synthesis for FPGA digilent_nexys4_ddr.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p Baby-Risco-5 -b digilent_nexys4_ddr'
}
}
Expand All @@ -82,7 +82,7 @@ pipeline {
steps {
dir("Baby-Risco-5") {
echo 'Flashing FPGA digilent_nexys4_ddr.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p Baby-Risco-5 -b digilent_nexys4_ddr -l'
}
}
Expand Down
10 changes: 5 additions & 5 deletions jenkins_pipeline/Cores-SweRV-EH2.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pipeline {
stage('Utilities') {
steps {
dir("Cores-SweRV-EH2") {
sh "python3 /eda/processor-ci/core/labeler_prototype.py -d \$(pwd) -c /eda/processor-ci/config.json -o /jenkins/processor_ci_utils/labels.json"
sh "python3 /eda/processor_ci/core/labeler_prototype.py -d \$(pwd) -c /eda/processor_ci/config.json -o /jenkins/processor_ci_utils/labels.json"
}
}
}
Expand All @@ -39,7 +39,7 @@ pipeline {
steps {
dir("Cores-SweRV-EH2") {
echo 'Starting synthesis for FPGA colorlight_i9.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p Cores-SweRV-EH2 -b colorlight_i9'
}
}
Expand All @@ -48,7 +48,7 @@ pipeline {
steps {
dir("Cores-SweRV-EH2") {
echo 'Flashing FPGA colorlight_i9.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p Cores-SweRV-EH2 -b colorlight_i9 -l'
}
}
Expand All @@ -73,7 +73,7 @@ pipeline {
steps {
dir("Cores-SweRV-EH2") {
echo 'Starting synthesis for FPGA digilent_nexys4_ddr.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p Cores-SweRV-EH2 -b digilent_nexys4_ddr'
}
}
Expand All @@ -82,7 +82,7 @@ pipeline {
steps {
dir("Cores-SweRV-EH2") {
echo 'Flashing FPGA digilent_nexys4_ddr.'
sh 'python3 /eda/processor-ci/main.py -c /eda/processor_ci/config.json \
sh 'python3 /eda/processor_ci/main.py -c /eda/processor_ci/config.json \
-p Cores-SweRV-EH2 -b digilent_nexys4_ddr -l'
}
}
Expand Down
Loading

0 comments on commit e399a7b

Please sign in to comment.