-
Notifications
You must be signed in to change notification settings - Fork 0
/
rule15.ma
55 lines (50 loc) · 1.92 KB
/
rule15.ma
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
%/*******************************************************************
%*
%* DESCRIPTION: building RNG model using CD++ for rule 15,
%*
%* AUTHOR: Abdulelah Alsanad
%*
%* EMAIL: [email protected]
%*
%* DATE: 1/12/2005
%*
%*******************************************************************/
[top]
components : rng
[rng]
type : cell
width : 8
height : 8
delay : transport
defaultDelayTime : 100
border : wrapped
neighbors : rng(-1,0)
neighbors : rng(0,-1) rng(0,0) rng(0,1)
neighbors : rng(1,0)
initialvalue : 0
initialrowvalue : 0 00010000
%initialrowvalue : 1 11010101
%initialrowvalue : 2 00001010
%initialrowvalue : 3 11010100
%initialrowvalue : 4 01010111
%initialrowvalue : 6 11111111
%initialrowvalue : 7 10100011
localtransition : rng-rule15
% Rule 15
[rng-rule15]
rule : 0 100 { (-1,0) = 1 and (0,-1) = 1 and (1,0) = 1 and (0,1) = 1}
rule : 1 100 { (-1,0) = 1 and (0,-1) = 1 and (1,0) = 1 and (0,1) = 0}
rule : 1 100 { (-1,0) = 1 and (0,-1) = 1 and (1,0) = 0 and (0,1) = 1}
rule : 0 100 { (-1,0) = 1 and (0,-1) = 1 and (1,0) = 0 and (0,1) = 0}
rule : 1 100 { (-1,0) = 1 and (0,-1) = 0 and (1,0) = 1 and (0,1) = 1}
rule : 0 100 { (-1,0) = 1 and (0,-1) = 0 and (1,0) = 1 and (0,1) = 0}
rule : 0 100 { (-1,0) = 1 and (0,-1) = 0 and (1,0) = 0 and (0,1) = 1}
rule : 1 100 { (-1,0) = 1 and (0,-1) = 0 and (1,0) = 0 and (0,1) = 0}
rule : 1 100 { (-1,0) = 0 and (0,-1) = 1 and (1,0) = 1 and (0,1) = 1}
rule : 0 100 { (-1,0) = 0 and (0,-1) = 1 and (1,0) = 1 and (0,1) = 0}
rule : 0 100 { (-1,0) = 0 and (0,-1) = 1 and (1,0) = 0 and (0,1) = 1}
rule : 1 100 { (-1,0) = 0 and (0,-1) = 1 and (1,0) = 0 and (0,1) = 0}
rule : 0 100 { (-1,0) = 0 and (0,-1) = 0 and (1,0) = 1 and (0,1) = 1}
rule : 1 100 { (-1,0) = 0 and (0,-1) = 0 and (1,0) = 1 and (0,1) = 0}
rule : 1 100 { (-1,0) = 0 and (0,-1) = 0 and (1,0) = 0 and (0,1) = 1}
rule : 0 100 { (-1,0) = 0 and (0,-1) = 0 and (1,0) = 0 and (0,1) = 0}