1 from nmigen
import (Module
, Signal
, Cat
, Const
, Mux
, Repl
, signed
,
3 from nmutil
.pipemodbase
import PipeModBase
4 from soc
.alu
.pipe_data
import ALUInitialData
7 class ALUInputStage(PipeModBase
):
8 def __init__(self
, pspec
):
9 super().__init
__(pspec
, "input")
12 return ALUInitialData(self
.pspec
)
15 return ALUInitialData(self
.pspec
)
17 def elaborate(self
, platform
):
21 comb
+= self
.o
.op
.eq(self
.i
.op
)