-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflattened.v
104 lines (103 loc) · 5.36 KB
/
flattened.v
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
/* Generated by Yosys 0.25+83 (git sha1 755b753e1, aarch64-apple-darwin20.2-clang 10.0.0-4ubuntu1 -fPIC -Os) */
/* top = 1 */
/* src = "d34_hgrodin_collatz/src/wrapper.v:2.9-12.18" */
module d34_hgrodin_collatz(io_in, io_out);
wire _00_;
wire _01_;
wire _02_;
wire _03_;
wire _04_;
wire _05_;
wire _06_;
wire _07_;
wire _08_;
wire _09_;
wire _10_;
wire _11_;
wire _12_;
/* src = "d34_hgrodin_collatz/src/wrapper.v:3.26-3.31" */
input [13:0] io_in;
wire [13:0] io_in;
/* src = "d34_hgrodin_collatz/src/wrapper.v:4.27-4.33" */
output [13:0] io_out;
wire [13:0] io_out;
/* hdlname = "mchip c b" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:16.16-16.17|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.b ;
/* hdlname = "mchip c inst2 in1" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:27.10-27.32|d34_hgrodin_collatz/src/collatz.v:34.30-34.33|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.inst2.in1 ;
/* hdlname = "mchip c inst2 in2" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:27.10-27.32|d34_hgrodin_collatz/src/collatz.v:34.52-34.55|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.inst2.in2 ;
/* hdlname = "mchip c inst2 out" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:27.10-27.32|d34_hgrodin_collatz/src/collatz.v:34.75-34.78|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.inst2.out ;
/* hdlname = "mchip c inst2 rem" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:27.10-27.32|d34_hgrodin_collatz/src/collatz.v:35.16-35.19|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.inst2.rem ;
/* hdlname = "mchip c inst3 in1" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:28.10-28.43|d34_hgrodin_collatz/src/collatz.v:34.30-34.33|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.inst3.in1 ;
/* hdlname = "mchip c inst3 in2" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:28.10-28.43|d34_hgrodin_collatz/src/collatz.v:34.52-34.55|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.inst3.in2 ;
/* hdlname = "mchip c inst3 rem" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:28.10-28.43|d34_hgrodin_collatz/src/collatz.v:35.16-35.19|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.inst3.rem ;
/* hdlname = "mchip c n" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:13.20-13.21|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.n ;
/* hdlname = "mchip c out" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:14.21-14.24|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.out ;
/* hdlname = "mchip c out_even" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:18.16-18.24|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.out_even ;
/* hdlname = "mchip c tmp" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:23.16-23.19|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.tmp ;
/* hdlname = "mchip c tmp2" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:26.16-26.20|d34_hgrodin_collatz/src/collatz.v:8.13-8.40" */
wire [3:0] \mchip.c.tmp2 ;
/* hdlname = "mchip io_in" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:4.17-4.22" */
/* unused_bits = "4 5 6 7" */
wire [7:0] \mchip.io_in ;
/* hdlname = "mchip io_out" */
/* src = "d34_hgrodin_collatz/src/wrapper.v:7.25-10.14|d34_hgrodin_collatz/src/collatz.v:5.18-5.24" */
wire [7:0] \mchip.io_out ;
assign io_out[0] = io_in[1] & ~(io_in[0]);
assign _00_ = io_in[1] | ~(io_in[0]);
assign _01_ = ~(io_in[2] ^ io_in[1]);
assign _02_ = io_in[0] & io_in[1];
assign _03_ = _02_ ^ _01_;
assign _04_ = _03_ | _00_;
assign _05_ = ~(io_in[2] & io_in[1]);
assign _06_ = _05_ & ~(_02_);
assign _07_ = _02_ & io_in[2];
assign _08_ = _06_ & ~(_07_);
assign _09_ = ~(io_in[2] ^ io_in[3]);
assign _10_ = _09_ ^ _08_;
assign _11_ = _10_ ^ _04_;
assign io_out[3] = io_in[0] & ~(_11_);
assign io_out[1] = io_in[0] ? io_in[1] : io_in[2];
assign _12_ = _03_ ^ _00_;
assign io_out[2] = io_in[0] ? _12_ : io_in[3];
assign io_out[13:4] = 10'h000;
assign \mchip.c.b = { io_in[0], io_in[0], io_in[0], io_in[0] };
assign \mchip.c.inst2.in1 = { io_in[2:0], 1'h0 };
assign \mchip.c.inst2.in2 = io_in[3:0];
assign \mchip.c.inst2.out = { 3'h0, io_in[0] };
assign \mchip.c.inst2.rem = 4'h0;
assign \mchip.c.inst3.in1 = { 3'h0, io_in[0] };
assign \mchip.c.inst3.in2 = 4'h1;
assign \mchip.c.inst3.rem = { 3'h0, io_in[0] };
assign \mchip.c.n = io_in[3:0];
assign \mchip.c.out = io_out[3:0];
assign \mchip.c.out_even = { 1'h0, io_in[3:1] };
assign \mchip.c.tmp = { io_in[2:0], 1'h0 };
assign \mchip.c.tmp2 = { 3'h0, io_in[0] };
assign \mchip.io_in = io_in[7:0];
assign \mchip.io_out = { 4'h0, io_out[3:0] };
endmodule