-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path3_bit_counter.circ
222 lines (213 loc) · 7.17 KB
/
3_bit_counter.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.13.20" version="1.0">
This file is intended to be loaded by Logisim-evolution (https://github.com/reds-heig/logisim-evolution).
<lib desc="#Wiring" name="0"/>
<lib desc="#Gates" name="1"/>
<lib desc="#Plexers" name="2">
<tool name="Multiplexer">
<a name="enable" val="false"/>
</tool>
<tool name="Demultiplexer">
<a name="enable" val="false"/>
</tool>
</lib>
<lib desc="#Arithmetic" name="3"/>
<lib desc="#Memory" name="4">
<tool name="ROM">
<a name="contents">addr/data: 8 8
0
</a>
</tool>
</lib>
<lib desc="#I/O" name="5"/>
<lib desc="#HDL-IP" name="6">
<tool name="VHDL Entity">
<a name="content">--------------------------------------------------------------------------------
-- HEIG-VD, institute REDS, 1400 Yverdon-les-Bains
-- Project :
-- File :
-- Autor :
-- Date :
--
--------------------------------------------------------------------------------
-- Description :
--
--------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
--use ieee.numeric_std.all;
entity VHDL_Component is
port(
------------------------------------------------------------------------------
--Insert input ports below
horloge_i : in std_logic; -- input bit example
val_i : in std_logic_vector(3 downto 0); -- input vector example
------------------------------------------------------------------------------
--Insert output ports below
max_o : out std_logic; -- output bit example
cpt_o : out std_logic_Vector(3 downto 0) -- output vector example
);
end VHDL_Component;
--------------------------------------------------------------------------------
--Complete your VHDL description below
architecture type_architecture of VHDL_Component is
begin
end type_architecture;
</a>
</tool>
</lib>
<lib desc="#TCL" name="7">
<tool name="TclGeneric">
<a name="content">library ieee;
use ieee.std_logic_1164.all;
entity TCL_Generic is
port(
--Insert input ports below
horloge_i : in std_logic; -- input bit example
val_i : in std_logic_vector(3 downto 0); -- input vector example
--Insert output ports below
max_o : out std_logic; -- output bit example
cpt_o : out std_logic_Vector(3 downto 0) -- output vector example
);
end TCL_Generic;
</a>
</tool>
</lib>
<lib desc="#Base" name="8">
<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>
<lib desc="#BFH-Praktika" name="9"/>
<main name="main"/>
<options>
<a name="gateUndefined" val="ignore"/>
<a name="simlimit" val="1000"/>
<a name="simrand" val="0"/>
<a name="tickmain" val="half_period"/>
</options>
<mappings>
<tool lib="8" map="Button2" name="Menu Tool"/>
<tool lib="8" map="Ctrl Button1" name="Menu Tool"/>
<tool lib="8" map="Button3" name="Menu Tool"/>
</mappings>
<toolbar>
<tool lib="8" name="Poke Tool"/>
<tool lib="8" name="Edit Tool"/>
<tool lib="8" 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"/>
<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="main">
<a name="circuit" val="main"/>
<a name="clabel" val=""/>
<a name="clabelup" val="east"/>
<a name="clabelfont" val="SansSerif bold 16"/>
<a name="circuitnamedbox" val="true"/>
<a name="circuitvhdlpath" val=""/>
<wire from="(280,160)" to="(280,210)"/>
<wire from="(400,170)" to="(400,190)"/>
<wire from="(420,150)" to="(470,150)"/>
<wire from="(190,70)" to="(190,110)"/>
<wire from="(360,280)" to="(360,300)"/>
<wire from="(360,280)" to="(380,280)"/>
<wire from="(350,270)" to="(380,270)"/>
<wire from="(610,70)" to="(610,210)"/>
<wire from="(280,160)" to="(390,160)"/>
<wire from="(400,290)" to="(400,330)"/>
<wire from="(420,270)" to="(470,270)"/>
<wire from="(470,200)" to="(530,200)"/>
<wire from="(570,210)" to="(610,210)"/>
<wire from="(280,140)" to="(390,140)"/>
<wire from="(610,210)" to="(650,210)"/>
<wire from="(160,150)" to="(210,150)"/>
<wire from="(190,70)" to="(610,70)"/>
<wire from="(350,270)" to="(350,280)"/>
<wire from="(470,150)" to="(470,200)"/>
<wire from="(280,110)" to="(280,140)"/>
<wire from="(190,110)" to="(210,110)"/>
<wire from="(270,110)" to="(280,110)"/>
<wire from="(340,280)" to="(350,280)"/>
<wire from="(340,260)" to="(380,260)"/>
<wire from="(340,300)" to="(360,300)"/>
<wire from="(200,130)" to="(210,130)"/>
<wire from="(470,220)" to="(530,220)"/>
<wire from="(470,220)" to="(470,270)"/>
<wire from="(250,210)" to="(280,210)"/>
<comp lib="8" loc="(192,216)" name="Text">
<a name="text" val="INPUT"/>
<a name="font" val="SansSerif plain 12"/>
</comp>
<comp lib="0" loc="(200,130)" name="Pin"/>
<comp lib="0" loc="(400,330)" name="Pin">
<a name="facing" val="north"/>
<a name="width" val="2"/>
</comp>
<comp lib="0" loc="(340,300)" name="Pin">
<a name="width" val="3"/>
</comp>
<comp lib="4" loc="(210,80)" name="Register">
<a name="width" val="3"/>
</comp>
<comp lib="8" loc="(298,307)" name="Text">
<a name="text" val="0"/>
<a name="font" val="SansSerif plain 12"/>
</comp>
<comp lib="3" loc="(570,210)" name="Adder">
<a name="width" val="3"/>
</comp>
<comp lib="0" loc="(160,150)" name="Clock"/>
<comp lib="2" loc="(420,150)" name="Multiplexer">
<a name="width" val="3"/>
<a name="enable" val="false"/>
</comp>
<comp lib="0" loc="(650,210)" name="Pin">
<a name="facing" val="west"/>
<a name="output" val="true"/>
<a name="width" val="3"/>
<a name="label" val="Counter_out"/>
<a name="labelloc" val="east"/>
</comp>
<comp lib="0" loc="(250,210)" name="Pin">
<a name="width" val="3"/>
</comp>
<comp lib="0" loc="(340,260)" name="Pin">
<a name="width" val="3"/>
</comp>
<comp lib="8" loc="(297,286)" name="Text">
<a name="text" val="-1"/>
<a name="font" val="SansSerif plain 12"/>
</comp>
<comp lib="2" loc="(420,270)" name="Multiplexer">
<a name="select" val="2"/>
<a name="width" val="3"/>
<a name="enable" val="false"/>
</comp>
<comp lib="0" loc="(340,280)" name="Pin">
<a name="width" val="3"/>
</comp>
<comp lib="8" loc="(294,265)" name="Text">
<a name="text" val="+1"/>
<a name="font" val="SansSerif plain 12"/>
</comp>
<comp lib="0" loc="(400,190)" name="Pin">
<a name="facing" val="north"/>
</comp>
</circuit>
</project>