-
Notifications
You must be signed in to change notification settings - Fork 0
/
sequencer.drawio
83 lines (83 loc) · 12.3 KB
/
sequencer.drawio
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<mxfile host="app.diagrams.net" modified="2023-04-07T00:49:10.778Z" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" etag="vbEg6N2eb3OhoZ1G9rkA" version="21.1.4" type="github">
<diagram name="Page-1" id="FkmUvxZcMQ9W1MFedN3p">
<mxGraphModel dx="1360" dy="795" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="TZWO4BRQF0HmKNqjZzxb-1" value="sequencer" style="whiteSpace=wrap;html=1;aspect=fixed;" parent="1" vertex="1">
<mxGeometry x="50" y="40" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="TZWO4BRQF0HmKNqjZzxb-7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.3;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="TZWO4BRQF0HmKNqjZzxb-2" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="500" y="365" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="TZWO4BRQF0HmKNqjZzxb-2" value="" style="verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;html=1;verticalAlign=top;shape=mxgraph.electrical.logic_gates.d_type_rs_flip-flop;" parent="1" vertex="1">
<mxGeometry x="270" y="280" width="100" height="100" as="geometry" />
</mxCell>
<mxCell id="Nhw7WUrgFpV6zvRLkqmD-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.7;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="TZWO4BRQF0HmKNqjZzxb-3" target="TZWO4BRQF0HmKNqjZzxb-2" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="TZWO4BRQF0HmKNqjZzxb-3" value="<div>clk</div>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="170" y="340" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="TZWO4BRQF0HmKNqjZzxb-4" value="rst" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="290" y="380" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="Nhw7WUrgFpV6zvRLkqmD-12" value="seq_next" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="210" y="300" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="ZbuvPAwyvBYLmeehHJIb-1" target="ZbuvPAwyvBYLmeehHJIb-5">
<mxGeometry relative="1" as="geometry">
<mxPoint x="900" y="375" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-1" value="<div style="color: rgb(212, 212, 212); background-color: rgb(30, 30, 30); font-family: &quot;Droid Sans Mono&quot;, &quot;monospace&quot;, monospace; font-weight: normal; font-size: 14px; line-height: 19px;"><div><span style="color: #c586c0;">if</span><span style="color: #d4d4d4;">(srst) </span><span style="color: #c586c0;">begin</span></div><div><span style="color: #d4d4d4;"> seq_out &lt;= </span><span style="color: #b5cea8;">8'h80</span><span style="color: #d4d4d4;">;</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">end</span><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">else</span><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">if</span><span style="color: #d4d4d4;">(go_left == </span><span style="color: #b5cea8;">1'b1</span><span style="color: #d4d4d4;"> | go_right == </span><span style="color: #b5cea8;">1'b1</span><span style="color: #d4d4d4;">)</span><span style="color: #c586c0;">begin</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">if</span><span style="color: #d4d4d4;">(go_left) </span><span style="color: #c586c0;">begin</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">if</span><span style="color: #d4d4d4;">(seq_out == </span><span style="color: #b5cea8;">8'h80</span><span style="color: #d4d4d4;">) </span><span style="color: #c586c0;">begin</span></div><div><span style="color: #d4d4d4;"> seq_out &lt;= </span><span style="color: #b5cea8;">8'b00000001</span><span style="color: #d4d4d4;">;</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">end</span><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">else</span><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">begin</span></div><div><span style="color: #d4d4d4;"> seq_out &lt;= seq_out &lt;&lt; </span><span style="color: #b5cea8;">1</span><span style="color: #d4d4d4;">;</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">end</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">end</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">if</span><span style="color: #d4d4d4;">(go_right)</span><span style="color: #c586c0;">begin</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">if</span><span style="color: #d4d4d4;">(seq_out == </span><span style="color: #b5cea8;">8'b00000001</span><span style="color: #d4d4d4;">) </span><span style="color: #c586c0;">begin</span></div><div><span style="color: #d4d4d4;"> seq_out &lt;= </span><span style="color: #b5cea8;">8'b10000000</span><span style="color: #d4d4d4;">;</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">end</span><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">else</span><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">begin</span></div><div><span style="color: #d4d4d4;"> seq_out &lt;= seq_out &gt;&gt; </span><span style="color: #b5cea8;">1</span><span style="color: #d4d4d4;">;</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">end</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">end</span><span style="color: #d4d4d4;"> </span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">end</span><span style="color: #d4d4d4;"> </span></div></div>" style="whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="1">
<mxGeometry x="500" y="202.5" width="345" height="345" as="geometry" />
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-3" value="" style="triangle;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="500" y="510" width="30" height="40" as="geometry" />
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-5" value="seq_next" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="870" y="360" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-6" value="seq_out" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="365" y="270" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-7" value="8" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="830" y="350" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-8" value="" style="endArrow=none;html=1;rounded=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" target="ZbuvPAwyvBYLmeehHJIb-7">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="850" y="380" as="sourcePoint" />
<mxPoint x="890" y="340" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-9" value="8" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="360" y="290" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-10" value="" style="endArrow=none;html=1;rounded=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" target="ZbuvPAwyvBYLmeehHJIb-9">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="380" y="320" as="sourcePoint" />
<mxPoint x="420" y="280" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-11" value="8" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="250" y="290" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-12" value="" style="endArrow=none;html=1;rounded=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" target="ZbuvPAwyvBYLmeehHJIb-11">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="270" y="320" as="sourcePoint" />
<mxPoint x="310" y="280" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=-0.009;entryY=0.712;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="ZbuvPAwyvBYLmeehHJIb-13" target="ZbuvPAwyvBYLmeehHJIb-1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="ZbuvPAwyvBYLmeehHJIb-13" value="srst" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="390" y="430" width="60" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>