From ff68e0a9f083dcd2b110e281ab9362c5b62f6089 Mon Sep 17 00:00:00 2001 From: Nikolay Puzanov Date: Sun, 11 Jun 2023 22:23:23 +0300 Subject: [PATCH] Add Xcelium scripts --- test-xcelium/__build.sh | 7 +++++++ test-xcelium/__run.sh | 3 +++ test-xcelium/top.sv | 7 +++++++ 3 files changed, 17 insertions(+) create mode 100755 test-xcelium/__build.sh create mode 100755 test-xcelium/__run.sh create mode 100644 test-xcelium/top.sv diff --git a/test-xcelium/__build.sh b/test-xcelium/__build.sh new file mode 100755 index 0000000..9a4c7d8 --- /dev/null +++ b/test-xcelium/__build.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -e + +rm -rf xcelium.d + +xmvlog -sv -f ../source/sources.f top.sv +xmelab -timescale 1ps/1ps top diff --git a/test-xcelium/__run.sh b/test-xcelium/__run.sh new file mode 100755 index 0000000..e8b9fd8 --- /dev/null +++ b/test-xcelium/__run.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +xmsim -status top diff --git a/test-xcelium/top.sv b/test-xcelium/top.sv new file mode 100644 index 0000000..9dc38d8 --- /dev/null +++ b/test-xcelium/top.sv @@ -0,0 +1,7 @@ +`timescale 1ps/1ps + +module top; + logic clock = 1'b0; + initial forever #(10ns/2) clock = ~clock; + testbench testbench (clock); +endmodule