Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F630375
kiss2dot.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Size
355 B
Referenced Files
None
Subscribers
None
kiss2dot.py
View Options
#!/usr/bin/env python3
import
fileinput
print
(
"digraph fsm {"
)
for
line
in
fileinput
.
input
():
if
not
line
.
startswith
(
"."
):
in_bits
,
from_state
,
to_state
,
out_bits
=
line
.
split
()
print
(
"
%s
->
%s
[label=
\"
IN=
%s
,
\\
nOUT=
%s
\"
];"
%
(
from_state
,
to_state
,
in_bits
.
replace
(
"-"
,
"?"
),
out_bits
.
replace
(
"-"
,
"?"
)))
print
(
"}"
)
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Fri, Jan 16, 12:47 AM (2 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
251530
Default Alt Text
kiss2dot.py (355 B)
Attached To
Mode
R231 SoC_I-Edge_yosys_nem_optimization
Attached
Detach File
Event Timeline
Log In to Comment