diff options
| author | Julian Blake Kongslie | 2022-02-18 16:21:32 -0800 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-02-18 16:21:32 -0800 |
| commit | e2d92c92aa2bcc921f81875c9cee434ed390f29b (patch) | |
| tree | bb2869315b661302d7523f72944b885c927a24b6 | |
| parent | Force one-hot encoding of states. (diff) | |
| download | simple-memory-controller-e2d92c92aa2bcc921f81875c9cee434ed390f29b.tar.xz | |
Explicitly unsigned states (in the vain hope of improving extraction)
| -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 6ab57b7..39e03db 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 | (* syn_encoding = "one-hot" *) enum | 23 | (* syn_encoding = "one-hot" *) enum int unsigned |
| 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 0789cac..5950035 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 | (* syn_encoding = "one-hot" *) enum | 36 | (* syn_encoding = "one-hot" *) enum int unsigned |
| 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 e873d33..93a3a39 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 | (* syn_encoding = "one-hot" *) enum | 17 | (* syn_encoding = "one-hot" *) enum int unsigned |
| 18 | { DIGIT_1 | 18 | { DIGIT_1 |
| 19 | , DIGIT_2 | 19 | , DIGIT_2 |
| 20 | , DIGIT_3 | 20 | , DIGIT_3 |
