From c02a60532e4c8449726eb7371c9b6785f296d6ae Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sat, 2 Dec 2023 14:25:03 +0100 Subject: [PATCH 1/5] adds finish notification --- Jenkinsfile | 91 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 53 insertions(+), 38 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 00afe21..a968968 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -57,44 +57,59 @@ pipeline { stages { stage('tgc-VP pipeline') { parallel { - stage('ubuntu20'){ - agent {docker { image 'ubuntu-20.04' } } - stages { - stage('Checkout on Ubuntu20.04') { steps { checkout_tgc_vp() }} - stage('Build') { steps { build_tgc_vp() } } - } - } - stage('ubuntu22'){ - agent {docker { image 'ubuntu-22.04' } } - stages { - stage('Checkout on Ubuntu22.04') { steps { checkout_tgc_vp() }} - stage('Build') { steps { build_tgc_vp() } } - } - } - stage('Fedora28'){ - agent {docker { image 'fedora28' } } - stages { - stage('Checkout on Fedora') { steps {checkout_tgc_vp()}} - stage('Build') { steps {build_tgc_vp() }} - } - } - stage('CentOS7'){ - agent {docker { image 'centos7' } } - stages { - stage('Checkout on Ubuntu') { steps {checkout_tgc_vp()}} - stage('Build') { steps {build_tgc_vp()} - } - } - } - stage('RockyLinux8'){ - agent {docker { image 'rockylinux8' } } - stages { - stage('Checkout on Ubuntu') { steps {checkout_tgc_vp()}} - stage('Build') { steps {build_tgc_vp()} - } - } - } - } + stage('ubuntu20'){ + agent {docker { image 'ubuntu-20.04' } } + stages { + stage('Checkout on Ubuntu20.04') { steps { checkout_tgc_vp() }} + stage('Build') { steps { build_tgc_vp() } } + } + } + stage('ubuntu22'){ + agent {docker { image 'ubuntu-22.04' } } + stages { + stage('Checkout on Ubuntu22.04') { steps { checkout_tgc_vp() }} + stage('Build') { steps { build_tgc_vp() } } + } + } + stage('Fedora28'){ + agent {docker { image 'fedora28' } } + stages { + stage('Checkout on Fedora') { steps {checkout_tgc_vp()}} + stage('Build') { steps {build_tgc_vp() }} + } + } + stage('CentOS7'){ + agent {docker { image 'centos7' } } + stages { + stage('Checkout on Ubuntu') { steps {checkout_tgc_vp()}} + stage('Build') { steps {build_tgc_vp()} + } + } + } + stage('RockyLinux8'){ + agent {docker { image 'rockylinux8' } } + stages { + stage('Checkout on Ubuntu') { steps {checkout_tgc_vp()}} + stage('Build') { steps {build_tgc_vp()} + } + } + } + } + } + } + post { + success { + rocketSend ":thumbsup: TGC-VP verification run passed, results at ${env.RUN_DISPLAY_URL} " + } + failure { + archiveArtifacts artifacts: 'failed_seeds_*.txt', followSymlinks: false, onlyIfSuccessful: false + rocketSend ":thumbsdown: TGC-VP verification failed, please check ${env.RUN_DISPLAY_URL} " + emailext recipientProviders: [culprits(), requestor()], + subject: "TGC-VP Pipeline Failed: ${currentBuild.fullDisplayName}", + body: """ +

Build Status: ${currentBuild.currentResult}

+

Check logs at Build Console Logs or at Overview

+ """ } } } \ No newline at end of file From 3cad3470aad1e6d03bc630360a6867ff2a3a1832 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sat, 2 Dec 2023 14:28:11 +0100 Subject: [PATCH 2/5] adds clean step to Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index a968968..9084ff8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,7 @@ def getBranch() { } void checkout_tgc_vp() { + sh("rm -rf *") checkout([ $class: 'GitSCM', branches: [ From fce49d68e129210ae0e68b67bff08a020841f7f7 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sat, 2 Dec 2023 14:29:44 +0100 Subject: [PATCH 3/5] removes Fedora as target system --- Jenkinsfile | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9084ff8..9f3be58 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -72,13 +72,6 @@ pipeline { stage('Build') { steps { build_tgc_vp() } } } } - stage('Fedora28'){ - agent {docker { image 'fedora28' } } - stages { - stage('Checkout on Fedora') { steps {checkout_tgc_vp()}} - stage('Build') { steps {build_tgc_vp() }} - } - } stage('CentOS7'){ agent {docker { image 'centos7' } } stages { From ac9aa90ff29b95ef772fe7c5d7a0d76877b5ac26 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sat, 2 Dec 2023 14:32:05 +0100 Subject: [PATCH 4/5] corrects upper-/lower-case --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9f3be58..4ce4152 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,7 +56,7 @@ pipeline { } stages { - stage('tgc-VP pipeline') { + stage('TGC-VP pipeline') { parallel { stage('ubuntu20'){ agent {docker { image 'ubuntu-20.04' } } From e279e8967e4da1b28f04fda6cb131894d0a5412e Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sun, 17 Dec 2023 12:24:55 +0100 Subject: [PATCH 5/5] updates submodules and adapts to changes there --- scc | 2 +- src/tgc_vp/system.cpp | 9 --------- src/tgc_vp/system.h | 6 +----- tgc-iss/dbt-rise-tgc | 2 +- vpvper | 2 +- 5 files changed, 4 insertions(+), 17 deletions(-) diff --git a/scc b/scc index 7cf3d94..1e7db7c 160000 --- a/scc +++ b/scc @@ -1 +1 @@ -Subproject commit 7cf3d94c133b000e9dd5d29b5b7da670a15f0859 +Subproject commit 1e7db7caf1117ec434b2d272a8556c6dded99b21 diff --git a/src/tgc_vp/system.cpp b/src/tgc_vp/system.cpp index 94a59a4..1dedcbc 100644 --- a/src/tgc_vp/system.cpp +++ b/src/tgc_vp/system.cpp @@ -14,16 +14,7 @@ using namespace sysc::tgfs; system::system(sc_core::sc_module_name nm) : sc_core::sc_module(nm) , NAMED(router, platfrom_mmap.size() + 2, 2) -, NAMEDC(qspi0_ptr, spi, spi_impl::beh) -, NAMEDC(qspi1_ptr, spi, spi_impl::beh) -, NAMEDC(qspi2_ptr, spi, spi_impl::beh) -, qspi0(*qspi0_ptr) -, qspi1(*qspi1_ptr) -, qspi2(*qspi2_ptr) { - auto& qspi0 = *qspi0_ptr; - auto& qspi1 = *qspi1_ptr; - auto& qspi2 = *qspi2_ptr; core_complex.ibus(router.target[0]); core_complex.dbus(router.target[1]); size_t i = 0; diff --git a/src/tgc_vp/system.h b/src/tgc_vp/system.h index ff41cbd..be94f29 100644 --- a/src/tgc_vp/system.h +++ b/src/tgc_vp/system.h @@ -44,7 +44,7 @@ private: scc::router<> router; vpvper::sifive::uart_terminal uart0{"uart0"}; vpvper::sifive::uart uart1{"uart1"}; - std::unique_ptr qspi0_ptr, qspi1_ptr, qspi2_ptr; + vpvper::sifive::spi qspi0{"qspi0"}, qspi1{"qspi1"}, qspi2{"qspi2"}; vpvper::sifive::pwm pwm0{"pwm0"}, pwm1{"pwm1"}, pwm2{"pwm2"}; vpvper::sifive::gpio gpio0{"gpio0"}; vpvper::sifive::plic plic{"plic"}; @@ -65,11 +65,7 @@ private: sc_core::sc_vector> global_int_s{"global_int_s", 256}, local_int_s{"local_int_s", 16}; sc_core::sc_signal core_int_s{"core_int_s"}; -protected: void gen_reset(); - vpvper::sifive::spi& qspi0; - vpvper::sifive::spi& qspi1; - vpvper::sifive::spi& qspi2; #include "tgc_vp/gen/platform_mmap.h" }; diff --git a/tgc-iss/dbt-rise-tgc b/tgc-iss/dbt-rise-tgc index bc4ea30..f4f90c5 160000 --- a/tgc-iss/dbt-rise-tgc +++ b/tgc-iss/dbt-rise-tgc @@ -1 +1 @@ -Subproject commit bc4ea30815e77651ded4c51d97d7452c7ad005bb +Subproject commit f4f90c5e65573d3bc979f447e3f78f794499d36e diff --git a/vpvper b/vpvper index 2df18a1..0b2dba5 160000 --- a/vpvper +++ b/vpvper @@ -1 +1 @@ -Subproject commit 2df18a17549559131f52f9bcc90d3cef44aa4f5d +Subproject commit 0b2dba5820ac06821306121f1d80b6b077fda4da