OpenCores
URL https://opencores.org/ocsvn/linkruncca/linkruncca/trunk

Subversion Repositories linkruncca

[/] [linkruncca/] [trunk/] [src/] [row_buf.v] - Rev 2

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

module row_buf(clk,datavalid,pix_in,pix_out1,pix_out2);
parameter length=640;
 
input clk,datavalid,pix_in;
output pix_out1,pix_out2;
 
reg [length-1:0] R;
//reg R[0:length-1];
 
always@(posedge clk)begin
	if(datavalid)begin
		R[length-1:1]<=R[length-2:0];
		R[0]<=pix_in;
	end
end
assign pix_out1=R[length-1];
assign pix_out2=R[length-2];
 
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.