b5a5862405fa58658152b7cbf2e4eaed768dd459
1 from nmigen
import Memory
, Module
, Signal
, Cat
, Elaboratable
4 #clsdeclNode(compound_stmt, [Node(classdef, [Leaf(1, 'class'), Leaf(1, 'up_counter'), Leaf(11, ':'), Node(suite, [Leaf(4, '\n'), Leaf(5, ' '), Node(stmt, [Node(small_stmt, [Node(pass_stmt, [Leaf(1, 'pass')]), Leaf(4, '\n')]), Leaf(3, '\n #self.i1 = Signal() # input\n #self.o1 = Signal() # output')]), Leaf(6, '')])])])
6 class assignment(Elaboratable
):
8 self
.i
= Signal() # input
9 self
.o
= Signal() # output
10 def elaborate(self
, platform
):
12 m
.d
.comb
+= [self
.o
.eq(self
.i
)]