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/] [bitNegator.v] - Rev 3

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

 
`include "timescale.v"
`include "defines.v"
 
module bitNegator (bitIn, bitN, bitOut);
 
	input bitIn, bitN;
	output bitOut;
 
	reg bitOut;
 
 
	always @ (bitIn or bitN)
	begin
 
		if (bitN)
		begin
			bitOut = ~ bitIn;
		end
		else
		begin
			bitOut = bitIn;
		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.