From: Luke Kenneth Casson Leighton Date: Wed, 4 Mar 2020 19:12:36 +0000 (+0000) Subject: add idea of Decoder namedtuple X-Git-Tag: div_pipeline~1781 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7da4ec503badf6aa334e10fe06023f1e0844a7db;p=soc.git add idea of Decoder namedtuple --- 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"])