aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-04-01 02:26:19 +0000
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-04-01 02:26:19 +0000
commit5349f9e670f53e243829c88e16b9bc7aaf4aa63f (patch)
tree77d33dde4499f63de14d640f8f6bc123f5fdcf86
parent51537982b07107419964447cf212e0c0501c4311 (diff)
downloaduhd-5349f9e670f53e243829c88e16b9bc7aaf4aa63f.tar.gz
uhd-5349f9e670f53e243829c88e16b9bc7aaf4aa63f.tar.bz2
uhd-5349f9e670f53e243829c88e16b9bc7aaf4aa63f.zip
variable length delay line, based on srl16
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10729 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r--simple_gemac/delay_line.v21
1 files changed, 21 insertions, 0 deletions
diff --git a/simple_gemac/delay_line.v b/simple_gemac/delay_line.v
new file mode 100644
index 000000000..3d76c4928
--- /dev/null
+++ b/simple_gemac/delay_line.v
@@ -0,0 +1,21 @@
+
+
+module delay_line
+ #(parameter WIDTH=32)
+ (input clk,
+ input [3:0] delay,
+ input [WIDTH-1:0] din,
+ output [WIDTH-1:0] dout);
+
+ integer i;
+ generate
+ for (i=0;i<WIDTH;i=i+1)
+ begin : gen_delay
+ SRL16E
+ srl16e(.Q(dout[i]),
+ .A0(delay[0]),.A1(delay[1]),.A2(delay[2]),.A3(delay[3]),
+ .CE(1),.CLK(clk),.D(din[i]));
+ end
+ endgenerate
+
+endmodule // delay_line