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

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 3 Rev 8
 
 
`include "timescale.v"
`include "timescale.v"
`include "defines.v"
`include "defines.v"
 
 
 
 
module accumulator (accIn, accEn, accOut);
module accumulator (accIn, accEn, accOut);
 
 
        input [7:0] accIn;
        input [7:0] accIn;
        input accEn;
        input accEn;
 
 
        output [7:0] accOut;
        output [7:0] accOut;
 
 
        reg [7:0] accOut;
        reg [7:0] accOut;
 
 
        always @ (accIn, accEn)
        always @ (accIn, accEn)
        begin
        begin
                if (accEn)
                if (accEn)
                begin
                begin
                        accOut = accIn;
                        accOut = accIn;
                        $write (" %b    data written to accumulator     :       module accumulator      ", accIn);
                        $write ("\n%b   data written to accumulator     :       module accumulator      ", accIn);
                end
                end
                else
                else
                begin
                begin
                        accOut = accOut;
                        accOut = accOut;
                end
                end
        end     // end always
        end     // end always
 
 
 
 
endmodule
endmodule
 
 

powered by: WebSVN 2.1.0

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