diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2021-06-09 14:57:15 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-08-15 09:36:18 -0400 |
| commit | 59d4f771d280cbea0d0afc9579e127225751c028 (patch) | |
| tree | 6454a837f8d8e95ddb69331756e54bcbf03b86f1 /test cases/fpga | |
| parent | c2592bc921f9357a187d241b233f2be0178195e9 (diff) | |
| download | meson-59d4f771d280cbea0d0afc9579e127225751c028.tar.gz | |
editorconfig: add setting to trim trailing whitespace
and clean up all outstanding issues
Skip 'test cases/common/141 special characters/meson.build' since it
intentionally uses trailing newlines.
Diffstat (limited to 'test cases/fpga')
| -rw-r--r-- | test cases/fpga/1 simple/meson.build | 1 | ||||
| -rw-r--r-- | test cases/fpga/1 simple/spin.v | 14 |
2 files changed, 7 insertions, 8 deletions
diff --git a/test cases/fpga/1 simple/meson.build b/test cases/fpga/1 simple/meson.build index eff8088ba..f1ab690fd 100644 --- a/test cases/fpga/1 simple/meson.build +++ b/test cases/fpga/1 simple/meson.build @@ -6,4 +6,3 @@ is.project('spin', 'spin.v', constraint_file : 'spin.pcf', ) - diff --git a/test cases/fpga/1 simple/spin.v b/test cases/fpga/1 simple/spin.v index edc40c426..2143d301e 100644 --- a/test cases/fpga/1 simple/spin.v +++ b/test cases/fpga/1 simple/spin.v @@ -1,29 +1,29 @@ module top(input clk, output LED1, output LED2, output LED3, output LED4, output LED5); - + reg ready = 0; reg [23:0] divider; reg [3:0] spin; - + always @(posedge clk) begin - if (ready) + if (ready) begin - if (divider == 6000000) + if (divider == 6000000) begin divider <= 0; spin <= {spin[2], spin[3], spin[0], spin[1]}; end - else + else divider <= divider + 1; end - else + else begin ready <= 1; spin <= 4'b1010; divider <= 0; end end - + assign LED1 = spin[0]; assign LED2 = spin[1]; assign LED3 = spin[2]; |
