OpenCores
URL https://opencores.org/ocsvn/brisc/brisc/trunk

Subversion Repositories brisc

[/] [brisc/] [trunk/] [mux2.v] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 waqqas.jab
module mux2( mux_out, data_0, data_1, select);
2
 
3
        parameter dw = 8;
4
 
5
        input [dw-1:0] data_1, data_0;
6
        input [0:0] select;
7
        output reg [dw-1:0] mux_out;
8
 
9
         // choose between the two inputs
10
        always @ ( data_1 or data_0 or select)
11
        case (select)//  (* synthesis parallel_case *)
12
                1'd0:           mux_out = data_0;
13
                1'd1:           mux_out = data_1;
14
                default:        mux_out = {dw{1'bx}};
15
    endcase
16
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.