-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmux_d.v
More file actions
41 lines (37 loc) · 747 Bytes
/
mux_d.v
File metadata and controls
41 lines (37 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 10/22/2022 06:55:37 PM
// Design Name:
// Module Name: mux_d
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module mux_d(Y,F,data_out,MD,mux_d_out
);
input [7:0]Y;
input [7:0]F;
input [7:0]data_out;
input [1:0]MD;
output reg [7:0]mux_d_out;
always@(*)
begin
if(MD==2'b00)
mux_d_out=F;
else if(MD==2'b01)
mux_d_out=data_out;
else if(MD==2'b10)
mux_d_out=Y;
end
endmodule