Scrap Mechanic

Scrap Mechanic

评价数不足
D Latch
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
8.569 KB
2021 年 9 月 6 日 上午 8:48
1 项改动说明 ( 查看 )

订阅以下载
D Latch

在 Tiny Desk Engineer 的 1 个合集中
Tiny Desk Engineer's Logic Circuit Collection
3 件物品
描述
A simple D Latch

A D Latch is a logic circuit which is very similar to an SR Latch, with the main difference in how it handles input.

While an SR Latch's inputs both set the state separately, a D Latch's inputs consist of a Data signal, and a Store signal.

When the Store signal is 1, the output is the same as the Data signal. When the the Store signal is 0, the output remembers what the Data signal was when the Store signal was turned off.


Bugs:

When the creation is placed on the lift, or sometimes when switching states, the output will start rapidly cycling between 1 and 0 like a repeating clock. For now this can be fixed by using a regular switch for the Store signal instead of a button.

Any help with this problem would be much appreciated.

You can find the SR Latch workshop page here: https://steamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2595159755