-
Notifications
You must be signed in to change notification settings - Fork 0
/
s8_jed.tdf
35 lines (33 loc) · 854 Bytes
/
s8_jed.tdf
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
SUBDESIGN s8_jed (
clk: INPUT;
i[3..0]: INPUT;
o[0..0]: OUTPUT;
)
VARIABLE
ss: MACHINE OF BITS (q[2..0]) WITH STATES (s1 = B"100", s2 = B"110", s3 = B"111", s4 = B"011", s5 = B"101");
BEGIN
ss.clk = clk;
TABLE
i[3..0], ss => ss, o[0..0];
B"1000", s1 => s1, B"1";
B"0100", s1 => s1, B"1";
B"0010", s1 => s2, B"1";
B"0001", s1 => s2, B"1";
B"1000", s2 => s2, B"1";
B"0100", s2 => s3, B"1";
B"0010", s2 => s2, B"1";
B"0001", s2 => s1, B"1";
B"1000", s3 => s3, B"1";
B"0100", s3 => s5, B"1";
B"0010", s3 => s3, B"1";
B"0001", s3 => s5, B"1";
B"1000", s4 => s4, B"1";
B"0100", s4 => s2, B"1";
B"0010", s4 => s3, B"1";
B"0001", s4 => s3, B"1";
B"1000", s5 => s5, B"1";
B"0100", s5 => s5, B"1";
B"0010", s5 => s1, B"1";
B"0001", s5 => s4, B"1";
END TABLE;
END;