计算思维下再谈原码设计思想
2015-12-21孙丽
孙丽
摘要:该文按照计算思维过程对原码设计思想进行了阐述,论述了原码为何在计算机组成原理课程中出现,原码能解决哪些运算问题,分别从原码加减法、原码乘除法对原码运算特性进行了讨论。最后总结了原码设计的计算思维过程。
关键词:计算思维;原码;运算器;计算机组成原理;计算机教育
中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2015)28-0077-02
Again Discuss Design idea of the original code on the Computational Thinking
SUN Li
(Chenxian College of Southeast University, Nanjing 210088, China)
Abstract: In accordance with the Computational Thinking process,Design idea of the original code is discussed.Why appear the original code in the computer component principle.The original code can solve what arithmetic problems. Operational characteristics of the original code is related and analyzed from the aspects of addition, subtraction, multiplication and division.The final,Summary the of design idea of the original code.on the Computational Thinking process.
Key words: computational thinking; The original code; ALU; computer component principle; computer education
在《基于计算思维的计算机组成原理课程研究与教学》项目进行中,要围绕计算思维培养的思路选择适用的计算思维教学案例,在运算器设计这一章,我们选取原码作为计算思维教学案例之一。
计算思维是我们在遇到问题时,考虑用计算工具在问题可解的情况下,思考如何运用计算语言描述解决问题的过程。这个思考过程的结果是可在计算工具运行并由计算语言表述的有先后顺序的序列。
计算机组成原理课程全书讲述的核心问题是计算机是怎么设计的,第二章为了解决运算器设计问题,出现了原码。真值转换为机器数表示是运算器设计的第一步,真值转换为机器数不是编码完成即可,而是为用转换后的机器数编码在运算器完成各类运算且能简化运算器设计,真值的定义为带“+”“-”符号的数,机器数的定义是符号数字化的数(特别指二进制数据),那么真值转换为机器数表示,只要把符号数字化、其余位不变化就能最简单地完成机器数编码,我们把这种编码就叫原码,所以在机器数编码设计中原码的优势的是非常明显的,原码应该是最重要的一种编码,那原码把握住这个机会了吗?……
