Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dev-ritik/calculator
Xilinx college project
https://github.com/dev-ritik/calculator
calculator college-project gui java-applet verilog xilinx
Last synced: 11 days ago
JSON representation
Xilinx college project
- Host: GitHub
- URL: https://github.com/dev-ritik/calculator
- Owner: dev-ritik
- Created: 2018-10-06T04:41:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-12T15:14:48.000Z (over 6 years ago)
- Last Synced: 2024-12-03T11:06:21.245Z (2 months ago)
- Topics: calculator, college-project, gui, java-applet, verilog, xilinx
- Language: C
- Size: 1.12 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# calculator
Xilinx college project**A calculator using Verilog (modular programming in hardware description language or HDL) with GUI.**
![]()
The image on the right indicates the order in which the panels are accessed normally. This is done using a 7 bit vector.
Here 1 denote indicators that are 'off' while 0 denotes their 'on' states.
The verilog code have been designed using Xilinx ISE design suit and simulated in ISim simulator.
There 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:
* [__ALU.v__](https://github.com/dev-ritik/calculator/blob/master/ALU.v)
This 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.* [__ALU_tb.v__](https://github.com/dev-ritik/calculator/blob/master/ALU_tb.v)
This 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.* [__Add.v__](https://github.com/dev-ritik/calculator/blob/master/Add.v)
This is the verilog file which executes all the tasks required by ALU.v file. This consists of 5 tasks:
* Add
* Sub
* Or
* Two’scomp
* Seven Segment Encoder
Apart 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.## Contribution
* [Ritik Kumar](https://github.com/dev-ritik)
* [Prateek Mali](https://github.com/prateekmali)
* [Harshit Maurya](https://github.com/hacksdump)