Lines Matching refs:random
42 Testing space (select a transaction at random from the space):
43 - with and without byte-enables (generated at random for each data word
52 - address in initiator buffer uniform random
59 - one random breakdown with each segment containing between 1 and N-1
70 import random
101 # create a random transaction
102 bus_width = random.choice(bus_widths)
104 data_width = random.choice(data_widths)
106 if random.random() < 0.25: break
107 length = random.choice(lengths)
108 addr_base = random.choice(list(range(0,1024,bus_width)))
109 addr_offset = random.choice(list(range(bus_width))+[0]*(bus_width/2))
113 read_not_write = random.random() < pr_read,
118 data_pointer = random.randint(0,1023)
120 if random.random() < pr_byte_enable:
122 if random.random() < pr_short_be:
123 belen = min(random.choice(lengths), length)
125 txn.byte_enable = "".join([random.choice(bep) for x in range(belen)])
126 if random.random() < pr_stream and length > 1:
131 (random.random() < 0.5 and (length/strlen)*strlen == length):
151 random.sample(memory_state_cl.population, memory_state_cl.buffer_size))
153 random.sample(memory_state_cl.population, memory_state_cl.buffer_size))
244 while random.random() < pr_nofrag and curr_address < end_address:
287 if random.random() < pr_frag: curr = 1-curr
418 # each transaction has a random initial memory state