From 9cb0bae1b27928202fa9ce6d494f7f6aaa36563a Mon Sep 17 00:00:00 2001 From: "William D. Jones" Date: Tue, 17 Nov 2020 13:01:57 -0500 Subject: machxo2: Add test/arch/machxo2 directory (test does not pass). --- tests/arch/machxo2/.gitignore | 2 ++ tests/arch/machxo2/logic.ys | 8 ++++++++ tests/arch/machxo2/run-test.sh | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 tests/arch/machxo2/.gitignore create mode 100644 tests/arch/machxo2/logic.ys create mode 100644 tests/arch/machxo2/run-test.sh (limited to 'tests') diff --git a/tests/arch/machxo2/.gitignore b/tests/arch/machxo2/.gitignore new file mode 100644 index 000000000..1d329c933 --- /dev/null +++ b/tests/arch/machxo2/.gitignore @@ -0,0 +1,2 @@ +*.log +/run-test.mk diff --git a/tests/arch/machxo2/logic.ys b/tests/arch/machxo2/logic.ys new file mode 100644 index 000000000..c5d2fb08e --- /dev/null +++ b/tests/arch/machxo2/logic.ys @@ -0,0 +1,8 @@ +read_verilog ../common/logic.v +hierarchy -top top +proc +equiv_opt -assert -map +/machxo2/cells_sim.v synth_machxo2 # equivalency check +design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design) +cd top # Constrain all select calls below inside the top module +select -assert-count 9 t:LUT4 +select -assert-none t:LUT4 %% t:* %D diff --git a/tests/arch/machxo2/run-test.sh b/tests/arch/machxo2/run-test.sh new file mode 100644 index 000000000..4be4b70ae --- /dev/null +++ b/tests/arch/machxo2/run-test.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -eu +source ../../gen-tests-makefile.sh +run_tests --yosys-scripts --bash --yosys-args "-w 'Yosys has only limited support for tri-state logic at the moment.'" -- cgit v1.2.3