Added lvds and sampler

This commit is contained in:
Joppe Blondel
2025-10-08 18:01:03 +02:00
parent 324bb108e3
commit 3b04f3a6be
6 changed files with 188 additions and 0 deletions

View 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