From 9f2f3223e578e2fa6195659fd19b42a0ba4e2d27 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Fri, 25 Feb 2022 21:40:13 +0100 Subject: [PATCH] add micobu ci test --- bench/bench_trashernet_phy.vhd | 6 +++--- cocotb/Makefile | 4 ++-- micobu.sh | 9 +++++++++ 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100755 micobu.sh diff --git a/bench/bench_trashernet_phy.vhd b/bench/bench_trashernet_phy.vhd index 33129ba..6ac651e 100644 --- a/bench/bench_trashernet_phy.vhd +++ b/bench/bench_trashernet_phy.vhd @@ -18,10 +18,10 @@ use work.bench_pkg.all; library trashernet; use trashernet.trashernet_pkg.all; -entity bench_trashernet_phy is -end entity bench_trashernet_phy; +entity cocotb_trashernet_phy is +end entity cocotb_trashernet_phy; -architecture bench of bench_trashernet_phy is +architecture bench of cocotb_trashernet_phy is signal clk : std_logic; signal phy_clk : std_logic; signal rst : std_logic; diff --git a/cocotb/Makefile b/cocotb/Makefile index 3fa7843..11a259b 100644 --- a/cocotb/Makefile +++ b/cocotb/Makefile @@ -6,9 +6,9 @@ BASE = $(PWD)/.. COMPILE_ARGS=--std=08 VHDL_SOURCES_trashernet += $(BASE)/trashernet/*.vhd -VHDL_SOURCES_bench += $(BASE)/cocotb/*.vhd +VHDL_SOURCES += $(BASE)/cocotb/*.vhd -TOPLEVEL = bench.cocotb_trashernet_phy +TOPLEVEL = cocotb_trashernet_phy MODULE = cocotb_trashernet_phy include $(shell cocotb-config --makefiles)/Makefile.sim diff --git a/micobu.sh b/micobu.sh new file mode 100755 index 0000000..8a4a60f --- /dev/null +++ b/micobu.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +cd cocotb +make +RET=$? + +mv ./* -t $MCB_ARTEFACTS/ + +exit $RET