Dies ist eine statische Kopie unseres alten Forums. Es sind keine Interaktionen möglich.
This is a static copy of our old forum. Interactions are not possible.

FSW16

Trainee

  • "FSW16" is male
  • "FSW16" started this thread

Posts: 119

Date of registration: Jun 25th 2008

Location: Hildesheim

1

Friday, March 25th 2011, 12:55pm

Lösung der Aufgabe 1C) von der heutigen GDS-Klausur

Hi, kann mir jemand sagen wie man die Aufgabe 1C) von der heutige Klausur hätte lösen sollen?

Ich hatte damit angefangen mit dem ersten Addierer und dem Multiplexer (a-|b|) zu berechnen, nur dann hatte ich nur noch einen Addierer übrig um (a-|b|)*3 zu berechnen, aber ich kam nur auf (a-|b|)*2

Deswegen die Frage an euch, wie habt ihr das gelöst?

MfG FSW

This post has been edited 1 times, last edit by "FSW16" (Mar 25th 2011, 1:11pm)


SammysHP

Forenwolf

  • "SammysHP" is male

Posts: 712

Date of registration: Oct 11th 2010

Location: Celle

Occupation: Informatiker

2

Friday, March 25th 2011, 3:44pm

Du musst nur eine Verschiebung um 1 bit nach links durchführen (mit 0 erweitern) und dies mit dem vorherigen Wert addieren. Zu doof, dass mir die Zeit gefehlt hat, um das noch hinzuschreiben. :(

Source code

1
2
3
4
001101 (=13)
011010
======
100111 (=39)

This post has been edited 1 times, last edit by "SammysHP" (Mar 25th 2011, 3:45pm)


FSW16

Trainee

  • "FSW16" is male
  • "FSW16" started this thread

Posts: 119

Date of registration: Jun 25th 2008

Location: Hildesheim

3

Friday, March 25th 2011, 5:20pm

Ah verstehe, an eine Verschiebung hatte ich gar nicht gedacht.

Vielen Dank