当前位置:网站首页>VerilogA - dynamic comparator
VerilogA - dynamic comparator
2022-06-29 06:49:00 【Summer wind murmurs】
Dynamic clock controlled comparator , The rising edge triggers a comparison , Falling edge reset
// 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
边栏推荐
- How to combine two byte arrays [repeat] - how to combine two byte arrays [duplicate]
- Rich material libraries make modeling easy and efficient for developers
- Why should enterprises do more application activities?
- Hyperledger Fabric 2. X custom smart contract
- Case of single file component files
- Activiti Designer
- Labor skills courses integrated into steam Education
- Fault: ntfrs warning log for id13562
- Small program large screen adaptation Guide
- Pointer from beginner to advanced (2)
猜你喜欢

Browser local storage

Small program large screen adaptation Guide

MySQL add / delete / modify query SQL statement exercise yyds dry goods inventory

Test Development - ten years of sharpening one sword (VII) interface test tool postman

It is the only one in China that Alibaba cloud container service has entered the Forrester leader quadrant

Rich material libraries make modeling easy and efficient for developers

Rearrangement string of leetcode simple question

Hyperledger Fabric 2. X custom smart contract

What are the uses of wireless pressure collectors?

Two houses with different colors and the farthest distance
随机推荐
[MySQL technology topic] technical analysis and guide for analyzing the high availability architecture of MySQL
flutter配置国内镜像,连接真机
Why should enterprises do more application activities?
Yyds dry goods inventory meituan's two-sided experience, and finally there was a surprise?
The echares map is implemented separately by provinces, and the tooltip user-defined prompt box, scattered annotation and scattered illumination are explained in detail
2022.02.14
UVM验证平台
Two houses with different colors and the farthest distance
Share 10 interview questions related to JS promise
Is there any difference between a=a+b and a+=b?
目标检测——使用yolov6进行视频推理
MySQL add / delete / modify query SQL statement exercise yyds dry goods inventory
Fresnel diffraction with rectangular aperture based on MATLAB
I would like to ask what securities dealers recommend? Is it safe to open an account online?
Client and server working modes of JVM
Ribbon 服务调用与负载均衡
Baidu applet automatically submits search
Easy to understand TCP four waves (multi picture explanation)
Where is the Gcov symbol- Where are the gcov symbols?
层次分析法