梦见下大雨是什么意思| 披萨用什么面粉| 血沉高是什么原因引起的| 梦见栽花是什么意思| 什么水果最老实| 番茄什么时候种植| 7月9日是什么星座| 知了在树上干什么| 灰色是什么颜色调出来的| 总是打嗝是什么原因引起的| 主动脉硬化吃什么药好| 青蒜是什么| 人参什么时候吃最好| 秃鹫是什么动物| 江米和糯米有什么区别| 6.29什么星座| 吃什么对大脑记忆力好| 女性腰酸是什么原因引起的| 吃软不吃硬是什么生肖| 苯磺酸氨氯地平片是什么药| 吃什么有助于消化| 10月26日什么星座| 元宵节送什么| 有胃病的人吃什么最养胃| 哺乳期可以喝什么饮料| 猫鼻支是什么症状| 牛标志的车是什么牌子| 为什么做b超要憋尿| 梦见被警察抓预示什么| 黄埔军校现在是什么学校| 大姨妈有黑色血块是什么原因| 蚊子喜欢什么血型的人| 熔炉是什么意思| etf是什么意思| 吃什么清肺效果最好| 反清复明的组织叫什么| 火龙果有什么营养| 做孕检都检查什么项目| 良代表什么生肖| 兑卦代表什么| 10月1是什么星座| 日入是什么时辰| 刑警是干什么的| 什么是唐氏儿| 颈椎不舒服挂什么科| 瘿瘤是什么病| 女人自尊心强说明什么| 什么然起什么| 五大仙家什么仙最厉害| 萎缩性胃炎是什么症状| 因地制宜是什么意思| 大肠杆菌属于什么菌| 发烧是什么症状| 妗子是什么意思| hvi是什么病| 无人区是什么意思| 买什么样的老花镜好| 医生为什么用肥皂洗手| 璠字取名寓意什么| 尿酸高有什么症状表现| 尪痹是什么意思| 人工流产后可以吃什么| 秋老虎是什么意思| 孩子满月送什么礼物| 酒糟鼻子是什么原因引起的| 眼睛看东西变形扭曲是什么原因| 早上起床胃疼是什么原因| 超管是什么| 巨蟹座是什么象星座| 热得直什么| 刮痧是什么原理| 五月二十五是什么星座| 鹞是什么意思| msi是什么意思| 陶弘景有什么之称| 九月初四是什么星座| tp是什么| 粗糙的什么| 不知不觉是什么意思| 黄皮果是什么水果| 心肌酶高吃什么药| 刘禹锡是什么朝代的| 银杏树叶子像什么| 流莺是什么意思| 脾胃虚弱吃什么食物好| 离婚需要带什么证件| 腰痛贴什么膏药最好| 精液为什么是苦的| 消化不良反酸吃什么药| 儿童口臭什么原因引起的| 孩子不长个子是什么原因| bic是什么意思| 阴道炎有些什么症状| 什么样的人不容易怀孕| 尿黄是因为什么| 养阴生津是什么意思| 睡觉磨牙是什么原因引起的| 干咳嗽是什么原因| 4.24是什么星座| 狼吞虎咽是什么生肖| 脱发是什么原因引起的| 尿酸高平时要注意什么| 什么主食含糖量低| 潮吹是什么意思| 女生喜欢什么礼物| 肾阳虚吃什么中药| 山药有什么营养| 点了痣要注意什么| 标准的青色是什么颜色| 磕是什么意思| 中暑了吃什么药| 假牙什么材质的最好| 电焊打眼最有效最快的方法是什么| 吃竹笋有什么好处和坏处| 共济会是什么组织| 聚精会神的看是什么词语| 钾高吃什么可以降下来| 蜂王浆什么味道| 老睡不着觉是什么原因| 脸上长痘痘用什么药膏效果好| 螃蟹不能和什么水果一起吃| 频发室性早搏吃什么药| 舌苔发白厚吃什么药| 定增股票是什么意思| 6月24号什么星座| 无机磷偏低有什么影响| 为什么摩羯女颜值都高| 肾穿刺是什么意思| 什么是血癌| 霸王别姬是什么菜| 兴旺的反义词是什么| up主是什么意思| 春晓的晓是什么意思| lee属于什么档次| 为什么不结婚| 黄连泡水喝能治什么病| 知进退明得失什么意思| 肠腺瘤是什么病| 乙酰氨基葡萄糖苷酶阳性什么意思| 血糖高一日三餐吃什么东西最适合| 孕妇梦见下雨是什么意思| 硬度不够吃什么中成药| 看扁桃体挂什么科| 什么食物维生素b含量高| 肾阳虚的表现是什么| 一物降一物指什么生肖| 朱是什么颜色| 白细胞低吃什么药| 早上五六点是什么时辰| 刘邦是什么星座| 什么叫贫血| 慢性宫颈炎用什么药| 端午节是什么星座| 楞头青是什么意思| 生吃胡萝卜有什么好处和坏处| 枣什么时候成熟| 蒙昧是什么意思| 金字旁的字有什么| 参加白事回来注意什么| 劳动法什么时候实施的| 痰多吃什么好化痰| 五个月宝宝吃什么辅食最好| 小孩手上脱皮是什么原因| 马上好药膏主治什么| 病毒性感染是什么原因| 脚气是什么样的图片| 肚脐眼痒是什么原因| 排骨汤里放什么食材好| 白袜子是什么意思| 高血糖挂什么科室的号| 胃胀气吃什么药| 邪不压正什么意思| 双肺纹理增多增粗是什么病| 逍遥丸是治什么的| 痱子长什么样| 4月29号是什么星座| 虫毛读什么| 1990属什么生肖| 甲状腺囊实性结节是什么意思| 肩周炎是什么原因造成的| 什么牌助听器好| 善茬是什么意思| 葛根长什么样子图片| 不二人选是什么意思| 中医心脉受损什么意思| 狗被蜱虫咬了有什么症状| 什么是复句| 可见一斑是什么意思| 肝脏低密度灶什么意思| 高危性行为是什么意思| 地黄长什么样| 健脾养胃喝什么好| 女人腰酸背痛是什么病| 什么叫质子| 骑驴找马什么意思| 子宫肌瘤挂什么科室| 什么网站| 吃炒黄豆有什么好处和坏处| ua是什么牌子| 腰椎退行性变是什么病| 青蛙怕什么| 谷雨是什么时候| 纹眉需要注意什么| 女儿是小棉袄儿子是什么| 枸杞搭配什么喝最好| 小腿经常抽筋是什么原因| 什么让我成长| 口巴读什么| 脸上长斑的原因是什么引起的| 白炽灯是什么灯| 多囊卵巢是什么| 大战三百回合是什么意思| lane是什么意思| 娇滴滴是什么意思| 忽然流鼻血是什么原因引起的| 乌龙是什么意思| 手脚浮肿是什么原因| 葛根粉有什么作用| 喝竹叶水有什么好处| 三班倒是什么意思| 夏天用什么带饭不馊| 好逸恶劳什么意思| 新生的什么| 过继是什么意思| 怀孕了吃什么药可以打掉| 维生素e有什么功效| 什么是意象| 亲子鉴定挂什么科| 腰椎疼挂什么科| 玄关挂什么装饰画好| 护理专业是做什么的| 豆薯是什么| 什么鱼吃玉米| 结婚55周年是什么婚| 颈动脉斑块挂什么科| 30如狼40如虎是什么意思| 股骨径是指胎儿什么| 小麦粉可以做什么| 烟酰胺有什么用| 睑缘炎用什么药| 低血压吃什么食物| 盐酸西替利嗪片主治什么| 洗葡萄用什么洗最干净| 小囊性灶是什么意思| 心口疼是什么原因引起的| 什么是顺时针| 破壁是什么意思| 气血虚吃什么| 做爱为什么那么舒服| 骨髓穿刺是检查什么病| hpv59阳性是什么意思| 婆什么起舞| 左边小腹疼是什么原因| 口苦口干吃什么药最好| 溘然是什么意思| 什么是玄关在哪个位置| 90年属什么| 肉炒什么菜谱大全| 贵妃是什么意思| 别墅是什么意思| 遐想的意思是什么| 西铁城是什么档次的表| 什么是肝性脑病| 缺钙会导致什么| 百度

A MC14500 modification


Since we're at it, we could start thinking about how to modify
the data path of the MC14500 design to run arithmetic.

I'm leaving out a few little details, like the XOR gate
needed to store the complement of RR to memory,
and the fact that not all instructions do modify
the Result Register (RR) and the Carry Flag (C).


We still have the Logic Unit (LU) from the MC14500,
but in order to build a full adder,
we have to send the output of the LU and the Carry Flag
through an XOR gate before writing the result into RR.

For logic instructions (and for some of the arithmetic instructions),
it's necessary to keep the Carry input at the XOR 0,
so we have to insert an AND gate.
Some of the arithmetic instructions might want to have the C Flag set,
like when processing the first Bit for a subtraction,
so we insert an OR gate into the output of the Carry Flag.


Like with our other ALU examples, the LU emits the propagate (P) signal,
which routes the Carry Flag from the previous Bit to the Carry of the next
Bit, when P is active.

For RR + mem, the LU is configurated as XOR.

For RR - mem, we calculate RR + /mem.
Inverting one input of a XOR gate is the same as inverting the output,
so the LU is configurated as XNOR when calculating RR - mem.


Another thing is, that we need a generate (G) signal, that generates
a Carry for the next Bit when
RR = 1 and mem = 1 for RR + mem,
RR = 1 and mem = 0 for RR - mem.

For some of the arithmetic instructions you might want to add 0 or 1 to RR.
Fortunately we already have the DIN Flag,
which is ANDed with the Bit from memory.

For loading a copy from the Carry Flag into the Result Register,
set the LU output to 0, and enable the Carry to pass through
the XOR into RR.

For loading a copy of RR into the Carry Flag, set the LU output to 0
and activate both AND gates for RR + mem, RR - mem...
so that RR is passed through, while the Bit from memory is ignored.


Of course, the processor would need to have more than 16 instructions,
and the instruction word wouldn't fit into 4 Bit anymore.


Another question is, if we should support indirect addressing.
For instance, we could have three counters, that work as
"file select registers" (or pointers),
like in the PIC18F family of microcontrollers. Let's imagine, our "programmable logic controller" has timers,
which are loaded with the "Flag 0" instruction.

 15   11 8 7      0
 ------------------
|0000|Tttt|########|
 ------------------

An instruction word like that loads an 8 Bit literal value
into a timer (hey, it's just an example).
Except when Bit 11 is 0. Depending on Bit 8, the value
is loaded into the high or low Byte of a pointer,
which is selected by Bit 9 and Bit 10.
It's easy.

We might want to have the 16 Bits for all the counters
mapped into memory to be able to do some address calculation.
For instance:
0x10..0x1F = Pointer 1.
0x20..0x2F = Pointer 2.
0x30..0x3F = Pointer 3.

A memory read/write at 0x04..0x07 would read/write the
memory Bit selected by Pointer 1, for 0x08..0x0B it's Pointer 2,
0x0C..0x0F it's Pointer 3.

You sure noticed, that I'm suggesting to reserve 4 Bits per Pointer.
That's because we could tie the control signals for the counters/Pointers
to the address lines A0 and A1, to trigger things like
postincrement/predecrement.

The only thing we need is a "LOOP" instruction,
to run a set of instructions like

LD  [A]+
ADC [B]+
STO [Q]+
8 times when adding two Bytes in memory.

Maybe tied to "Flag 0" again...

The disadvantage of such a design is, that it might require
more transistors, logic gates, flipflops, whatever...
than just building a minimalistic 16 Bit CPU.


...do we really need

LD  A
SBC B
STO Q
Or could we replace that with
LDC B
ADC A
STO Q

Hmm...


[HOME] [UP]/ [BACK] [1] [2] [3] [4] [5] [6] [7] [8] [NEXT]

(c) Dieter Mueller 2008
毛脚女婿是什么意思 宫腔积液是什么 铁棍山药和普通山药有什么区别 淡墨是什么意思 止汗药什么最好
梦见自己升职了是什么预兆 四海扬名是什么生肖 梦见杀人是什么意思 dha中文叫什么 支气管炎能吃什么水果
射精是什么感觉 结甲是什么病 补血吃什么药最快最好 腰痛挂什么科 舌头上有黑点是什么原因
早上打喷嚏是什么预兆 手指头抽筋是什么原因 pvr是什么意思 移植后屁多是什么原因 禾真念什么
身上没长什么就是干痒hcv7jop6ns2r.cn 绞股蓝和什么搭配喝减肥hcv8jop1ns4r.cn 胃烧心吃什么食物好hcv9jop5ns3r.cn 查染色体的目的是什么hcv7jop7ns4r.cn 天然气是什么味道hcv8jop2ns5r.cn
华盖什么意思hcv9jop6ns5r.cn 气血亏吃什么补的快hcv7jop6ns6r.cn 鲫鱼不能和什么一起吃onlinewuye.com 电灯泡什么意思1949doufunao.com 马桶对着卫生间门有什么不好hcv9jop2ns8r.cn
广基息肉是什么意思hcv7jop9ns8r.cn 烟雾病是什么hcv9jop2ns9r.cn 月经喝什么比较好hcv8jop0ns0r.cn 吃葡萄皮有什么好处huizhijixie.com 血糖高的人吃什么水果好hcv8jop9ns0r.cn
梦见笑是什么意思hcv7jop6ns2r.cn 排卵期在什么时候hcv8jop5ns1r.cn 胸椎退行性变什么意思hcv9jop0ns2r.cn 肠胃痉挛吃什么药hcv7jop7ns3r.cn 水瓶座和什么座最配hcv8jop9ns4r.cn
百度