{"id":19369165,"url":"https://github.com/gsri30/iasmachine","last_synced_at":"2025-02-24T13:44:09.216Z","repository":{"id":69934544,"uuid":"317764035","full_name":"GSri30/IASmachine","owner":"GSri30","description":"Simple Implementation of a basic IAS machine in java (includes a sample input)","archived":false,"fork":false,"pushed_at":"2020-12-06T11:52:53.000Z","size":218,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-06T22:52:59.557Z","etag":null,"topics":["alu","basic-computer","bitset","ias-machine","java","memory","program-control-unit"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GSri30.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-02T05:52:45.000Z","updated_at":"2020-12-25T02:06:39.000Z","dependencies_parsed_at":"2023-03-11T07:35:38.858Z","dependency_job_id":null,"html_url":"https://github.com/GSri30/IASmachine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GSri30%2FIASmachine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GSri30%2FIASmachine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GSri30%2FIASmachine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GSri30%2FIASmachine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GSri30","download_url":"https://codeload.github.com/GSri30/IASmachine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240491826,"owners_count":19809977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alu","basic-computer","bitset","ias-machine","java","memory","program-control-unit"],"created_at":"2024-11-10T08:09:54.479Z","updated_at":"2025-02-24T13:44:09.211Z","avatar_url":"https://github.com/GSri30.png","language":"Java","readme":"\u003ch1 align=\"center\"\u003eWelcome to IASmachine 👋\u003c/h1\u003e\n\u003cp\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-1.0-blue.svg?cacheSeconds=2592000\" /\u003e\n  \u003ca href=\"https://twitter.com/SriHarshaG6\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Twitter: SriHarshaG6\" src=\"https://img.shields.io/twitter/follow/SriHarshaG6.svg?style=social\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### The implementation has the following structure:\n\nIASMachine  \n    \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-ALU  \n    \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-Memory  \n    \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-ProgramControlUnit  \n\nwhere the bits are handled by \"BitsArray\" (Uses strings to implement)\\ \nIt also has various methods to get certain range of bits, get the bits representaion padded with zeros in front etc.\\\nOther than the above mentioned 4 files, I have a main file, which takes in the input of assembly code from a text file(\"input.txt\" is given as an example).\\\n\"Colors\" file is used to implement the colors on the bash. (during the execution).\\\nA few screenshots have also been included in the \"screenshots\" repository\n\n\nALU\\\n    \u0026nbsp;\u0026nbsp;-Containes few registers (MBR, AC, MQ)\\\n    \u0026nbsp;\u0026nbsp;-Containes various bit manipulations and arithematic operations. It has methods to compute\\\n        \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-Negative number(in binary) form of a given binary\\\n        \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-Mod of a binary\\\n        \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-addition\\\n        \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-subtraction\\\n        \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-multiplication\\\n        \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-division\\\n        \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-Left shift\\\n        \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-Right shift\\\n    \u0026nbsp;\u0026nbsp;-This class is used to handle all the arithematic operations.\n\n\nMemory\\\n    \u0026nbsp;\u0026nbsp;-Has method to create a main Memory\\\n    \u0026nbsp;\u0026nbsp;-Each word is fixed as 40bits and is implemented using \"BitsArray\" data structure.(implemented seperately)\\\n    \u0026nbsp;\u0026nbsp;-Creates a 2D matrix of bits (or array of \"BitsArray\")\n\n\nProgramControlUnit\\\n    \u0026nbsp;\u0026nbsp;-It takes in ALU and Memory\\\n    \u0026nbsp;\u0026nbsp;-It has two sub classes\\\n        \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-registers (PC,MAR,IR,IBR)\\\n        \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;-ISA (Has a hashmap of opcodes and their definitions) (Which are used to decode instructions)\\\n           \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; (HALT is assigned with \"000000000000\" as its opcode)\\\n   \u0026nbsp;\u0026nbsp;-Has methods to fetch and decode the instructions from the main Memory\n\n\nIASMachine\\\n    \u0026nbsp;\u0026nbsp;-Unites all the above classes to constitue an IAS computer\\\n    \u0026nbsp;\u0026nbsp;-Has method to execute it. (Fetch and decode till halt (or any error occurs))\n\n## Usage\n\n```sh\njavac *.java\njava IMT2019030_MAIN\n```\n\n## Author\n\n👤 **Sri Harsha G**\n\n* Website: https://gsri30.github.io/\n* Twitter: [@SriHarshaG6](https://twitter.com/SriHarshaG6)\n* Github: [@GSri30](https://github.com/GSri30)\n* LinkedIn: [@https:\\/\\/www.linkedin.com\\/in\\/sri-harsha-g-15534a18a](https://linkedin.com/in/https:\\/\\/www.linkedin.com\\/in\\/sri-harsha-g-15534a18a)\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsri30%2Fiasmachine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsri30%2Fiasmachine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsri30%2Fiasmachine/lists"}