generated from cc3-ug/proj02-logisim-cpu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpc.circ
99 lines (99 loc) · 3.67 KB
/
pc.circ
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.7.1" version="1.0">
This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).
<lib desc="#Wiring" name="0"/>
<lib desc="#Gates" name="1"/>
<lib desc="#Plexers" name="2"/>
<lib desc="#Arithmetic" name="3"/>
<lib desc="#Memory" name="4"/>
<lib desc="#I/O" name="5"/>
<lib desc="#Base" name="6">
<tool name="Text Tool">
<a name="text" val=""/>
<a name="font" val="SansSerif plain 12"/>
<a name="halign" val="center"/>
<a name="valign" val="base"/>
</tool>
</lib>
<main name="PC"/>
<options>
<a name="gateUndefined" val="ignore"/>
<a name="simlimit" val="1000"/>
<a name="simrand" val="0"/>
</options>
<mappings>
<tool lib="6" map="Button2" name="Menu Tool"/>
<tool lib="6" map="Button3" name="Menu Tool"/>
<tool lib="6" map="Ctrl Button1" name="Menu Tool"/>
</mappings>
<toolbar>
<tool lib="6" name="Poke Tool"/>
<tool lib="6" name="Edit Tool"/>
<tool lib="6" name="Text Tool">
<a name="text" val=""/>
<a name="font" val="SansSerif plain 12"/>
<a name="halign" val="center"/>
<a name="valign" val="base"/>
</tool>
<sep/>
<tool lib="0" name="Pin">
<a name="tristate" val="false"/>
</tool>
<tool lib="0" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="labelloc" val="east"/>
</tool>
<tool lib="1" name="NOT Gate"/>
<tool lib="1" name="AND Gate"/>
<tool lib="1" name="OR Gate"/>
</toolbar>
<circuit name="PC">
<a name="circuit" val="PC"/>
<a name="clabel" val=""/>
<a name="clabelup" val="east"/>
<a name="clabelfont" val="SansSerif plain 12"/>
<appear>
<rect fill="none" height="100" stroke="#000000" stroke-width="2" width="60" x="20" y="20"/>
<path d="M65,119 Q70,108 75,119" fill="none" stroke="#ff0000" stroke-width="2"/>
<text font-family="Dialog" font-size="12" font-weight="bold" text-anchor="middle" x="54" y="75">PC</text>
<text font-family="Dialog" font-size="8" font-weight="bold" text-anchor="middle" x="33" y="73">In</text>
<text font-family="Dialog" font-size="8" font-weight="bold" text-anchor="middle" x="69" y="110">Clk</text>
<circ-port height="8" pin="140,70" width="8" x="16" y="66"/>
<circ-port height="8" pin="80,180" width="8" x="66" y="116"/>
<circ-port height="10" pin="260,70" width="10" x="75" y="65"/>
<circ-anchor facing="east" height="6" width="6" x="77" y="67"/>
</appear>
<wire from="(170,80)" to="(170,160)"/>
<wire from="(80,180)" to="(190,180)"/>
<wire from="(170,80)" to="(180,80)"/>
<wire from="(200,100)" to="(210,100)"/>
<wire from="(190,90)" to="(190,180)"/>
<wire from="(200,90)" to="(200,100)"/>
<wire from="(140,70)" to="(180,70)"/>
<wire from="(130,160)" to="(170,160)"/>
<wire from="(210,70)" to="(260,70)"/>
<comp lib="0" loc="(80,180)" name="Pin">
<a name="tristate" val="false"/>
<a name="label" val="Clk"/>
</comp>
<comp lib="0" loc="(210,100)" name="Ground"/>
<comp lib="0" loc="(260,70)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="width" val="32"/>
<a name="label" val="Output"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="4" loc="(210,70)" name="Register">
<a name="width" val="32"/>
<a name="label" val="PC"/>
</comp>
<comp lib="0" loc="(140,70)" name="Pin">
<a name="width" val="32"/>
<a name="tristate" val="false"/>
<a name="label" val="Input"/>
</comp>
<comp lib="0" loc="(130,160)" name="Constant"/>
</circuit>
</project>