From 4c593618a903beafe4038de09aa923a841246759 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 3 Jun 2020 12:52:25 +0100 Subject: [PATCH] worked out how to dynamically enable carry-in to ALU: test input_carry against CryIn.CA.value --- src/soc/decoder/power_regspec_map.py | 6 ++---- src/soc/fu/compunits/test/test_alu_compunit.py | 4 +++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/soc/decoder/power_regspec_map.py b/src/soc/decoder/power_regspec_map.py index 29f8e4b9..1bc486da 100644 --- a/src/soc/decoder/power_regspec_map.py +++ b/src/soc/decoder/power_regspec_map.py @@ -6,6 +6,7 @@ see https://libre-soc.org/3d_gpu/architecture/regfile/ section on regspecs """ from nmigen import Const from soc.regfile.regfiles import XERRegs, FastRegs +from soc.decoder.power_enums import CryIn def regspec_decode(e, regfile, name): @@ -71,13 +72,10 @@ def regspec_decode(e, regfile, name): OV = 1<