-
Notifications
You must be signed in to change notification settings - Fork 0
/
clkdiv.drawio
58 lines (58 loc) · 7.47 KB
/
clkdiv.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
<mxfile host="app.diagrams.net" modified="2023-04-07T00:49:16.050Z" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0" etag="sO5EsARg7YW29SnFGDuK" version="21.1.4" type="github">
<diagram name="Page-1" id="86e-GhC41nfEthAT5b3I">
<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="8btwyj7wd-xuqD60YhSa-1" value="<div>clkdiv</div>" style="whiteSpace=wrap;html=1;aspect=fixed;" parent="1" vertex="1">
<mxGeometry x="70" y="60" width="80" height="80" as="geometry" />
</mxCell>
<mxCell id="8DHydzjYtL_Uh8tmizwP-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.3;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="8btwyj7wd-xuqD60YhSa-3" target="8btwyj7wd-xuqD60YhSa-12">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="8btwyj7wd-xuqD60YhSa-3" 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="290" y="320" width="100" height="100" as="geometry" />
</mxCell>
<mxCell id="8btwyj7wd-xuqD60YhSa-5" value="rst" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="310" y="430" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="8btwyj7wd-xuqD60YhSa-6" 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="240" y="380" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="8DHydzjYtL_Uh8tmizwP-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.25;entryDx=0;entryDy=0;" edge="1" parent="1" source="8btwyj7wd-xuqD60YhSa-12" target="8DHydzjYtL_Uh8tmizwP-8">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="8btwyj7wd-xuqD60YhSa-12" 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>if<span style="color: #d4d4d4;">(counter == (lim)) </span><span style="color: #c586c0;">begin</span></div><div><span style="color: #d4d4d4;"> counter &lt;= </span><span style="color: #b5cea8;">8'b00000000</span><span style="color: #d4d4d4;">;</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #c586c0;">if</span><span style="color: #d4d4d4;">(hzX == </span><span style="color: #b5cea8;">1</span><span style="color: #d4d4d4;">)</span><span style="color: #c586c0;">begin</span></div><div><span style="color: #d4d4d4;"> hzX &lt;= </span><span style="color: #b5cea8;">0</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;"> hzX &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><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;"> next_counter &lt;= counter + </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>" style="whiteSpace=wrap;html=1;aspect=fixed;" parent="1" vertex="1">
<mxGeometry x="590" y="230" width="205" height="205" as="geometry" />
</mxCell>
<mxCell id="8DHydzjYtL_Uh8tmizwP-6" value="" style="endArrow=none;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="430" y="450" as="sourcePoint" />
<mxPoint x="430" y="350" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="8DHydzjYtL_Uh8tmizwP-7" value="counter" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="400" y="450" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="8DHydzjYtL_Uh8tmizwP-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.14;entryY=0.29;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="8DHydzjYtL_Uh8tmizwP-8" target="8btwyj7wd-xuqD60YhSa-3">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="880" y="180" />
<mxPoint x="240" y="180" />
<mxPoint x="240" y="349" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="8DHydzjYtL_Uh8tmizwP-8" value="next counter" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="850" y="330" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="8DHydzjYtL_Uh8tmizwP-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.005;entryY=0.829;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="8DHydzjYtL_Uh8tmizwP-12" target="8btwyj7wd-xuqD60YhSa-12">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="8DHydzjYtL_Uh8tmizwP-12" value="lim" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="490" y="380" width="60" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>