Igor dos Santos Santana, César Alberto Bravo Pariente
{"title":"虚拟硬件算术和逻辑运算语义模型","authors":"Igor dos Santos Santana, César Alberto Bravo Pariente","doi":"10.5747/ce.2024.v16.e417","DOIUrl":null,"url":null,"abstract":"The objective of this project was to develop a semantic model of arithmetic and logical operations for virtual hardware; this goal was achieved through three main steps: Implement logic gates and arithmetic and logic units in Nand2tetris virtual hardware simulator software; Implement recursive and iterative functions to check the correct functioning of logical and arithmetic operations in the p-code machine virtual machine. In the first stage, implementations of the elementary logic gates were developed in the hardware simulator software Nand2tetris. From these logic gates, combinational circuits and sequential circuits were built as logical and arithmetic unit, Half Adder, Full Adder, 16-bit Addition, 16-bit logical negation, 16-bit logical AND, 16-bit logical OR, among others. The second stage involved experimenting at a high level with arithmetic and logical operations, provided by the virtual machine p-code machine, which was implemented in the C programming language, as addition, subtraction, greater than, less than. In the third stage, having already implemented logical and arithmetic operations, iterative and recursive programs were developed to calculate the nth value of the Fibonacci Sequence and the factorial of any number n.","PeriodicalId":30414,"journal":{"name":"Colloquium Exactarum","volume":"43 16","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-03-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"MODELO SEMÂNTICO DE OPERAÇÕES ARITMÉTICAS E LÓGICAS PARA HARDWARE VIRTUAL\",\"authors\":\"Igor dos Santos Santana, César Alberto Bravo Pariente\",\"doi\":\"10.5747/ce.2024.v16.e417\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The objective of this project was to develop a semantic model of arithmetic and logical operations for virtual hardware; this goal was achieved through three main steps: Implement logic gates and arithmetic and logic units in Nand2tetris virtual hardware simulator software; Implement recursive and iterative functions to check the correct functioning of logical and arithmetic operations in the p-code machine virtual machine. In the first stage, implementations of the elementary logic gates were developed in the hardware simulator software Nand2tetris. From these logic gates, combinational circuits and sequential circuits were built as logical and arithmetic unit, Half Adder, Full Adder, 16-bit Addition, 16-bit logical negation, 16-bit logical AND, 16-bit logical OR, among others. The second stage involved experimenting at a high level with arithmetic and logical operations, provided by the virtual machine p-code machine, which was implemented in the C programming language, as addition, subtraction, greater than, less than. In the third stage, having already implemented logical and arithmetic operations, iterative and recursive programs were developed to calculate the nth value of the Fibonacci Sequence and the factorial of any number n.\",\"PeriodicalId\":30414,\"journal\":{\"name\":\"Colloquium Exactarum\",\"volume\":\"43 16\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-03-18\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Colloquium Exactarum\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.5747/ce.2024.v16.e417\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Colloquium Exactarum","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.5747/ce.2024.v16.e417","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
摘要
该项目的目标是为虚拟硬件开发算术和逻辑运算语义模型;这一目标通过三个主要步骤实现:在 Nand2tetris 虚拟硬件模拟器软件中实现逻辑门、算术和逻辑单元;在 p 代码机虚拟机中实现递归和迭代功能,以检查逻辑和算术运算的正确运行。在第一阶段,在硬件模拟器软件 Nand2tetris 中开发了基本逻辑门的实现。根据这些逻辑门,建立了逻辑和算术单元、半加法器、全加法器、16 位加法、16 位逻辑否定、16 位逻辑 AND、16 位逻辑 OR 等组合电路和顺序电路。第二阶段是对算术和逻辑运算进行高水平的实验,由虚拟机 p-code machine 提供,用 C 编程语言实现加法、减法、大于、小于等运算。在第三阶段,在实现了逻辑和算术运算后,开发了迭代和递归程序,以计算斐波那契数列的 n 次方值和任意数字 n 的阶乘。
MODELO SEMÂNTICO DE OPERAÇÕES ARITMÉTICAS E LÓGICAS PARA HARDWARE VIRTUAL
The objective of this project was to develop a semantic model of arithmetic and logical operations for virtual hardware; this goal was achieved through three main steps: Implement logic gates and arithmetic and logic units in Nand2tetris virtual hardware simulator software; Implement recursive and iterative functions to check the correct functioning of logical and arithmetic operations in the p-code machine virtual machine. In the first stage, implementations of the elementary logic gates were developed in the hardware simulator software Nand2tetris. From these logic gates, combinational circuits and sequential circuits were built as logical and arithmetic unit, Half Adder, Full Adder, 16-bit Addition, 16-bit logical negation, 16-bit logical AND, 16-bit logical OR, among others. The second stage involved experimenting at a high level with arithmetic and logical operations, provided by the virtual machine p-code machine, which was implemented in the C programming language, as addition, subtraction, greater than, less than. In the third stage, having already implemented logical and arithmetic operations, iterative and recursive programs were developed to calculate the nth value of the Fibonacci Sequence and the factorial of any number n.