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/] [pgmCounter.v] - Diff between revs 3 and 7

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 3 Rev 7
Line 4... Line 4...
 
 
 
 
module pgmCounter (clk, reset, branch, pcIn, pcOut);
module pgmCounter (clk, reset, branch, pcIn, pcOut);
 
 
        input clk, reset, branch;
        input clk, reset, branch;
        input [`instLen-1:0] pcIn;
        input [`instAddrLen-1:0] pcIn;
 
 
        output [`instLen-1:0] pcOut;
        output [`instAddrLen-1:0] pcOut;
 
 
        reg [`instLen-1:0] pc = `instLen'b0;
        reg [`instAddrLen-1:0] pc = `instAddrLen'b0;
 
 
        always @ (posedge clk or posedge reset)
        always @ (posedge clk or posedge reset)
        begin
        begin
 
 
                if (reset)
                if (reset)
                begin
                begin
                        pc = `instLen'b0;
                        pc = `instAddrLen'b0;
                        $write ("       program counter module is reset. Starting at address 00h        ");
                        $write ("       program counter module is reset. Starting at address 00h        ");
                end
                end
 
 
                else
                else
                begin
                begin

powered by: WebSVN 2.1.0

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