OpenCores
URL https://opencores.org/ocsvn/fpga-cf/fpga-cf/trunk

Subversion Repositories fpga-cf

[/] [fpga-cf/] [trunk/] [hdl/] [PATLPP/] [shiftr/] [gensrl.v] - Rev 13

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

// Generic SRL 16 for use with V4/V5/?V6
 
module gensrl (
	input CLK,
	input D,
	input CE,
	input [3:0] A,
	output Q
);
 
reg [15:0] data;
assign Q = data[A];
 
always @(posedge CLK)
begin
	if (CE == 1'b1)
		data <= {data[14:0], D};
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.