mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 04:13:39 +00:00
Merge pull request #150 from azonenberg/master
GreenPak analog comparator support
This commit is contained in:
commit
d086224a39
1 changed files with 13 additions and 0 deletions
|
@ -13,6 +13,19 @@ module GP_4LUT(input IN0, IN1, IN2, IN3, output OUT);
|
||||||
assign OUT = INIT[{IN3, IN2, IN1, IN0}];
|
assign OUT = INIT[{IN3, IN2, IN1, IN0}];
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
module GP_ACMP(input wire PWREN, input wire VIN, input wire VREF, output reg OUT);
|
||||||
|
|
||||||
|
parameter BANDWIDTH = "HIGH";
|
||||||
|
parameter VIN_ATTEN = 1;
|
||||||
|
parameter VIN_ISRC_EN = 0;
|
||||||
|
parameter HYSTERESIS = 0;
|
||||||
|
|
||||||
|
initial OUT = 0;
|
||||||
|
|
||||||
|
//cannot simulate mixed signal IP
|
||||||
|
|
||||||
|
endmodule
|
||||||
|
|
||||||
module GP_BANDGAP(output reg OK, output reg VOUT);
|
module GP_BANDGAP(output reg OK, output reg VOUT);
|
||||||
parameter AUTO_PWRDN = 1;
|
parameter AUTO_PWRDN = 1;
|
||||||
parameter CHOPPER_EN = 1;
|
parameter CHOPPER_EN = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue