aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mode00.v
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2022-07-21 02:37:22 -0400
committerGravatar Peter McGoron 2022-07-21 02:37:22 -0400
commit4a683b8f654f3ecb6f2408dad3a9cfa60f3b39e6 (patch)
treea6c324803c18ad9a6dbcd65d54b80984d39f58d0 /tests/mode00.v
parentcleanup, add ready pin to slave (diff)
move tests
Diffstat (limited to 'tests/mode00.v')
-rw-r--r--tests/mode00.v34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/mode00.v b/tests/mode00.v
new file mode 100644
index 0000000..2a037cf
--- /dev/null
+++ b/tests/mode00.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 mode00 (
+ input clk,
+ input [23:0] data_ctrl,
+ input activate,
+ input ss,
+ input rdy,
+ output master_finished
+);
+
+spi_write_read
+#(
+ .POLARITY(0),
+ .PHASE(0)
+) base (
+ .clk(clk),
+ .data_ctrl(data_ctrl),
+ .activate(activate),
+ .master_finished(master_finished),
+ .ss(ss),
+ .rdy(rdy)
+);
+
+initial begin
+ $dumpfile("mode00.vcd");
+ $dumpvars();
+end
+
+endmodule