diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Bachelor/Digitaltechnik 2/SS07/P6/abel_samples.zip_FILES/add1b.abl | |
| download | Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.gz Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.bz2 | |
Diffstat (limited to 'Bachelor/Digitaltechnik 2/SS07/P6/abel_samples.zip_FILES/add1b.abl')
| -rw-r--r-- | Bachelor/Digitaltechnik 2/SS07/P6/abel_samples.zip_FILES/add1b.abl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Bachelor/Digitaltechnik 2/SS07/P6/abel_samples.zip_FILES/add1b.abl b/Bachelor/Digitaltechnik 2/SS07/P6/abel_samples.zip_FILES/add1b.abl new file mode 100644 index 0000000..52e7827 --- /dev/null +++ b/Bachelor/Digitaltechnik 2/SS07/P6/abel_samples.zip_FILES/add1b.abl @@ -0,0 +1,26 @@ +MODULE adder_1bit
+
+TITLE 'Volladdierer mit Carry'
+
+DEClARATIONS
+ Bit_1 pin 15; // I/O 0, input
+ Bit_2 pin 16; // I/O 1, input
+ C_in pin 17; // I/O 2, input
+
+ Sum pin 29 istype 'com'; // I/O 12, output kombinatorisch
+ C_out pin 30 istype 'com'; // I/O 13, output kombinatorisch
+
+
+TRUTH_TABLE ( [Bit_1,Bit_2,C_in] -> [Sum,C_out] ) // Wahrheitstabelle des Volladdierers
+
+ [0 ,0 ,0 ] -> [0 ,0 ];
+ [0 ,0 ,1 ] -> [1 ,0 ];
+ [0 ,1 ,0 ] -> [1 ,0 ];
+ [0 ,1 ,1 ] -> [0 ,1 ];
+ [1 ,0 ,0 ] -> [1 ,0 ];
+ [1 ,0 ,1 ] -> [0 ,1 ];
+ [1 ,1 ,0 ] -> [0 ,1 ];
+ [1 ,1 ,1 ] -> [1 ,1 ];
+
+END
+
|
