From 87251d857d6dca8d141f302adff3afb05b1a3185 Mon Sep 17 00:00:00 2001 From: Yehowshua Date: Tue, 5 May 2020 16:51:24 +0100 Subject: [PATCH] --- Documentation/SOC/index.mdwn | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/SOC/index.mdwn b/Documentation/SOC/index.mdwn index 726b459ec..4d4096349 100644 --- a/Documentation/SOC/index.mdwn +++ b/Documentation/SOC/index.mdwn @@ -12,6 +12,7 @@ Below is the POWER add insruction. | 0b0100001010 | ALU | OP_ADD | RA | RB | NONE | RT | 0 | 0 | 0 | 0 | ZERO | 0 | NONE | 0 | 0 | 0 | 0 | 0 | 0 | RC | 0 | 0 | add | XO | Here is an example of a toy multiplexer that sets various fields in the PowerOP signal class to the correct values for the add instruction when select==1 is set. +This should give you a feel for how we work with enums and PowerOP. from nmigen import Module, Elaboratable, Signal, Cat, Mux from soc.decoder.power_enums import (Function, Form, InternalOp, -- 2.30.2