Commit 7ec23c8f authored by Dimitris Lampridis's avatar Dimitris Lampridis

Merge branch '38-release-4-3-0' into 'master'

Resolve "release 4.3.0"

Closes #38

See merge request be-cem-edl/common/mockturtle!29
parents 62dd78e4 a9b8030d
...@@ -26,6 +26,18 @@ software_build: ...@@ -26,6 +26,18 @@ software_build:
variables: variables:
EDL_CI_SW_PATHS: software EDL_CI_SW_PATHS: software
sim_fw_build:
extends: .build_urv_fw
variables:
EXTRA2_CFLAGS: -DSIMULATION
script:
- make -C tests/firmware
- make -C demos firmware
artifacts:
paths:
- tests/firmware/**/*.bin
- demos/**/*.bin
test_fw_build: test_fw_build:
extends: .build_urv_fw extends: .build_urv_fw
variables: variables:
......
...@@ -9,6 +9,22 @@ Change Log ...@@ -9,6 +9,22 @@ Change Log
Format: `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_ Format: `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_
Versioning: `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_ Versioning: `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_
[4.3.0] - 2023-11-14
====================
Added
-----
- [bld] build distribution tarball with all binaries and development files (#36)
Changed
-------
- [sw/fw] use GCC toolchain v11.2 for RISC-V firmware compilation (#37)
- [bld] use common EDL CI pipelines (#35)
Fixed
-----
- [sw/py] fix calls to trtl_close() in TrtlDevice object destructor
- [sw] fix bug in sync_id when used by multiple sync users on same HMQ (#34)
[4.2.0] - 2023-06-12 [4.2.0] - 2023-06-12
==================== ====================
Added Added
......
...@@ -13,11 +13,12 @@ DIRS += fmc-spec-carrier/software ...@@ -13,11 +13,12 @@ DIRS += fmc-spec-carrier/software
TRTL ?= .. TRTL ?= ..
TRTL_SW = $(TRTL)/software TRTL_SW = $(TRTL)/software
all clean cleanall modules install modules_install: $(DIRS) all clean cleanall modules install modules_install firmware: $(DIRS)
clean: TARGET = clean clean: TARGET = clean
cleanall: TARGET = cleanall cleanall: TARGET = cleanall
modules: TARGET = modules modules: TARGET = modules
firmware: TARGET = firmware
install: TARGET = install install: TARGET = install
modules_install: TARGET = modules_install modules_install: TARGET = modules_install
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
hdl_simulation: hdl_simulation:
interruptible: true interruptible: true
stage: build stage: validate
when: manual when: manual
needs: [] needs: [sim_fw_build]
tags: tags:
- questasim - questasim
- "10.5c" - "10.5c"
......
...@@ -27,7 +27,8 @@ include_dirs = [ ...@@ -27,7 +27,8 @@ include_dirs = [
fetchto + "/gn4124-core/hdl/sim/gn4124_bfm", fetchto + "/gn4124-core/hdl/sim/gn4124_bfm",
] ]
sim_pre_cmd = "EXTRA2_CFLAGS='-DSIMULATION' make -C ../../../tests/firmware/hmq-async-recv defconfig all" # Now done via CI, otherwise it must be done manually using a RISC-V cross-compiler
#sim_pre_cmd = "EXTRA2_CFLAGS='-DSIMULATION' make -C ../../../tests/firmware/hmq-async-recv defconfig all"
files = [ files = [
"main.sv", "main.sv",
......
...@@ -25,7 +25,8 @@ include_dirs = [ ...@@ -25,7 +25,8 @@ include_dirs = [
fetchto + "/general-cores/sim/", fetchto + "/general-cores/sim/",
] ]
sim_pre_cmd = "EXTRA2_CFLAGS='-DSIMULATION' make -C ../../../tests/firmware/sim-verif defconfig all" # Now done via CI, otherwise it must be done manually using a RISC-V cross-compiler
#sim_pre_cmd = "EXTRA2_CFLAGS='-DSIMULATION' make -C ../../../tests/firmware/sim-verif defconfig all"
files = [ files = [
"main.sv", "main.sv",
......
...@@ -18,7 +18,8 @@ include_dirs = [ ...@@ -18,7 +18,8 @@ include_dirs = [
fetchto + "/general-cores/sim/", fetchto + "/general-cores/sim/",
] ]
sim_pre_cmd = "EXTRA2_CFLAGS='-DSIMULATION' make -C ../../../tests/firmware/rmq-udp-send defconfig all" # Now done via CI, otherwise it must be done manually using a RISC-V cross-compiler
#sim_pre_cmd = "EXTRA2_CFLAGS='-DSIMULATION' make -C ../../../tests/firmware/rmq-udp-send defconfig all"
files = [ files = [
"main.sv", "main.sv",
......
...@@ -27,7 +27,8 @@ include_dirs = [ ...@@ -27,7 +27,8 @@ include_dirs = [
fetchto + "/gn4124-core/hdl/sim/gn4124_bfm", fetchto + "/gn4124-core/hdl/sim/gn4124_bfm",
] ]
sim_pre_cmd = "EXTRA2_CFLAGS='-DSIMULATION' make -C ../../../demos/hello_world/firmware/fw-01 defconfig all" # Now done via CI, otherwise it must be done manually using a RISC-V cross-compiler
#sim_pre_cmd = "EXTRA2_CFLAGS='-DSIMULATION' make -C ../../../demos/hello_world/firmware/fw-01 defconfig all"
files = [ files = [
"main.sv", "main.sv",
......
...@@ -27,7 +27,8 @@ include_dirs = [ ...@@ -27,7 +27,8 @@ include_dirs = [
fetchto + "/vme64x-core/hdl/sim/vme64x_bfm/", fetchto + "/vme64x-core/hdl/sim/vme64x_bfm/",
] ]
sim_pre_cmd = "EXTRA2_CFLAGS='-DSIMULATION' make -C ../../../demos/hello_world/firmware/fw-01 defconfig all" # Now done via CI, otherwise it must be done manually using a RISC-V cross-compiler
#sim_pre_cmd = "EXTRA2_CFLAGS='-DSIMULATION' make -C ../../../demos/hello_world/firmware/fw-01 defconfig all"
files = [ files = [
"main.sv", "main.sv",
......
...@@ -81,6 +81,9 @@ CFLAGS += -I$(TRTL_FW)/framework ...@@ -81,6 +81,9 @@ CFLAGS += -I$(TRTL_FW)/framework
CFLAGS += -I$(TRTL_SW)/include CFLAGS += -I$(TRTL_SW)/include
CFLAGS += -DGIT_VERSION=$(RT_GIT_VERSION) CFLAGS += -DGIT_VERSION=$(RT_GIT_VERSION)
EXTRA2_CFLAGS += # To be set by user on make line
EXTRA_CFLAGS += $(EXTRA2_CFLAGS)
# used for firmware by trtl-project-creator # used for firmware by trtl-project-creator
CFLAGS += $(EXTRA_CFLAGS) CFLAGS += $(EXTRA_CFLAGS)
......
...@@ -203,7 +203,8 @@ class TrtlDevice(object): ...@@ -203,7 +203,8 @@ class TrtlDevice(object):
def __del__(self): def __del__(self):
if self.libtrtl is not None: if self.libtrtl is not None:
self.libtrtl.close(self.tkn) if hasattr(self, 'tkn'):
self.libtrtl.trtl_close(self.tkn)
self.libtrtl.trtl_exit() self.libtrtl.trtl_exit()
def __str__(self): def __str__(self):
...@@ -218,6 +219,8 @@ class TrtlDevice(object): ...@@ -218,6 +219,8 @@ class TrtlDevice(object):
self.libtrtl.trtl_open_by_id.argtypes = [c_uint] self.libtrtl.trtl_open_by_id.argtypes = [c_uint]
self.libtrtl.trtl_open_by_id.restype = c_void_p self.libtrtl.trtl_open_by_id.restype = c_void_p
self.libtrtl.trtl_open_by_id.errcheck = self.__errcheck_pointer self.libtrtl.trtl_open_by_id.errcheck = self.__errcheck_pointer
self.libtrtl.trtl_close.argtypes = [c_void_p]
self.libtrtl.trtl_close.restype = None
# ERROR # ERROR
self.libtrtl.trtl_strerror.argtypes = [c_int] self.libtrtl.trtl_strerror.argtypes = [c_int]
self.libtrtl.trtl_strerror.restype = c_char_p self.libtrtl.trtl_strerror.restype = c_char_p
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment