4-to-1 Multiplexer: Module Instantiation - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

4-to-1 Multiplexer: Module Instantiation

Description:

Title: Basic Logic Gates Author: Richard Haskell Last modified by: haskell Created Date: 4/21/2000 2:59:18 AM Document presentation format: On-screen Show – PowerPoint PPT presentation

Number of Views:75
Avg rating:3.0/5.0
Slides: 20
Provided by: Richard2033
Category:

less

Transcript and Presenter's Notes

Title: 4-to-1 Multiplexer: Module Instantiation


1
4-to-1 MultiplexerModule Instantiation
  • Discussion D7.2
  • Example 5

2
4-to-1 Multiplexer
  • Module Instantiation
  • Logic Equation for a 4-to-1 MUX

3
2 x 1 MUX
y a s b s
4
4-to-1 Multiplexer
5
Multiplexers
z
s1
s0
c0
0 0 c0 0 1 c1 1 0 c2 1 1 c3
c1
z
c2
c3
s0
s1
A multiplexer is a digital switch
0 0
6
Multiplexers
z
s1
s0
c0
0 0 c0 0 1 c1 1 0 c2 1 1 c3
c1
z
c2
c3
s0
s1
0 1
7
Multiplexers
z
s1
s0
c0
0 0 c0 0 1 c1 1 0 c2 1 1 c3
c1
z
c2
c3
s0
s1
1 0
8
Multiplexers
z
s1
s0
c0
0 0 c0 0 1 c1 1 0 c2 1 1 c3
c1
z
c2
c3
s0
s1
1 1
9
Creating a 4 x 1 MUX from 2 x 1 MUXs
10
// Example 5a 4-to-1 MUX using module
instantiation module mux41 ( input wire 30 c
, input wire 10 s , output wire z ) //
Internal signals wire v // output of mux M1 wire
w // output of mux M2 // Module
instantiations mux21a M1 (.a(c0), .b(c1), .s
(s0), .y(v) ) mux21a M2 (.a(c2), .b(c3),
.s(s0), .y(w) ) mux21a M3 (.a(v), .b(w), .s
(s1), .y(z) ) endmodule
11
// Example 4a 2-to-1 MUX using logic
equations module mux21a ( input wire a , input
wire b , input wire s , output wire y
) assign y s a s b endmodule
mux21a M1 (.a(c0), .b(c1), .s(s0), .y(v)
)
12
// Example 4a 2-to-1 MUX using logic
equations module mux21a ( input wire a , input
wire b , input wire s , output wire y
) assign y s a s b endmodule
mux21a M2 (.a(c2), .b(c3), .s(s0), .y(w)
)
13
// Example 4a 2-to-1 MUX using logic
equations module mux21a ( input wire a , input
wire b , input wire s , output wire y
) assign y s a s b endmodule
mux21a M3 (.a(v), .b(w), .s(s1), .y(z) )
14
mux21a Label1 (.a(a), .b(b), .s(s), .y(y) )
15
Aldec Active-HDL Simulation
16
4-to-1 Multiplexer
  • Module Instantiation
  • Logic Equation for a 4-to-1 MUX

17
2 x 1 MUX
y a s b s
18
v s0 c0 s0 c1 w s0 c2 s0 c3
z s1 v s1 w   z s1 (s0 c0 s0
c1) s1 (s0 c2 s0 c3)
z s1 s0 c0 s1 s0 c1 s1
s0 c2 s1 s0 c3
19
4-to-1 Multiplexer
z s1 s0 c0 s1 s0 c1 s1
s0 c2 s1 s0 c3
Write a Comment
User Comments (0)
About PowerShow.com