+/EE316

digital logic

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

Joseph RyanUpload whole semester91885ad

master
904 B44 linesraw
1`timescale 1ns / 1ps
2//////////////////////////////////////////////////////////////////////////////////
3// Company: 
4// Engineer: 
5// 
6// Create Date: 02/13/2019 11:09:43 AM
7// Design Name: 
8// Module Name: Mux_strctural
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 Mux_structural(
24        input s0,
25        input s1,
26        input i0,
27        input i1,
28        input i2,
29        input i3,
30        output d
31    );
32    
33    wire not_s0, not_s1, a0, a1, a2, a3;
34    not n1(not_s0, s0);
35    not n2(not_s1, s1);
36    
37    and(a0, not_s0, not_s1, i0);
38    and(a1, s0, not_s1, i1);
39    and(a2, not_s0, s1, i2);
40    and(a3, s0, s1, i3);
41    
42    or combine(d, a0, a1, a2, a3);
43    
44endmodule