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] - Rev 9

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

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

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

powered by: WebSVN 2.1.0

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