diff options
| author | 2022-07-21 03:01:58 -0400 | |
|---|---|---|
| committer | 2022-07-21 03:01:58 -0400 | |
| commit | d8b011110ad743771183ca7489401c11fe801e4f (patch) | |
| tree | b358e8698f50cc0a9de4243ef1a6bbd4d0138311 /tests/mode01.v | |
| parent | add gitignore (diff) | |
successfully test mode01, add Makefile
Diffstat (limited to 'tests/mode01.v')
| -rw-r--r-- | tests/mode01.v | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/mode01.v b/tests/mode01.v new file mode 100644 index 0000000..4fb9e52 --- /dev/null +++ b/tests/mode01.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 mode01 ( + input clk, + input [23:0] data_ctrl, + input activate, + input ss, + input rdy, + output master_finished +); + +spi_write_read +#( + .POLARITY(0), + .PHASE(1) +) base ( + .clk(clk), + .data_ctrl(data_ctrl), + .activate(activate), + .master_finished(master_finished), + .ss(ss), + .rdy(rdy) +); + +initial begin + $dumpfile("mode01.vcd"); + $dumpvars(); +end + +endmodule |
