{"id":17219248,"url":"https://github.com/dev-ritik/calculator","last_synced_at":"2025-03-25T14:41:51.939Z","repository":{"id":69334832,"uuid":"151805476","full_name":"dev-ritik/calculator","owner":"dev-ritik","description":"Xilinx college project","archived":false,"fork":false,"pushed_at":"2018-10-12T15:14:48.000Z","size":1174,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T13:26:02.596Z","etag":null,"topics":["calculator","college-project","gui","java-applet","verilog","xilinx"],"latest_commit_sha":null,"homepage":null,"language":"C","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/dev-ritik.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":"2018-10-06T04:41:56.000Z","updated_at":"2018-10-18T08:08:09.000Z","dependencies_parsed_at":"2023-02-27T04:31:49.429Z","dependency_job_id":null,"html_url":"https://github.com/dev-ritik/calculator","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/dev-ritik%2Fcalculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-ritik%2Fcalculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-ritik%2Fcalculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-ritik%2Fcalculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-ritik","download_url":"https://codeload.github.com/dev-ritik/calculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245484559,"owners_count":20623108,"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":["calculator","college-project","gui","java-applet","verilog","xilinx"],"created_at":"2024-10-15T03:49:28.874Z","updated_at":"2025-03-25T14:41:51.911Z","avatar_url":"https://github.com/dev-ritik.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# calculator\nXilinx college project\n\n**A calculator using Verilog (modular programming in hardware description language or HDL) with GUI.**\n\n\u003cimg src=\"/images/denotation.JPG\" align=\"right\"\u003e\n\u003cimg src=\"/images/sevenSegmentDisplay.gif\" align=\"left\"\u003e\n\nThe image on the right indicates the order in which the panels are accessed normally. This is done using a 7 bit vector.\n\nHere 1 denote indicators that are 'off' while 0 denotes their 'on' states.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\nThe verilog code have been designed using Xilinx ISE design suit and simulated in ISim simulator.\n\n\nThere are 3 main verilog files, which are used to process the input and give the desired output.Along with them, there are files required for executing and rendering the GUI interface. The 3 verilog files are:\n* [__ALU.v__](https://github.com/dev-ritik/calculator/blob/master/ALU.v)\nThis is the central verilog file which receives the user input via a testbench, and the ctrl. It also have a _SevenSegmentEncoder_ task to convert the bcd output to the required 7- segment code. After this the output is returned via an _o_ variable.\n\n* [__ALU_tb.v__](https://github.com/dev-ritik/calculator/blob/master/ALU_tb.v)\nThis is a testbench file which sits on the top of _ALU.v_ file and it receives the user input via an ‘_input.txt_’ file and writes the corresponding output in to the ‘_output.txt_’ file.\n\n* [__Add.v__](https://github.com/dev-ritik/calculator/blob/master/Add.v)\nThis is the verilog file which executes all the tasks required by ALU.v file. This consists of 5 tasks:\n    * Add\n    * Sub\n    * Or\n    * Two’scomp\n    * Seven Segment Encoder\n    \nApart from this [__CalcDemoButtons.java__](https://github.com/dev-ritik/calculator/blob/master/CalcDemoButtons.java) contains the code to render [__Applet.html__](https://github.com/dev-ritik/calculator/blob/master/Applet.html) file which is the GUI part of the project. It takes the user input and converts it into 10 bit OPcode and saves it in '_input.txt_' file. It then takes the processed '_output.txt_' file to render the final output.\n\n## Contribution\n* [Ritik Kumar](https://github.com/dev-ritik)\n* [Prateek Mali](https://github.com/prateekmali)\n* [Harshit Maurya](https://github.com/hacksdump)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-ritik%2Fcalculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-ritik%2Fcalculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-ritik%2Fcalculator/lists"}