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

Subversion Repositories instruction_list_pipelined_processor_with_peripherals

[/] [instruction_list_pipelined_processor_with_peripherals/] [trunk/] [hdl/] [accMUX.v] - Blame information for rev 3

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 maheshpalv
 
2
`include "timescale.v"
3
`include "defines.v"
4
 
5
 
6
module accumulatorMUX (accMuxSel, immData, aluOut, accMuxOut);
7
 
8
        input [`accMuxSelLen-1:0]        accMuxSel;
9
        input [`immDataLen-1:0]          immData;
10
        input   [7:0]    aluOut;
11
 
12
        output [7:0]     accMuxOut;
13
 
14
        reg [7:0]        accMuxOut;
15
 
16
 
17
        always @ *
18
        begin
19
 
20
                case (accMuxSel)
21
 
22
                        `accMuxSel0     :       begin
23
                                                                accMuxOut = immData;
24
                                                                end
25
 
26
                        `accMuxSel1     :       begin
27
                                                                accMuxOut = aluOut;
28
                                                                end
29
 
30
                        default         :       begin
31
                                                                accMuxOut = 8'bzzzzzzzz;
32
                                                                end
33
 
34
                endcase
35
 
36
        end
37
 
38
 
39
endmodule

powered by: WebSVN 2.1.0

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