Serial 2 S Complementer Shift Register
Just to be fair, this is a previous exam question and was an assignment question. I've already handed in the assignment and now I'm trying to see why I got it wrong -- to study for my final.
I fully understand how to find the 2's complement of a binary number, however, implementing a circuit to find the complement is driving me crazy. I'm given a shift register (that stores my binary number) and a flip flop (using D for simplicity). The process I follow for building sequential circuits is this: • I look at the question and derive a state diagram. • From the state diagram, I draw a state table and find the input of my flip flops • I use maps and stuff to finally build the circuit. I'm trying to visualize how to actually draw the state diagram for this complementer.

May 13, 2014 - In this tutorial, I am going to show another shift register which is capable of. The IC that I am using is 74HC165 Parallel In/ Serial Out Shift Register. Two output pins which are Q7 and /Q7, where /Q7 is the complement (inverted) of Q7.
I know it depends on the previous value and stuff, but if someone could take the time to explain in plain english how he/she would go about building the state diagram, I would be vey grateful. That link you gave says it all: Hint: - 2’s complement of a number can be obtained by keeping the least significant bits as such until the first 1, and then complementing all bits 'example 001010 → 110110' that is to say 001010 -> flip bits -> 110101 -> add 1 -> 110110 msb lsb msb lsb msb lsb msb lsb input 001010 output 110110.
You know the 2's complement of each of the binary values 0000, 0001, 0010, 0011. There are at least 2 ways to get the 2's complement of a number in a SIPO shift register: • direct combinatorial logic. Take the 4 bits of the value, (simultaneously) invert all the bits and (simultaneously) add one. (I think a bunch of half-adder circuits are adequate here -- you can copy those out of your textbook, right?) There is no flip-flop or other internal state with this approach. • Serial incrementer. Starting with the least-significant bit, shift one bit at a time into a serial incrementer (a single half-adder and a single D flip flop). The serial incrementer generates (one bit at a time), from the current bit from the shift register and a Carry_in bit, the Carry_out bit and the Sum bit.
Every clock cycle, the old Carry_out bit is latched into your D flip flop and becomes the new Carry_in bit, and the next bit comes out of the shift register. Then the half-adder combinational logic combines them to produce another Carry_out bit and Sum bit. (The flip-flop also needs some way to reset the carry bit it holds to '1' when starting over with the least-significant bit of a new number). When adding 2 bits, the Carry_out is 1 only when both bits are 1; otherwise the Carry_out is zero.
4- bit adder, 2's compliment subtractor circuit using a 4-bit adder IC. Verification of the operation of the circuit. Apparatus: Logic trainer kit, 4-bit adder (IC 7483), X-OR gates (IC 7486), wires Theory: IC 7483 is a 4 bit adder. In binary, subtraction can be performed by using 2's complement method. In this method negative number is converted into its 2's complement and it is added to the other number. The result of this addition is the subtraction of origin numbers. If we modify the adder circuit, such that 2's complement and simple representation are presented, we can perform addition subtraction as required.
X-OR gate is used as a controlled inverter/ buffer for this purpose. Use it as buffer for addition and inverter for subtraction. Csc struds v11 crackle. Procedure: 1.
Connect the IC 7483 and IC 7486 as per diagram. Connect all A's and all B's to logic sources, S's to logic indicators. Connect Cin to logic 0, this will set the circuit for addition. Give various input combinations, verify adder operation. Here Cout is MSB of addition.
Connect Cin to logic 1, this will set the circuit for subtraction by 2's complement method. Give various input combinations and observe outputs. Here Cout is neglected (2's complement subtraction) 7.
Switch off power supply. Aim: Verification of truth table for 7 segment decoder/ driver ICs Apparatus: Logic trainer kit, 7 segment decoder/ driver (IC 7447), wires Theory: Seven Segment is a display device. 7 LEDs are used in this device.