Skip to content

Implementation of a 4 bit alu#42

Open
Sarahanyan wants to merge 26 commits into
Muriukidavid:masterfrom
Sarahanyan:master
Open

Implementation of a 4 bit alu#42
Sarahanyan wants to merge 26 commits into
Muriukidavid:masterfrom
Sarahanyan:master

Conversation

@Sarahanyan

Copy link
Copy Markdown

A four bit alu that performs several different functions was designed together with a stimulus and monitor

Sarahanyan and others added 26 commits June 1, 2018 21:36
…ecoder1by2 .h and .c files were renamed to decoder2by4 .h and .c respectively
The decoder1by2 folder was copy pasted and renamed decoder2by4. The decoder1by2 .h and .c files were renamed to decoder2by4 .h and .c respectively
The decoder2by4.h file was edited to have two inputs and 4 outputs. An extra output was added to the driver and the monitor got six ports connected to all the signals going into and out of the decoder
The decoder2by4.h file was edited to consist of two decoders connected to the inputs of the 2by4 ports and driving the inputs of the andgates.The and gates were connected to the outputs of the 2by4 decoder. The 2by4 decodr module was connected to the driver and monitor in the 2by4 .c file
The decoder1by2.h file was edited so that the decoder consists of an inverter gate circuit. The rest of the files from the ipmplementation with submodules were left untouched except for some changes on initializing of some objects, so as to avoid simulation starting before all the modules have been instantiated
Edit makefile to include compilation of all .cc files
Edit makefile to include compilation of all .cc files. Edited the sampling time in them main.cc file. Create nandgate and inverter .cc and .h files. Implement the detailed Dff using the nand and not gates in the dff.h file
Edit makefile to include compilation of all .cc files. Edited the sampling time in them main.cc file. Create nandgate and inverter .cc and .h files. Implement the detailed Dff using the nand and not gates in the dff.h file
The detailed Dflipflop folder was used and all files retained. Created four_bitshiftreg .cc and .h files. Implemented four bit shift register in the function in the four_bitshiftreg.cc file and called it in the .h file. A register instance was created and connected to the driver and monitor in the main method file. the Makefile was edited to accomodate the new .cc file to be compiled to a .o file.
The detailed Dflipflop folder was used and all files retained. Created four_bitshiftreg .cc and .h files. Implemented four bit shift register in the function in the four_bitshiftreg.cc file and called it in the .h file. A register instance was created and connected to the driver and monitor in the main method file. the Makefile was edited to accomodate the new .cc file to be compiled to a .o file.
The decoder2by4.h file was edited to consist of two decoders connected to the inputs of the 2by4 ports and driving the inputs of the andgates.The and gates were connected to the outputs of the 2by4 decoder. The 2by4 decoder module was connected to the driver and monitor in the 2by4 .c file
Edit makefile to include compilation of all .cc files. Edited the sampling time in them main.cc file. Create nandgate and inverter .cc and .h files. Implement the detailed Dff using the nand and not gates in the dff.h file
The detailed Dflipflop folder was used and all files retained. Created four_bitshiftreg .cc and .h files. Implemented four bit shift register in the function in the four_bitshiftreg.cc file and called it in the .h file. A register instance was created and connected to the driver and monitor in the main method file. the Makefile was edited to accomodate the new .cc file to be compiled to a .o file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant