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/] [byteNegator.v] - Rev 6

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

 
`include "timescale.v"
`include "defines.v"
 
module byteNegator (byteIn, byteN, byteOut);
 
	input [7:0]	byteIn;
	input byteN;
 
	output [7:0] byteOut;
 
	reg [7:0] byteOut;
 
 
	always @ (byteIn or byteN)
	begin
 
		if (byteN)
		begin
			byteOut = ~ byteIn;
		end
		else
		begin
			byteOut = byteIn;
		end
 
	end
 
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.