From: Luke Kenneth Casson Leighton Date: Sat, 18 Jul 2020 22:17:45 +0000 (+0100) Subject: worked out that DivPipeSpec can be given a default. gets DivFunctionUnit X-Git-Tag: semi_working_ecp5~685 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06202b1ce8dbad9cd8ea67e4c2e4d7184e16cdd9;p=soc.git worked out that DivPipeSpec can be given a default. gets DivFunctionUnit working again --- diff --git a/src/soc/fu/div/pipe_data.py b/src/soc/fu/div/pipe_data.py index 000ac0a9..3f721bca 100644 --- a/src/soc/fu/div/pipe_data.py +++ b/src/soc/fu/div/pipe_data.py @@ -129,7 +129,9 @@ class DivPipeKind(enum.Enum): class DivPipeSpec(CommonPipeSpec): - def __init__(self, id_wid, div_pipe_kind): + def __init__(self, id_wid, div_pipe_kind=None): + if div_pipe_kind is None: + div_pipe_kind = DivPipeKind.DivPipeCore super().__init__(id_wid=id_wid) self.div_pipe_kind = div_pipe_kind self.core_config = div_pipe_kind.config.core_config