aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2022-07-21 03:12:27 -0400
committerGravatar Peter McGoron 2022-07-21 03:12:27 -0400
commit65d7fe166eabe03688453a3674f95b589664d173 (patch)
tree5749b39ef0df3b2d945285994b94f08a0f4acac3 /tests
parentsuccessfully test mode01, add Makefile (diff)
mode10
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile2
-rw-r--r--tests/mode10.cpp3
-rw-r--r--tests/mode10.v34
3 files changed, 38 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index db36b8c..55a4e15 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,5 +1,5 @@
all:
- for i in 00 01; do \
+ for i in 00 01 10; do \
make -f run_mode.makefile MODE="$$i"; \
done
diff --git a/tests/mode10.cpp b/tests/mode10.cpp
new file mode 100644
index 0000000..17350d5
--- /dev/null
+++ b/tests/mode10.cpp
@@ -0,0 +1,3 @@
+#include "Vmode10.h"
+using TopModule = Vmode10;
+#include "write_read.cpp"
diff --git a/tests/mode10.v b/tests/mode10.v
new file mode 100644
index 0000000..7405ae4
--- /dev/null
+++ b/tests/mode10.v
@@ -0,0 +1,34 @@
+/* (c) Peter McGoron 2022
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v.2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
+ */
+
+module mode10 (
+ input clk,
+ input [23:0] data_ctrl,
+ input activate,
+ input ss,
+ input rdy,
+ output master_finished
+);
+
+spi_write_read
+#(
+ .POLARITY(1),
+ .PHASE(0)
+) base (
+ .clk(clk),
+ .data_ctrl(data_ctrl),
+ .activate(activate),
+ .master_finished(master_finished),
+ .ss(ss),
+ .rdy(rdy)
+);
+
+initial begin
+ $dumpfile("mode10.vcd");
+ $dumpvars();
+end
+
+endmodule
8891f34d88b20a4a4a0f70e944&follow=1'>updatesGravatar John Cowan 1-2/+4 2021-07-26dtd always first argumentGravatar John Cowan 1-9/+9 2021-07-26DTO to DTDGravatar John Cowan 1-55/+52 2021-07-26typoGravatar John Cowan 1-1/+1 2021-07-26switching to explicit dtosGravatar John Cowan 1-88/+102 2021-07-26errorsGravatar John Cowan 1-1/+4 2021-07-26more MN-W reviewGravatar John Cowan 1-5/+5 2021-07-26update preview linkGravatar John Cowan 1-1/+1 2021-07-26MN-W reviewGravatar John Cowan 1-6/+6 2021-07-26paired mutatorsGravatar John Cowan 1-43/+68 2021-07-25exceptionsGravatar John Cowan 1-1/+15 2021-07-25new exampleGravatar John Cowan 1-1/+4 2021-07-25updatesGravatar John Cowan 1-2/+4 2021-07-24dtd always first argumentGravatar John Cowan 1-9/+9 2021-07-23DTO to DTDGravatar John Cowan 1-55/+52 2021-07-22typoGravatar John Cowan 1-1/+1 2021-07-22switching to explicit dtosGravatar John Cowan 1-88/+102 2021-07-22errorsGravatar John Cowan 1-1/+4 2021-07-22more MN-W reviewGravatar John Cowan 1-5/+5 2021-07-20update preview linkGravatar John Cowan 1-1/+1 2021-07-20MN-W reviewGravatar John Cowan 1-6/+6 2021-07-18Fix typo.Gravatar Arthur A. Gleckler 2-4/+4 2021-07-18Add <p> around abstract.Gravatar Arthur A. Gleckler 1-2/+2 2021-07-18Publish first draft.draft-1Gravatar Arthur A. Gleckler 3-0/+114 2021-07-18Ignore trailing whitespace.Gravatar Arthur A. Gleckler 11-129/+129 2021-07-18Ignore "Dictionaries.log".Gravatar Arthur A. Gleckler 1-1/+2 2021-07-18Fix errors reported by W3C HTML Validator.Gravatar Arthur A. Gleckler 1-27/+27 2021-07-18Eliminate unnecessary redirect by using TLS/SSL.Gravatar Arthur A. Gleckler 1-1/+1