From: Michael Nolan Date: Fri, 15 May 2020 19:04:22 +0000 (-0400) Subject: Begin implementing conditional branch X-Git-Tag: div_pipeline~1178 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d615168af91c03ba45114e356432d88b20efed2b;p=soc.git Begin implementing conditional branch --- diff --git a/src/soc/branch/main_stage.py b/src/soc/branch/main_stage.py index 9bb4b2b5..4e98aff2 100644 --- a/src/soc/branch/main_stage.py +++ b/src/soc/branch/main_stage.py @@ -64,8 +64,15 @@ class BranchMainStage(PipeModBase): bi = Signal(b_fields['BI'][0:-1].shape()) comb += bi.eq(b_fields['BI'][0:-1]) + # The bit of CR selected by BI cr_bit = Signal(reset_less=True) - comb += cr_bit.eq((self.i.cr & (1<