⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xor2.comp

📁 CNC 的开放码,EMC2 V2.2.8版
💻 COMP
字号:
component xor2 "Two-input XOR (exclusive OR) gate";pin in bit in0;pin in bit in1;pin out bit out """\\\fBout\\fR is computed from the value of \\fBin0\\fR and \\fBin1\\fR accordingto the following rule:.RS.TP\\fBin0=TRUE in1=FALSE\\fR.TQ\\fBin0=FALSE in1=TRUE\\fR\\fBout=TRUE\\fR.TPOtherwise,\\fBout=FALSE\\fR""";function _ nofp;license "GPL";;;FUNCTION(_) {    if (( in0 && !in1 ) || ( in1 && !in0 )) {	out = 1;    } else {	out = 0;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -