-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathF571.v
49 lines (39 loc) · 1.19 KB
/
F571.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
/**************************************************************************
** ND120 DGA (Decode Gate Array) **
** DECODE/DGA **
** **
** NEC F571 - 2 TO 1 MULTIPLEXER **
** **
** Last reviewed: 20-MAY-2024 **
** Ronny Hansen **
***************************************************************************/
module F571 (
input A,
input D0,
input D1,
input ENB_N,
output Y
);
wire s_enb_n;
wire s_A;
wire s_enb;
wire s_d0;
wire s_d1;
wire s_y;
// Assign inputs
assign s_enb_n = ENB_N;
assign s_A = A;
assign s_d0 = D0;
assign s_d1 = D1;
// Assign outputs
assign Y = s_y;
// Implementation
assign s_enb = ~s_enb_n;
Multiplexer_2_w_enable PLEXERS_1 (
.enable(s_enb),
.muxIn_0(s_d0),
.muxIn_1(s_d1),
.muxOut(s_y),
.sel(s_A)
);
endmodule