From 7da4ec503badf6aa334e10fe06023f1e0844a7db Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 4 Mar 2020 19:12:36 +0000 Subject: [PATCH] add idea of Decoder namedtuple --- src/decoder/power_decoder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/decoder/power_decoder.py b/src/decoder/power_decoder.py index 76823816..b3406ba1 100644 --- a/src/decoder/power_decoder.py +++ b/src/decoder/power_decoder.py @@ -4,6 +4,10 @@ from power_enums import (Function, InternalOp, In1Sel, In2Sel, In3Sel, get_signal_name, default_values) from collections import namedtuple +# TODO - list of these into PowerDecoder +Decoder = namedtuple("Decoder", ["width", "pattern", "csv", "opint", + "bitsel", "suffix", "subdecoders"]) + Subdecoder = namedtuple("Subdecoder", ["pattern", "csv", "opint", "bitsel", "suffix"]) -- 2.30.2