Added missing signal modules
This commit is contained in:
26
cores/primitive/lvds_comparator/lvds_comparator.core
Normal file
26
cores/primitive/lvds_comparator/lvds_comparator.core
Normal file
@@ -0,0 +1,26 @@
|
||||
CAPI=2:
|
||||
|
||||
name: joppeb:primitive:lvds_comparator:1.0
|
||||
description: LVDS comparator wrapper
|
||||
|
||||
filesets:
|
||||
wrapper:
|
||||
files:
|
||||
- lvds_comparator.v
|
||||
file_type: verilogSource
|
||||
generic:
|
||||
files:
|
||||
- lvds_comparator_generic_impl.v
|
||||
file_type: verilogSource
|
||||
spartan6:
|
||||
files:
|
||||
- lvds_comparator_spartan6.v
|
||||
file_type: verilogSource
|
||||
|
||||
targets:
|
||||
default:
|
||||
filesets:
|
||||
- wrapper
|
||||
- generic
|
||||
- spartan6
|
||||
toplevel: lvds_comparator
|
||||
19
cores/primitive/lvds_comparator/lvds_comparator.v
Normal file
19
cores/primitive/lvds_comparator/lvds_comparator.v
Normal file
@@ -0,0 +1,19 @@
|
||||
module lvds_comparator(
|
||||
input wire a,
|
||||
input wire b,
|
||||
output wire o
|
||||
);
|
||||
`ifdef FPGA_SPARTAN6
|
||||
lvds_comparator_spartan6_impl impl_i (
|
||||
.a(a),
|
||||
.b(b),
|
||||
.o(o)
|
||||
);
|
||||
`else
|
||||
lvds_comparator_generic_impl impl_i (
|
||||
.a(a),
|
||||
.b(b),
|
||||
.o(o)
|
||||
);
|
||||
`endif
|
||||
endmodule
|
||||
@@ -0,0 +1,7 @@
|
||||
module lvds_comparator_generic_impl (
|
||||
input wire a,
|
||||
input wire b,
|
||||
output wire o
|
||||
);
|
||||
assign o = a;
|
||||
endmodule
|
||||
14
cores/primitive/lvds_comparator/lvds_comparator_spartan6.v
Normal file
14
cores/primitive/lvds_comparator/lvds_comparator_spartan6.v
Normal file
@@ -0,0 +1,14 @@
|
||||
module lvds_comparator_spartan6_impl (
|
||||
input wire a,
|
||||
input wire b,
|
||||
output wire o
|
||||
);
|
||||
IBUFDS #(
|
||||
.DIFF_TERM("FALSE"),
|
||||
.IOSTANDARD("LVDS33")
|
||||
) lvds_buf (
|
||||
.O(o),
|
||||
.I(a),
|
||||
.IB(b)
|
||||
);
|
||||
endmodule
|
||||
Reference in New Issue
Block a user