+/EE316
digital logic
git clone https://git.julia.blue/+/EE316
91885ad
master
1`timescale1 ns/ 1 ps 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 ( 24input s0 , 25input s1 , 26input i0 , 27input i1 , 28input i2 , 29input i3 , 30output d 31); 32 33wire not_s0 , not_s1 , a0 , a1 , a2 , a3 ; 34not n1 ( not_s0 , s0 ); 35not n2 ( not_s1 , s1 ); 36 37and ( a0 , not_s0 , not_s1 , i0 ); 38and ( a1 , s0 , not_s1 , i1 ); 39and ( a2 , not_s0 , s1 , i2 ); 40and ( a3 , s0 , s1 , i3 ); 41 42or combine ( d , a0 , a1 , a2 , a3 ); 43 44endmodule