//############################################################################# //# Function: Buffer # //############################################################################# //# Author: Andreas Olofsson # //# License: MIT (see LICENSE file in OH! repository) # //############################################################################# module oh_buffer #(parameter N = 1, // vector width parameter SYN = "TRUE", // synthesize buffer parameter TYPE = "DEFAULT") // buffer type ( input [N-1:0] in, // input output [N-1:0] out // output ); generate if(SYN == "TRUE") begin assign out[N-1:0] = in[N-1:0]; end else begin genvar i; for (i=0;i