Implementation of a 4 bit alu#42
Open
Sarahanyan wants to merge 26 commits into
Open
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A four bit alu that performs several different functions was designed together with a stimulus and monitor