2015-08-15 16:50:27 +08:00
|
|
|
read_verilog async.v
|
2015-08-09 20:23:02 +08:00
|
|
|
read_verilog ../../picorv32.v
|
|
|
|
rename main main_a
|
|
|
|
chparam -set ENABLE_REGS_DUALPORT 0 \
|
|
|
|
-set TWO_STAGE_SHIFT 0 \
|
|
|
|
-set TWO_CYCLE_COMPARE 0 \
|
|
|
|
-set TWO_CYCLE_ALU 0 main_a
|
|
|
|
hierarchy -top main_a
|
|
|
|
proc
|
|
|
|
opt
|
|
|
|
memory -nordff -nomap
|
|
|
|
flatten
|
|
|
|
opt
|
2015-08-15 16:50:27 +08:00
|
|
|
write_smt2 -bv -mem -regs async_a.smt2
|
2015-08-09 20:23:02 +08:00
|
|
|
design -reset
|
|
|
|
|
2015-08-15 16:50:27 +08:00
|
|
|
read_verilog async.v
|
2015-08-09 20:23:02 +08:00
|
|
|
read_verilog ../../picorv32.v
|
|
|
|
rename main main_b
|
|
|
|
chparam -set ENABLE_REGS_DUALPORT 1 \
|
|
|
|
-set TWO_STAGE_SHIFT 1 \
|
|
|
|
-set TWO_CYCLE_COMPARE 1 \
|
|
|
|
-set TWO_CYCLE_ALU 1 main_b
|
|
|
|
hierarchy -top main_b
|
|
|
|
proc
|
|
|
|
opt
|
|
|
|
memory -nordff -nomap
|
|
|
|
flatten
|
|
|
|
opt
|
2015-08-15 16:50:27 +08:00
|
|
|
write_smt2 -bv -mem -regs async_b.smt2
|
2015-08-09 20:23:02 +08:00
|
|
|
design -reset
|