mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-22 13:53:40 +00:00
Some improvements in FSM mapping and recoding
This commit is contained in:
parent
996c06f64d
commit
28cf48e31f
3 changed files with 18 additions and 9 deletions
|
@ -52,7 +52,8 @@ for idx in range(50):
|
|||
print(' output reg%s [%d:0] y;' % (random.choice(['', ' signed']), random.randint(0, 31)))
|
||||
print(' output reg%s [%d:0] z;' % (random.choice(['', ' signed']), random.randint(0, 31)))
|
||||
state_bits = random.randint(5, 16);
|
||||
print(' reg [%d:0] state;' % (state_bits-1))
|
||||
print(' %sreg [%d:0] state;' % (random.choice(['', '(* fsm_encoding = "one-hot" *)',
|
||||
'(* fsm_encoding = "binary" *)']), state_bits-1))
|
||||
states=[]
|
||||
for i in range(random.randint(2, 10)):
|
||||
n = random.randint(0, 2**state_bits-1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue