Added lvds and sampler
This commit is contained in:
23
rtl/core/sigmadelta_sampler.v
Normal file
23
rtl/core/sigmadelta_sampler.v
Normal file
@@ -0,0 +1,23 @@
|
||||
`timescale 1ns/1ps
|
||||
|
||||
// =============================================================================
|
||||
// Sigma-Delta sampler
|
||||
// Samples A>B at clk
|
||||
// =============================================================================
|
||||
module sigmadelta_sampler(
|
||||
input wire clk,
|
||||
input wire a,
|
||||
input wire b,
|
||||
output wire o
|
||||
);
|
||||
|
||||
wire comp_out;
|
||||
lvds_comparator comp (
|
||||
.a(a), .b(b), .o(comp_out)
|
||||
);
|
||||
|
||||
reg registered_comp_out;
|
||||
always @(posedge clk) registered_comp_out <= o;
|
||||
assign o = registered_comp_out;
|
||||
|
||||
endmodule
|
||||
Reference in New Issue
Block a user