From 0df4b801a34697f2058b4a7b95e08d2a0576c9db Mon Sep 17 00:00:00 2001 From: Ben Hilburn Date: Thu, 10 Oct 2013 10:17:27 -0700 Subject: Squashed B200 FPGA Source. Code from Josh Blum, Ian Buckley, and Matt Ettus. --- fpga/usrp3/lib/control/por_gen.v | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 fpga/usrp3/lib/control/por_gen.v (limited to 'fpga/usrp3/lib/control/por_gen.v') diff --git a/fpga/usrp3/lib/control/por_gen.v b/fpga/usrp3/lib/control/por_gen.v new file mode 100644 index 000000000..0e4fcd88a --- /dev/null +++ b/fpga/usrp3/lib/control/por_gen.v @@ -0,0 +1,25 @@ +// +// Copyright 2013 Ettus Research LLC +// + + + +module por_gen + (input clk, + output reset_out); + + reg por_rst; + reg [7:0] por_counter = 8'h0; + + always @(posedge clk) + if (por_counter != 8'h55) + begin + por_counter <= por_counter + 8'h1; + por_rst <= 1'b1; + end + else + por_rst <= 1'b0; + + assign reset_out = por_rst; + +endmodule // por_gen -- cgit v1.2.3