OpenCores
URL https://opencores.org/ocsvn/idea/idea/trunk

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [key_regulator/] [mux8to4.vbe] - Blame information for rev 10

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 marta
-- VHDL data flow description generated from `mux8to4`
2
--              date : Sat Jul 28 16:25:54 2001
3
 
4
 
5
-- Entity Declaration
6
 
7
ENTITY mux8to4 IS
8
  PORT (
9
  i1 : in bit_vector(15 DOWNTO 0) ;     -- i1
10
  i2 : in bit_vector(15 DOWNTO 0) ;     -- i2
11
  i3 : in bit_vector(15 DOWNTO 0) ;     -- i3
12
  i4 : in bit_vector(15 DOWNTO 0) ;     -- i4
13
  i5 : in bit_vector(15 DOWNTO 0) ;     -- i5
14
  i6 : in bit_vector(15 DOWNTO 0) ;     -- i6
15
  i7 : in bit_vector(15 DOWNTO 0) ;     -- i7
16
  i8 : in bit_vector(15 DOWNTO 0) ;     -- i8
17
  en : in BIT;  -- en
18
  clr : in BIT; -- clr
19
  sel : in BIT; -- sel
20
  o1 : out bit_vector(15 DOWNTO 0) ;    -- o1
21
  o2 : out bit_vector(15 DOWNTO 0) ;    -- o2
22
  o3 : out bit_vector(15 DOWNTO 0) ;    -- o3
23
  o4 : out bit_vector(15 DOWNTO 0) ;    -- o4
24
  vdd : in BIT; -- vdd
25
  vss : in BIT  -- vss
26
  );
27
END mux8to4;
28
 
29
 
30
-- Architecture Declaration
31
 
32
ARCHITECTURE behaviour_data_flow OF mux8to4 IS
33
  SIGNAL reg1 : REG_VECTOR(15 DOWNTO 0) REGISTER;       -- reg1
34
  SIGNAL reg2 : REG_VECTOR(15 DOWNTO 0) REGISTER;       -- reg2
35
  SIGNAL reg3 : REG_VECTOR(15 DOWNTO 0) REGISTER;       -- reg3
36
  SIGNAL reg4 : REG_VECTOR(15 DOWNTO 0) REGISTER;       -- reg4
37
 
38
BEGIN
39
  ASSERT ((vdd and not (vss)) = '1')
40
    REPORT "power supply is missing on mux8to4x"
41
    SEVERITY WARNING;
42
 
43
  label0 : BLOCK ((en and not (en'STABLE)) = '1')
44
  BEGIN
45
    reg4 (0) <= GUARDED ((i4 (0) and sel) or (not (sel) and i8 (0)));
46
  END BLOCK label0;
47
  label1 : BLOCK ((en and not (en'STABLE)) = '1')
48
  BEGIN
49
    reg4 (1) <= GUARDED ((i4 (1) and sel) or (not (sel) and i8 (1)));
50
  END BLOCK label1;
51
  label2 : BLOCK ((en and not (en'STABLE)) = '1')
52
  BEGIN
53
    reg4 (2) <= GUARDED ((i4 (2) and sel) or (not (sel) and i8 (2)));
54
  END BLOCK label2;
55
  label3 : BLOCK ((en and not (en'STABLE)) = '1')
56
  BEGIN
57
    reg4 (3) <= GUARDED ((i4 (3) and sel) or (not (sel) and i8 (3)));
58
  END BLOCK label3;
59
  label4 : BLOCK ((en and not (en'STABLE)) = '1')
60
  BEGIN
61
    reg4 (4) <= GUARDED ((i4 (4) and sel) or (not (sel) and i8 (4)));
62
  END BLOCK label4;
63
  label5 : BLOCK ((en and not (en'STABLE)) = '1')
64
  BEGIN
65
    reg4 (5) <= GUARDED ((i4 (5) and sel) or (not (sel) and i8 (5)));
66
  END BLOCK label5;
67
  label6 : BLOCK ((en and not (en'STABLE)) = '1')
68
  BEGIN
69
    reg4 (6) <= GUARDED ((i4 (6) and sel) or (not (sel) and i8 (6)));
70
  END BLOCK label6;
71
  label7 : BLOCK ((en and not (en'STABLE)) = '1')
72
  BEGIN
73
    reg4 (7) <= GUARDED ((i4 (7) and sel) or (not (sel) and i8 (7)));
74
  END BLOCK label7;
75
  label8 : BLOCK ((en and not (en'STABLE)) = '1')
76
  BEGIN
77
    reg4 (8) <= GUARDED ((i4 (8) and sel) or (not (sel) and i8 (8)));
78
  END BLOCK label8;
79
  label9 : BLOCK ((en and not (en'STABLE)) = '1')
80
  BEGIN
81
    reg4 (9) <= GUARDED ((i4 (9) and sel) or (not (sel) and i8 (9)));
82
  END BLOCK label9;
83
  label10 : BLOCK ((en and not (en'STABLE)) = '1')
84
  BEGIN
85
    reg4 (10) <= GUARDED ((i4 (10) and sel) or (not (sel) and i8 (10)));
86
  END BLOCK label10;
87
  label11 : BLOCK ((en and not (en'STABLE)) = '1')
88
  BEGIN
89
    reg4 (11) <= GUARDED ((i4 (11) and sel) or (not (sel) and i8 (11)));
90
  END BLOCK label11;
91
  label12 : BLOCK ((en and not (en'STABLE)) = '1')
92
  BEGIN
93
    reg4 (12) <= GUARDED ((i4 (12) and sel) or (not (sel) and i8 (12)));
94
  END BLOCK label12;
95
  label13 : BLOCK ((en and not (en'STABLE)) = '1')
96
  BEGIN
97
    reg4 (13) <= GUARDED ((i4 (13) and sel) or (not (sel) and i8 (13)));
98
  END BLOCK label13;
99
  label14 : BLOCK ((en and not (en'STABLE)) = '1')
100
  BEGIN
101
    reg4 (14) <= GUARDED ((i4 (14) and sel) or (not (sel) and i8 (14)));
102
  END BLOCK label14;
103
  label15 : BLOCK ((en and not (en'STABLE)) = '1')
104
  BEGIN
105
    reg4 (15) <= GUARDED ((i4 (15) and sel) or (not (sel) and i8 (15)));
106
  END BLOCK label15;
107
  label16 : BLOCK ((en and not (en'STABLE)) = '1')
108
  BEGIN
109
    reg3 (0) <= GUARDED ((i3 (0) and sel) or (not (sel) and i7 (0)));
110
  END BLOCK label16;
111
  label17 : BLOCK ((en and not (en'STABLE)) = '1')
112
  BEGIN
113
    reg3 (1) <= GUARDED ((i3 (1) and sel) or (not (sel) and i7 (1)));
114
  END BLOCK label17;
115
  label18 : BLOCK ((en and not (en'STABLE)) = '1')
116
  BEGIN
117
    reg3 (2) <= GUARDED ((i3 (2) and sel) or (not (sel) and i7 (2)));
118
  END BLOCK label18;
119
  label19 : BLOCK ((en and not (en'STABLE)) = '1')
120
  BEGIN
121
    reg3 (3) <= GUARDED ((i3 (3) and sel) or (not (sel) and i7 (3)));
122
  END BLOCK label19;
123
  label20 : BLOCK ((en and not (en'STABLE)) = '1')
124
  BEGIN
125
    reg3 (4) <= GUARDED ((i3 (4) and sel) or (not (sel) and i7 (4)));
126
  END BLOCK label20;
127
  label21 : BLOCK ((en and not (en'STABLE)) = '1')
128
  BEGIN
129
    reg3 (5) <= GUARDED ((i3 (5) and sel) or (not (sel) and i7 (5)));
130
  END BLOCK label21;
131
  label22 : BLOCK ((en and not (en'STABLE)) = '1')
132
  BEGIN
133
    reg3 (6) <= GUARDED ((i3 (6) and sel) or (not (sel) and i7 (6)));
134
  END BLOCK label22;
135
  label23 : BLOCK ((en and not (en'STABLE)) = '1')
136
  BEGIN
137
    reg3 (7) <= GUARDED ((i3 (7) and sel) or (not (sel) and i7 (7)));
138
  END BLOCK label23;
139
  label24 : BLOCK ((en and not (en'STABLE)) = '1')
140
  BEGIN
141
    reg3 (8) <= GUARDED ((i3 (8) and sel) or (not (sel) and i7 (8)));
142
  END BLOCK label24;
143
  label25 : BLOCK ((en and not (en'STABLE)) = '1')
144
  BEGIN
145
    reg3 (9) <= GUARDED ((i3 (9) and sel) or (not (sel) and i7 (9)));
146
  END BLOCK label25;
147
  label26 : BLOCK ((en and not (en'STABLE)) = '1')
148
  BEGIN
149
    reg3 (10) <= GUARDED ((i3 (10) and sel) or (not (sel) and i7 (10)));
150
  END BLOCK label26;
151
  label27 : BLOCK ((en and not (en'STABLE)) = '1')
152
  BEGIN
153
    reg3 (11) <= GUARDED ((i3 (11) and sel) or (not (sel) and i7 (11)));
154
  END BLOCK label27;
155
  label28 : BLOCK ((en and not (en'STABLE)) = '1')
156
  BEGIN
157
    reg3 (12) <= GUARDED ((i3 (12) and sel) or (not (sel) and i7 (12)));
158
  END BLOCK label28;
159
  label29 : BLOCK ((en and not (en'STABLE)) = '1')
160
  BEGIN
161
    reg3 (13) <= GUARDED ((i3 (13) and sel) or (not (sel) and i7 (13)));
162
  END BLOCK label29;
163
  label30 : BLOCK ((en and not (en'STABLE)) = '1')
164
  BEGIN
165
    reg3 (14) <= GUARDED ((i3 (14) and sel) or (not (sel) and i7 (14)));
166
  END BLOCK label30;
167
  label31 : BLOCK ((en and not (en'STABLE)) = '1')
168
  BEGIN
169
    reg3 (15) <= GUARDED ((i3 (15) and sel) or (not (sel) and i7 (15)));
170
  END BLOCK label31;
171
  label32 : BLOCK ((en and not (en'STABLE)) = '1')
172
  BEGIN
173
    reg2 (0) <= GUARDED ((i2 (0) and sel) or (not (sel) and i6 (0)));
174
  END BLOCK label32;
175
  label33 : BLOCK ((en and not (en'STABLE)) = '1')
176
  BEGIN
177
    reg2 (1) <= GUARDED ((i2 (1) and sel) or (not (sel) and i6 (1)));
178
  END BLOCK label33;
179
  label34 : BLOCK ((en and not (en'STABLE)) = '1')
180
  BEGIN
181
    reg2 (2) <= GUARDED ((i2 (2) and sel) or (not (sel) and i6 (2)));
182
  END BLOCK label34;
183
  label35 : BLOCK ((en and not (en'STABLE)) = '1')
184
  BEGIN
185
    reg2 (3) <= GUARDED ((i2 (3) and sel) or (not (sel) and i6 (3)));
186
  END BLOCK label35;
187
  label36 : BLOCK ((en and not (en'STABLE)) = '1')
188
  BEGIN
189
    reg2 (4) <= GUARDED ((i2 (4) and sel) or (not (sel) and i6 (4)));
190
  END BLOCK label36;
191
  label37 : BLOCK ((en and not (en'STABLE)) = '1')
192
  BEGIN
193
    reg2 (5) <= GUARDED ((i2 (5) and sel) or (not (sel) and i6 (5)));
194
  END BLOCK label37;
195
  label38 : BLOCK ((en and not (en'STABLE)) = '1')
196
  BEGIN
197
    reg2 (6) <= GUARDED ((i2 (6) and sel) or (not (sel) and i6 (6)));
198
  END BLOCK label38;
199
  label39 : BLOCK ((en and not (en'STABLE)) = '1')
200
  BEGIN
201
    reg2 (7) <= GUARDED ((i2 (7) and sel) or (not (sel) and i6 (7)));
202
  END BLOCK label39;
203
  label40 : BLOCK ((en and not (en'STABLE)) = '1')
204
  BEGIN
205
    reg2 (8) <= GUARDED ((i2 (8) and sel) or (not (sel) and i6 (8)));
206
  END BLOCK label40;
207
  label41 : BLOCK ((en and not (en'STABLE)) = '1')
208
  BEGIN
209
    reg2 (9) <= GUARDED ((i2 (9) and sel) or (not (sel) and i6 (9)));
210
  END BLOCK label41;
211
  label42 : BLOCK ((en and not (en'STABLE)) = '1')
212
  BEGIN
213
    reg2 (10) <= GUARDED ((i2 (10) and sel) or (not (sel) and i6 (10)));
214
  END BLOCK label42;
215
  label43 : BLOCK ((en and not (en'STABLE)) = '1')
216
  BEGIN
217
    reg2 (11) <= GUARDED ((i2 (11) and sel) or (not (sel) and i6 (11)));
218
  END BLOCK label43;
219
  label44 : BLOCK ((en and not (en'STABLE)) = '1')
220
  BEGIN
221
    reg2 (12) <= GUARDED ((i2 (12) and sel) or (not (sel) and i6 (12)));
222
  END BLOCK label44;
223
  label45 : BLOCK ((en and not (en'STABLE)) = '1')
224
  BEGIN
225
    reg2 (13) <= GUARDED ((i2 (13) and sel) or (not (sel) and i6 (13)));
226
  END BLOCK label45;
227
  label46 : BLOCK ((en and not (en'STABLE)) = '1')
228
  BEGIN
229
    reg2 (14) <= GUARDED ((i2 (14) and sel) or (not (sel) and i6 (14)));
230
  END BLOCK label46;
231
  label47 : BLOCK ((en and not (en'STABLE)) = '1')
232
  BEGIN
233
    reg2 (15) <= GUARDED ((i2 (15) and sel) or (not (sel) and i6 (15)));
234
  END BLOCK label47;
235
  label48 : BLOCK ((en and not (en'STABLE)) = '1')
236
  BEGIN
237
    reg1 (0) <= GUARDED ((i1 (0) and sel) or (not (sel) and i5 (0)));
238
  END BLOCK label48;
239
  label49 : BLOCK ((en and not (en'STABLE)) = '1')
240
  BEGIN
241
    reg1 (1) <= GUARDED ((i1 (1) and sel) or (not (sel) and i5 (1)));
242
  END BLOCK label49;
243
  label50 : BLOCK ((en and not (en'STABLE)) = '1')
244
  BEGIN
245
    reg1 (2) <= GUARDED ((i1 (2) and sel) or (not (sel) and i5 (2)));
246
  END BLOCK label50;
247
  label51 : BLOCK ((en and not (en'STABLE)) = '1')
248
  BEGIN
249
    reg1 (3) <= GUARDED ((i1 (3) and sel) or (not (sel) and i5 (3)));
250
  END BLOCK label51;
251
  label52 : BLOCK ((en and not (en'STABLE)) = '1')
252
  BEGIN
253
    reg1 (4) <= GUARDED ((i1 (4) and sel) or (not (sel) and i5 (4)));
254
  END BLOCK label52;
255
  label53 : BLOCK ((en and not (en'STABLE)) = '1')
256
  BEGIN
257
    reg1 (5) <= GUARDED ((i1 (5) and sel) or (not (sel) and i5 (5)));
258
  END BLOCK label53;
259
  label54 : BLOCK ((en and not (en'STABLE)) = '1')
260
  BEGIN
261
    reg1 (6) <= GUARDED ((i1 (6) and sel) or (not (sel) and i5 (6)));
262
  END BLOCK label54;
263
  label55 : BLOCK ((en and not (en'STABLE)) = '1')
264
  BEGIN
265
    reg1 (7) <= GUARDED ((i1 (7) and sel) or (not (sel) and i5 (7)));
266
  END BLOCK label55;
267
  label56 : BLOCK ((en and not (en'STABLE)) = '1')
268
  BEGIN
269
    reg1 (8) <= GUARDED ((i1 (8) and sel) or (not (sel) and i5 (8)));
270
  END BLOCK label56;
271
  label57 : BLOCK ((en and not (en'STABLE)) = '1')
272
  BEGIN
273
    reg1 (9) <= GUARDED ((i1 (9) and sel) or (not (sel) and i5 (9)));
274
  END BLOCK label57;
275
  label58 : BLOCK ((en and not (en'STABLE)) = '1')
276
  BEGIN
277
    reg1 (10) <= GUARDED ((i1 (10) and sel) or (not (sel) and i5 (10)));
278
  END BLOCK label58;
279
  label59 : BLOCK ((en and not (en'STABLE)) = '1')
280
  BEGIN
281
    reg1 (11) <= GUARDED ((i1 (11) and sel) or (not (sel) and i5 (11)));
282
  END BLOCK label59;
283
  label60 : BLOCK ((en and not (en'STABLE)) = '1')
284
  BEGIN
285
    reg1 (12) <= GUARDED ((i1 (12) and sel) or (not (sel) and i5 (12)));
286
  END BLOCK label60;
287
  label61 : BLOCK ((en and not (en'STABLE)) = '1')
288
  BEGIN
289
    reg1 (13) <= GUARDED ((i1 (13) and sel) or (not (sel) and i5 (13)));
290
  END BLOCK label61;
291
  label62 : BLOCK ((en and not (en'STABLE)) = '1')
292
  BEGIN
293
    reg1 (14) <= GUARDED ((i1 (14) and sel) or (not (sel) and i5 (14)));
294
  END BLOCK label62;
295
  label63 : BLOCK ((en and not (en'STABLE)) = '1')
296
  BEGIN
297
    reg1 (15) <= GUARDED ((i1 (15) and sel) or (not (sel) and i5 (15)));
298
  END BLOCK label63;
299
 
300
o4 (0) <= (not (clr) and reg4 (0));
301
 
302
o4 (1) <= (not (clr) and reg4 (1));
303
 
304
o4 (2) <= (not (clr) and reg4 (2));
305
 
306
o4 (3) <= (not (clr) and reg4 (3));
307
 
308
o4 (4) <= (not (clr) and reg4 (4));
309
 
310
o4 (5) <= (not (clr) and reg4 (5));
311
 
312
o4 (6) <= (not (clr) and reg4 (6));
313
 
314
o4 (7) <= (not (clr) and reg4 (7));
315
 
316
o4 (8) <= (not (clr) and reg4 (8));
317
 
318
o4 (9) <= (not (clr) and reg4 (9));
319
 
320
o4 (10) <= (not (clr) and reg4 (10));
321
 
322
o4 (11) <= (not (clr) and reg4 (11));
323
 
324
o4 (12) <= (not (clr) and reg4 (12));
325
 
326
o4 (13) <= (not (clr) and reg4 (13));
327
 
328
o4 (14) <= (not (clr) and reg4 (14));
329
 
330
o4 (15) <= (not (clr) and reg4 (15));
331
 
332
o3 (0) <= (not (clr) and reg3 (0));
333
 
334
o3 (1) <= (not (clr) and reg3 (1));
335
 
336
o3 (2) <= (not (clr) and reg3 (2));
337
 
338
o3 (3) <= (not (clr) and reg3 (3));
339
 
340
o3 (4) <= (not (clr) and reg3 (4));
341
 
342
o3 (5) <= (not (clr) and reg3 (5));
343
 
344
o3 (6) <= (not (clr) and reg3 (6));
345
 
346
o3 (7) <= (not (clr) and reg3 (7));
347
 
348
o3 (8) <= (not (clr) and reg3 (8));
349
 
350
o3 (9) <= (not (clr) and reg3 (9));
351
 
352
o3 (10) <= (not (clr) and reg3 (10));
353
 
354
o3 (11) <= (not (clr) and reg3 (11));
355
 
356
o3 (12) <= (not (clr) and reg3 (12));
357
 
358
o3 (13) <= (not (clr) and reg3 (13));
359
 
360
o3 (14) <= (not (clr) and reg3 (14));
361
 
362
o3 (15) <= (not (clr) and reg3 (15));
363
 
364
o2 (0) <= (not (clr) and reg2 (0));
365
 
366
o2 (1) <= (not (clr) and reg2 (1));
367
 
368
o2 (2) <= (not (clr) and reg2 (2));
369
 
370
o2 (3) <= (not (clr) and reg2 (3));
371
 
372
o2 (4) <= (not (clr) and reg2 (4));
373
 
374
o2 (5) <= (not (clr) and reg2 (5));
375
 
376
o2 (6) <= (not (clr) and reg2 (6));
377
 
378
o2 (7) <= (not (clr) and reg2 (7));
379
 
380
o2 (8) <= (not (clr) and reg2 (8));
381
 
382
o2 (9) <= (not (clr) and reg2 (9));
383
 
384
o2 (10) <= (not (clr) and reg2 (10));
385
 
386
o2 (11) <= (not (clr) and reg2 (11));
387
 
388
o2 (12) <= (not (clr) and reg2 (12));
389
 
390
o2 (13) <= (not (clr) and reg2 (13));
391
 
392
o2 (14) <= (not (clr) and reg2 (14));
393
 
394
o2 (15) <= (not (clr) and reg2 (15));
395
 
396
o1 (0) <= (not (clr) and reg1 (0));
397
 
398
o1 (1) <= (not (clr) and reg1 (1));
399
 
400
o1 (2) <= (not (clr) and reg1 (2));
401
 
402
o1 (3) <= (not (clr) and reg1 (3));
403
 
404
o1 (4) <= (not (clr) and reg1 (4));
405
 
406
o1 (5) <= (not (clr) and reg1 (5));
407
 
408
o1 (6) <= (not (clr) and reg1 (6));
409
 
410
o1 (7) <= (not (clr) and reg1 (7));
411
 
412
o1 (8) <= (not (clr) and reg1 (8));
413
 
414
o1 (9) <= (not (clr) and reg1 (9));
415
 
416
o1 (10) <= (not (clr) and reg1 (10));
417
 
418
o1 (11) <= (not (clr) and reg1 (11));
419
 
420
o1 (12) <= (not (clr) and reg1 (12));
421
 
422
o1 (13) <= (not (clr) and reg1 (13));
423
 
424
o1 (14) <= (not (clr) and reg1 (14));
425
 
426
o1 (15) <= (not (clr) and reg1 (15));
427
END;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.