From 3598480c1be055c608b1eb5285a36c7dc6285481 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 8 Mar 2020 17:33:38 +0000 Subject: [PATCH] add combined instruction and register decoder --- src/decoder/power_enums.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/decoder/power_enums.py b/src/decoder/power_enums.py index 4800bdf2..dcf5cad2 100644 --- a/src/decoder/power_enums.py +++ b/src/decoder/power_enums.py @@ -29,6 +29,8 @@ default_values = {'unit': "NONE", 'internal op': "OP_ILLEGAL", 'rc' : 'NONE', 'cry in' : 'ZERO', 'form': 'NONE'} def get_signal_name(name): + if name[0].isdigit(): + name = "is_" + name return name.lower().replace(' ', '_') -- 2.30.2