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/] [controlUnit.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 controlUnit (clk, reset, instOpCodeIn, acc0, iomemCode,
7
                                                        branch,
8
                                                        accMuxSel, accEn, op2MuxSel, aluOpcode,
9
                                                        bitRamEn, bitRamRw, byteRamEn, byteRamRw,
10
                                                        inputRead, outputRw
11
 
12
                                                        `ifdef timerAndCounter_peripheral
13
                                                                , entypeEn, tcAccRead, tcResetEn, tcPresetEn, tcLoadEn
14
                                                        `endif
15
 
16
                                                        `ifdef UART_peripheral
17
                                                                , uartRead, uartWrite
18
                                                        `endif
19
 
20
                                                        `ifdef SPI_peripheral
21
                                                                , sconEn, spiStatRead, spiBufRead, spiBufWrite, spiBufShift
22
                                                        `endif
23
 
24
                                                        );
25
 
26
 
27
        input clk, reset;
28
        input [`instOpCodeLen-1:0] instOpCode;
29
        input acc0;
30
        input [1:0] iomemCode;
31
 
32
        output branch;
33
        output [`accMuxSelLen-1:0]       accMuxSel;
34
        output accEn;
35
        output [`op2MuxSelLen-1:0]       op2MuxSel;
36
        output [`aluOpcodeLen-1:0] aluOpcode;
37
        output bitRamEn, bitRamRw, byteRamEn, byteRamRw;
38
        output inputRead, outputRw;
39
 
40
        `ifdef timerAndCounter_peripheral
41
        output entypeEn, tcAccRead, tcResetEn, tcPresetEn, tcLoadEn;
42
        `endif;
43
 
44
        `ifdef UART_peripheral
45
        output uartRead, uartWrite;
46
        `endif
47
 
48
        `ifdef SPI_peripheral
49
        output sconEn, spiStatRead, spiBufRead, spiBufWrite, spiBufShift;
50
        `endif
51
 
52
 
53
 
54
 
55
endmodule

powered by: WebSVN 2.1.0

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