+/EE316

digital logic

git clone https://git.julia.blue/+/EE316

Joseph RyanUpload whole semester91885ad

master
1.1 KiB51 linesraw
1`timescale 1ns / 1ps
2//////////////////////////////////////////////////////////////////////////////////
3// Company: 
4// Engineer: 
5// 
6// Create Date: 02/13/2019 10:05:23 AM
7// Design Name: 
8// Module Name: Decoder_structural
9// Project Name: 
10// Target Devices: 
11// Tool Versions: 
12// Description: 
13// 
14// Dependencies: 
15// 
16// Revision:
17// Revision 0.01 - File Created
18// Additional Comments:
19// 
20//////////////////////////////////////////////////////////////////////////////////
21
22
23module Decoder_structural(
24    input e,
25    input a,
26    input b,
27    input c,
28    output d0,
29    output d1,
30    output d2,
31    output d3,
32    output d4,
33    output d5,
34    output d6,
35    output d7
36    );
37    wire a_not, b_not, c_not;
38    
39    not n0(a_not, a);
40    not n1(b_not, b);
41    not n2(c_not, c);
42    
43    and g0(d0, e, a_not, b_not, c_not);
44    and g1(d1, e, a_not, b_not, c);
45    and g2(d2, e, a_not, b, c_not);
46    and g3(d3, e, a_not, b, c);
47    and g4(d4, e, a, b_not, c_not);
48    and g5(d5, e, a, b_not, c);
49    and g6(d6, e, a, b, c_not);
50    and g7(d7, e, a, b, c);
51endmodule