introduction of race conditions in RS flip-flops

2023-11-08

原文链接:https://electronics.stackexchange.com/questions/155949/what-is-race-condition-in-flip-flops

A race condition is a timing-related pheonomenon. A standard S-R FF (two cross-coupled NAND or NOR gates) is stable for any stable input.

在这里插入图片描述
The ‘fun’ is in the S=1 R=1 input, the memory situation. The state of the FF depends on which state came before the 11, if it was 01 the FF is in Q=1 state, if it was 10 the FF is in the Q=0 state. This is the classical memory effect of a FF.

But if it was 00 and both inputs changed to 1 suffiently close to each other in time, the FF can enter a metastable state, which can last significantly longer than the delay time of the gates. In this state the outputs can either slowly drift towards their final sate, or show a damped oscillation before settling on the final state. The time required to settle is unbounded, but has a distribution that quickly falls off for t >> gate-delay.

In normal operation, from 00 input, one input becomes 1, and the feedback loop in the flipflop propagates this (or rather, the remaining 0 input) through both gates, until the FF is in a stable state. When the other input also turns 1 while the propagation from the first is still taking place, that also starts to propagate, and it is anyone’s guess which one will win. In some cases neither wins immediatyely, and the FF enters the metastable state.

The race condition is that, from a 00 input state, one input changes to 0, and the second one also changes to 0 before the effect of the first change has setteled. Now the effects of the two changes are ‘racing’ for priority.

The explanation stated is for a simple Set-Reset FF (or latch, or how you want to call it). A level-triggered circuit (I would call that a Latch) can be thought of as a RS-FF with both inputs gated by the enable input (CLK in this diagram):

在这里插入图片描述
In this circuit, a simulatenous 00 -> 11 transition of the hidden ‘inputs’ of the cross-coupled NANDS still causes a race condition. Such a transition can occur (due to the delay caused by the inverter) when the D input changes simultaenously with the CLK input changing from 1 to 0.

A real clocked (edge-triggered) memory circuit can be thought of consisting of two latches, enabled by the opposite clock levels (master-slave arrangement). Obviously the first latch is still susceptible to the same race condition.

在这里插入图片描述

在这里插入图片描述

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

introduction of race conditions in RS flip-flops 的相关文章

随机推荐

  • 如何建立异地容灾备份体系

    GB T22239 2019 信息安全技术 网络安全等级保护基本要求 即等保2 0 已于2019 12 1 正式实施 其中第二级安全通用要求 应提供异地数据备份功能 利用通信网络能将重要数据定时批量传送至备用场地 第四级安全通用要求 应建立
  • Matlab画图 常用功能及属性设置脚本

    一 plot使用脚本 常规设置 1 线型 颜色 宽度 2 legend 字体 字号 位置 3 label 字体 字号 4 title 字体 字号 加粗 5 gca 边框宽度 坐标轴字体 坐标轴范围 网格 x linspace 0 2 pi
  • 万字长文详解特斯拉自动驾驶体系(感知/规控/标注/仿真)

    作者 和君 编辑 禾隐记 点击下方卡片 关注 自动驾驶之心 公众号 ADAS巨卷干货 即可获取 点击进入 自动驾驶之心 全栈算法 技术交流群 汽车革命的上半场是电动化 下半场是智能化 电动化只是改变了汽车的动力供给方式 并没有改变汽车的性质
  • ElasticSearch系列十二:掌握ES使用Java API

    一 Java连接ElasticSearch6 x版本 可整合到spring中
  • 洛谷 P1885 Moo

    P1885 Moo 题目描述 奶牛Bessie最近在学习字符串操作 它用如下的规则逐一的构造出新的字符串 S 0 moo S 1 S 0 m ooo S 0 moo m ooo moo moomooomoo S 2 S 1 m oooo S
  • AcWing 1381. 阶乘

    题目 N 的阶乘 记作 N 是指从 1 到 N 包括 1 和 N 的所有整数的乘积 阶乘运算的结果往往都非常的大 现在 给定数字 N 请你求出 N 的最右边的非零数字是多少 例如 5 1 2 3 4 5 120 所以 5 的最右边的非零数字
  • 安全开发-JS应用&原生开发&JQuery库&Ajax技术&加密编码库&断点调试&逆向分析&元素属性操作

    文章目录 JS原生开发 文件上传 变量 对象 函数 事件 JS导入库开发 登录验证 JQuery库 Ajax技术 JS导入库开发 编码加密 逆向调试 JS原生开发 文件上传 变量 对象 函数 事件 1 布置前端页面 2 JS获取提交数据 3
  • 超详细Hyperledger Fabric2.3.3开发教程

    最近一直在总结Hyperledger Fabric的开发教程 主要包括 1 什么是Hyperledger 区块链 Hyperledger Fabric 01 超级账本介绍 2 Fabric 2 3 3安装教程 区块链 Hyperledger
  • LeetCode 15. 三数之和

    文章目录 1 排序 双指针 2 对上面代码加剪枝 题目链接 https leetcode cn problems 3sum 1 排序 双指针 思路如下 对数组进行排序 枚举第一个数 n u m s i
  • Vue的生命周期

    推荐一些文章 超详细vue生命周期解析 详解 vue生命周期 vue之生命周期 详细 vue生命周期钩子函数详解 Vue生命周期 11个钩子函数
  • 流媒体传输协议详解之---RTSP认证

    Rtsp认证主要分为两种 基本认证 basic authentication 和摘要认证 digest authentication 基本认证是http 1 0提出的认证方案 其消息传输不经过加密转换因此存在严重的安全隐患 摘要认证是htt
  • 刷脸支付大战的气氛弥漫各处

    人工智能 关于移动支付 这些或新或老的名词 再一次随着产品的落地冲入人们的眼前 从外观上看 这台机器不过iPad大小 似乎平平无奇 但实际使用起来却异常轻松 在香港国际机场1号客运大厅Duty Zero免税店里 智东西记者看到 顾客只要把脸
  • 评估计算recall、precision、AP、F1、mAP(PyTorch-YOLOv3代码解析二)

    目标检测评估计算 utils py 代码github地址 https github com eriklindernoren PyTorch YOLOv3 1 检测的评估函数 reference https github com erikli
  • C++ String类编写

    1 h文件 ifndef STR H define STR H include
  • angular-ui-select 支持搜索的 下拉选择框 的使用

    github地址 https github com angular ui ui select 默认支持所有唯一性字段的匹配 可以配置只有一种 通过channelList filter description select search 或者
  • 线性回归模型及K-score归一化方法Python3实现杂文

    Python3 线性回归模型及K score归一化方法实现 前言 本文是博主参考吴恩达的机器学习课程记录的杂文笔记 主要内容是线性回归的代码实现和K score归一化方法的代码实现 以及线性回归的主要公式内容 鉴于博主水平 如有错误 请帮忙
  • 基于CentOS7.6编译Redis6.0.4 ,gcc版本过低出现:make: *** [all] Error 2问题

    一 CentOS7 6 环境编译Redis6 0 4 编译命令 异常 二 问题描述 原因是Linux系统gcc版本过低 yum安装的gcc是4 8 5的 需要升级gcc 如下 yum y install centos release scl
  • Java 简介

    前言 既然要学习一门技术 那么就先来了解下它的历史 我们为什么要使用它 以及我们能用它来干啥 历史背景 1990 年代初 Sun 公司的詹姆斯 高斯林等人为了实现电视机 电话 闹钟等家用电器的控制和通信 开发了一套用于设置在家用电器等小型系
  • C++11新特性大全+使用方法

    前言 C 这门编程语言的历史可以追溯至 1979 年 当时的 Bjarne Stroustrup C 之父 后续简称 Stroustrup 还在使用 Simula 语言进行开发工作 1998 年 C 标准委员会发布了第一版 C 标准 并将其
  • introduction of race conditions in RS flip-flops

    原文链接 https electronics stackexchange com questions 155949 what is race condition in flip flops A race condition is a tim