+/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 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 ( 24input e , 25input a , 26input b , 27input c , 28output d0 , 29output d1 , 30output d2 , 31output d3 , 32output d4 , 33output d5 , 34output d6 , 35output d7 36); 37wire a_not , b_not , c_not ; 38 39not n0 ( a_not , a ); 40not n1 ( b_not , b ); 41not n2 ( c_not , c ); 42 43and g0 ( d0 , e , a_not , b_not , c_not ); 44and g1 ( d1 , e , a_not , b_not , c ); 45and g2 ( d2 , e , a_not , b , c_not ); 46and g3 ( d3 , e , a_not , b , c ); 47and g4 ( d4 , e , a , b_not , c_not ); 48and g5 ( d5 , e , a , b_not , c ); 49and g6 ( d6 , e , a , b , c_not ); 50and g7 ( d7 , e , a , b , c ); 51endmodule