summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fpga/serial/common/remote_access.v28
1 files changed, 16 insertions, 12 deletions
diff --git a/fpga/serial/common/remote_access.v b/fpga/serial/common/remote_access.v
index 9afdbf2..b7f0592 100644
--- a/fpga/serial/common/remote_access.v
+++ b/fpga/serial/common/remote_access.v
@@ -151,35 +151,39 @@ module remote_access(
led_segment_bus_latch = led_segment_bus;
led_digit_select_latch = led_digit_select;
- if (led_digit_select_latch[0] == 0) begin
- led_display_bytes[0] = led_segment_bus_latch;
- digit_blanker_1 = 0;
+ if (led_digit_select_latch[0] == 1) begin
+ digit_blanker_1 = digit_blanker_1 + 1;
+ end
+
+ if (led_digit_select_latch[1] == 1) begin
digit_blanker_2 = digit_blanker_2 + 1;
+ end
+
+ if (led_digit_select_latch[2] == 1) begin
digit_blanker_3 = digit_blanker_3 + 1;
+ end
+
+ if (led_digit_select_latch[3] == 1) begin
digit_blanker_4 = digit_blanker_4 + 1;
end
+
+ if (led_digit_select_latch[0] == 0) begin
+ led_display_bytes[0] = led_segment_bus_latch;
+ digit_blanker_1 = 0;
+ end
if (led_digit_select_latch[1] == 0) begin
led_display_bytes[1] = led_segment_bus_latch;
- digit_blanker_1 = digit_blanker_1 + 1;
digit_blanker_2 = 0;
- digit_blanker_3 = digit_blanker_3 + 1;
- digit_blanker_4 = digit_blanker_4 + 1;
end
if (led_digit_select_latch[2] == 0) begin
led_display_bytes[2] = led_segment_bus_latch;
- digit_blanker_1 = digit_blanker_1 + 1;
- digit_blanker_2 = digit_blanker_2 + 1;
digit_blanker_3 = 0;
- digit_blanker_4 = digit_blanker_4 + 1;
end
if (led_digit_select_latch[3] == 0) begin
led_display_bytes[3] = led_segment_bus_latch;
- digit_blanker_1 = digit_blanker_1 + 1;
- digit_blanker_2 = digit_blanker_2 + 1;
- digit_blanker_3 = digit_blanker_3 + 1;
digit_blanker_4 = 0;
end