1 from nmigen
import Array
, Module
, Signal
2 from nmigen
.cli
import main
4 class VectorAssembler():
5 def __init__(self
, width
):
10 self
.input = Array(Signal(1) for index
in range(width
))
13 self
.o
= Signal(width
)
15 def elaborate(self
, platform
=None):
17 for index
in range(self
.width
):
18 m
.d
.comb
+= self
.o
[index
].eq(self
.input[index
])