Beispiel #1
0
 def __init__(self):
     super().__init__()
     self.a = vsc.rand_bit_t(4)
     self.b = vsc.rand_attr(my_sub())
     self.c = vsc.rand_attr(my_sub())
     self.d = vsc.rand_attr(my_sub())
     self.e = vsc.rand_attr(my_sub())
Beispiel #2
0
            def __init__(self):
                self.a = vsc.rand_list_t(vsc.rand_attr(Field('an', 10)))
                for i in range(5):
                    self.a.append(vsc.rand_attr(Field('an', 10)))

                self.b = vsc.rand_list_t(vsc.rand_attr(Field('bn', 10)))
                for i in range(5):
                    self.b.append(vsc.rand_attr(Field('bn', 10)))
Beispiel #3
0
            def __init__(self):
                self.x = vsc.rand_list_t(vsc.rand_attr(Field('x', 10)))
                for i in range(2):
                    self.x.append(vsc.rand_attr(Field('x', 10)))

                self.y = vsc.rand_list_t(vsc.rand_attr(Field('y', 10)))
                for i in range(1):
                    self.y.append(vsc.rand_attr(Field('y', 10)))
Beispiel #4
0
            def __init__(self):
                self.id = 0
                self.c1 = vsc.rand_list_t(vsc.rand_attr(Child1()))
                for i in range(10):
                    self.c1.append(vsc.rand_attr(Child1()))

                self.c2 = vsc.rand_list_t(vsc.rand_attr(Child2()))
                for i in range(10):
                    self.c2.append(vsc.rand_attr(Child2()))
Beispiel #5
0
            def __init__(self):
                self.id = 0
                self.c1 = vsc.rand_list_t(vsc.attr(Child1()))
                for i in range(10):
                    self.c1.append(vsc.attr(Child1()))

                self.c2 = vsc.rand_list_t(vsc.attr(Child2()))
                for i in range(10):
                    self.c2.append(vsc.attr(Child2()))

                self.non_list_child = vsc.rand_attr(Child1())

                self.top_lvl_val = vsc.rand_uint8_t(0)
Beispiel #6
0
 def __init__(self):
     self.x = vsc.rand_attr(vsc.bit_t(16))