X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=examples%2Fassignment.py;h=d70d8508c84a63af6b7fab6264e814baf861c810;hb=e2973c57aa90034c4fb3bff4a1de95b0fd1c9ccc;hp=c338a6bf7a26fd3bf07be6c0f2965947ad83b6a0;hpb=26277f5a20d201ac895bccf941d17bc7e28c3596;p=sv2nmigen.git diff --git a/examples/assignment.py b/examples/assignment.py index c338a6b..d70d850 100644 --- a/examples/assignment.py +++ b/examples/assignment.py @@ -4,13 +4,13 @@ from nmigen import Signal, Module, Const, Cat, Elaboratable -#ASSIGN[None, Leaf(1, 'o'), '=', Leaf(1, 'i')] class assignment(Elaboratable): def __init__(self): - self.i = Signal() # input self.o = Signal() # output + self.i = Signal() # input def elaborate(self, platform=None): m = Module() + m.d.comb += self.o.eq(self.i) return m