-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiiitb_sqd_synth.v
74 lines (73 loc) · 1.46 KB
/
iiitb_sqd_synth.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
/* Generated by Yosys 0.9 (git sha1 1979e0b) */
module Sequence_Detector_MOORE_Verilog(sequence_in, clock, reset, detector_out);
wire _00_;
wire _01_;
wire _02_;
wire _03_;
wire _04_;
wire [4:0] _05_;
input clock;
output detector_out;
reg detector_out;
input reset;
input sequence_in;
sky130_fd_sc_hd__clkinv_1 _06_ (
.A(sequence_in),
.Y(_04_)
);
sky130_fd_sc_hd__and2_0 _07_ (
.A(sequence_in),
.B(_05_[3]),
.X(_03_)
);
sky130_fd_sc_hd__and2_0 _08_ (
.A(sequence_in),
.B(_05_[0]),
.X(_02_)
);
sky130_fd_sc_hd__o21a_1 _09_ (
.A1(detector_out),
.A2(_05_[1]),
.B1(sequence_in),
.X(_01_)
);
sky130_fd_sc_hd__and2_0 _10_ (
.A(sequence_in),
.B(_05_[4]),
.X(_00_)
);
reg _11_;
always @(posedge clock or posedge reset)
if (reset)
_11_ <= 1;
else
_11_ <= _04_;
assign _05_[0] = _11_;
reg _12_;
always @(posedge clock or posedge reset)
if (reset)
_12_ <= 0;
else
_12_ <= _00_;
assign _05_[1] = _12_;
always @(posedge clock or posedge reset)
if (reset)
detector_out <= 0;
else
detector_out <= _01_;
reg _14_;
always @(posedge clock or posedge reset)
if (reset)
_14_ <= 0;
else
_14_ <= _02_;
assign _05_[3] = _14_;
reg _15_;
always @(posedge clock or posedge reset)
if (reset)
_15_ <= 0;
else
_15_ <= _03_;
assign _05_[4] = _15_;
assign _05_[2] = detector_out;
endmodule