forked from msoeken/cirkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.cs
31 lines (28 loc) · 743 Bytes
/
demo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# demo.cs
# -------
#
# Shows several usage demos of CirKit. This file
# can be executed with
#
# ./build/programs/cirkit -ef demo.cs
#
# You can call each command with the help option -h
# to get more information about the usage
# make sure to call alias file
< alias
#------------------------------------#
# AIG from truth table #
#------------------------------------#
# 1. 4-variable truth table (16-bit) #
# 2. Print truth table #
# 3. Convert truth table to AIG #
# 4. Show AIG statistics #
# 5. Write AIG to Verilog #
# 6. Clear AIG and truth table #
#------------------------------------#
tt 0xCAFE
print -t
tt > aig
ps -a
write_verilog -a /dev/stdout
store --clear -at