当前位置:网站首页>VerilogA——动态比较器
VerilogA——动态比较器
2022-06-29 06:32:00 【夏风喃喃】
动态钟控比较器,上升沿触发比较,下降沿复位
// VerilogA for SAR_SS_ADC,ideal_Comparator,veriloga //Auther:Li Yuandong
//Date:2022/5/12
`include"constants.vams"
`include "disciplines.vams"
module ideal_Comparator(VINP,VINN,CLK,VOUTP,VOUTN); input VINP,VINN,CLK;
output VOUTP,VOUTN;
electrical VINP,VINN,CLK,VOUTP,VOUTN;
parameter real vtrans_clk=0.5;
parameter real comp_slope=1000;
parameter real sigin_offset=0;
parameter real trise=0 from[0:inf);
parameter real tfall=0 from [0:inf);
parameter real tdel=0 from [0:inf);
integer m;
integer n;
analog begin
@(cross(V(CLK) -vtrans_clk, +1)) begin
if( V(VINP) >= V(VINN))begin
m=1;
n=0;
end
else begin
m=0;
n=1;
end
end
@(cross(V(CLK) -vtrans_clk, -1)) begin
m=0;
n=0;
end
V( VOUTP ) <+ transition( m?1:0,tdel,trise,tfall);
V( VOUTN ) <+ transition( n ? 1 : 0, tdel, trise, tfall ) ;
end
endmodule
边栏推荐
- Aging design guide for applets
- Linux Installation redis
- Fault: NetBt log for id4321
- 配置Flutter开发环境
- 'only_ full_ group_ The influence of by'sql mode on group by and its treatment
- Fault: KDC warning log for id29
- National Defense University project summary
- Leetcode notes on question brushing (XIV) -- related topics of binary tree attributes in binary tree chapter
- What is the "danksharding" of V God Kop on Valentine's day?
- Honeypot based on MySQL load data local INFILE
猜你喜欢

Design and practice of kubernetes cluster and application monitoring scheme

2022.02.14 - 239. A single element in an ordered array

Illustrate plug-in -- AI plug-in development -- creative plug-in -- astute graphics -- length and angle measurement function

分享 10 个 JS Promise 相关的面试题

Teach you how to develop your own NPM package (publish to the NPM official website)

Design of leetcode simple problem goal parser

Jenkins operation Chapter 5 trigger, configuration webhook, Jenkins parameterized construction

Testing grpc service with grpcui

Two houses with different colors and the farthest distance

Rich material libraries make modeling easy and efficient for developers
随机推荐
Difference between URI and URL
2022.02.14 - 239. A single element in an ordered array
How to change the password after forgetting the MySQL password (the latest version of 2022 detailed tutorial nanny level)
Design and practice of kubernetes cluster and application monitoring scheme
Two houses with different colors and the farthest distance
Leetcode simple problem building arrays with stack operation
多线程工具类 CompletableFuture
Establishing the development environment of esp8266
Fault: display Storport driver out of date in component health
Programming specification and variables of shell script
Alphacode made its debut! The programming version of "Alpha dog" competed quietly and defeated half of the programmers
QT writing map comprehensive application 58 compatible with multi browser kernel
Design of leetcode simple problem goal parser
Use of sed in shell script
Are there too many programmers in China at present?
Illustrate plug-in -- AI plug-in development -- creative plug-in -- astute graphics -- length and angle measurement function
Segment in Lucene
Ribbon 服务调用与负载均衡
It turns out that the joys and sorrows of programmers are not interlinked
What should I learn before learning programming?