diff options
| author | Julian Blake Kongslie | 2022-02-17 08:47:26 -0800 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-02-17 08:47:26 -0800 |
| commit | a0e20e873b896ce7298620c95c488bc031ec32d2 (patch) | |
| tree | 6d40db4d7256a76ebfb1b83b81941b2d84aa9770 | |
| parent | Point at the correct clock when setting up timing. (diff) | |
| download | simple-memory-controller-a0e20e873b896ce7298620c95c488bc031ec32d2.tar.xz | |
Force one-hot encoding of states.
Diffstat (limited to '')
| -rw-r--r-- | hdl/command_parser.sv | 2 | ||||
| -rw-r--r-- | hdl/ram_controller.sv | 2 | ||||
| -rw-r--r-- | hdl/result_printer.sv | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/hdl/command_parser.sv b/hdl/command_parser.sv index d6775ad..6ab57b7 100644 --- a/hdl/command_parser.sv +++ b/hdl/command_parser.sv | |||
| @@ -20,7 +20,7 @@ module command_parser | |||
| 20 | bit input_byte_valid; | 20 | bit input_byte_valid; |
| 21 | bit [7:0] input_byte; | 21 | bit [7:0] input_byte; |
| 22 | 22 | ||
| 23 | enum | 23 | (* syn_encoding = "one-hot" *) enum |
| 24 | { READ_ADDRESS_OR_COMMAND | 24 | { READ_ADDRESS_OR_COMMAND |
| 25 | , READ_DATA_1 | 25 | , READ_DATA_1 |
| 26 | , READ_DATA_2 | 26 | , READ_DATA_2 |
diff --git a/hdl/ram_controller.sv b/hdl/ram_controller.sv index 015eef0..0789cac 100644 --- a/hdl/ram_controller.sv +++ b/hdl/ram_controller.sv | |||
| @@ -33,7 +33,7 @@ module ram_controller | |||
| 33 | 33 | ||
| 34 | bit slow; | 34 | bit slow; |
| 35 | 35 | ||
| 36 | enum | 36 | (* syn_encoding = "one-hot" *) enum |
| 37 | { CHIP_SELECT | 37 | { CHIP_SELECT |
| 38 | 38 | ||
| 39 | , SEND_COMMAND_1 | 39 | , SEND_COMMAND_1 |
diff --git a/hdl/result_printer.sv b/hdl/result_printer.sv index 7bcaf31..e873d33 100644 --- a/hdl/result_printer.sv +++ b/hdl/result_printer.sv | |||
| @@ -14,7 +14,7 @@ module result_printer | |||
| 14 | bit hold_valid; | 14 | bit hold_valid; |
| 15 | bit [15:0] hold; | 15 | bit [15:0] hold; |
| 16 | 16 | ||
| 17 | enum | 17 | (* syn_encoding = "one-hot" *) enum |
| 18 | { DIGIT_1 | 18 | { DIGIT_1 |
| 19 | , DIGIT_2 | 19 | , DIGIT_2 |
| 20 | , DIGIT_3 | 20 | , DIGIT_3 |
