0 views

Uploaded by Antonio Johnson

Please see attachments

- 74HC257
- Put Question Paper (Ec-302)
- DataFlow Modeling in Verilog
- 152100279-Basic-Digital-Logic-Design-Notes.pdf
- Lecture8 1(Cl Examples)
- Lecture 4(1)
- Using Logic Works Fa 07
- ECEM323 Laboratory Manual (Dante)
- Digital Electronics 2 Mark Questions Answers
- Module 1 - Combinational Logic
- chapter 2 pretest
- 1-8 DEMUX
- 2010-0010. Verilog Combinational Blocks. Wakerly Chapter_06
- Hdl Lab Viva Voce-10ecl48
- 2x4 Demultiplexer Tables
- castec-IIMtrLT30RTS
- i can math cc
- 74HC_HCT259
- Road Map BEJ
- ade-lab2

You are on page 1of 6

Name:

Date:

Module 1 Objective 3

Try

2 29 register

2 14 1

2 7 0

2 3 1

2 1 1

2 0 1

Answer: 011101

3. One’s Complement

One’s complement uses a sign bit. In order to calculate the one’s complement of a number:

b) Write down the positive equivalent of the number

c) Flip all the bits following the sign bit.

Eg: -3 in one’s complement using 4 bits. (One’s Complement can only be used to represent)

Sign bit =1 negative), +3 in decimal =011, flip all bits following the sign bit= 1100

Try this: Find the ones complement of -5 using 4 bits (May/June 2013 Question (1)(b)(ii))

4. Two’s Complement

b) Calculate the ones complement

c) Add one to the ones complement

Sign bit= 1, ones complement= 1100, add one to the one’s compliment= 1101

Try this: Find the two’s complement of -5 using 4 bits (May/June 2013 Question (1)(b)(iii))

Try this: Find the 8-bit two’s complement of -21 (May/June 2015 Question (1)(e))

Try this: Calculate the 4-bit two’s complement of -7 (May/June 2014 Question (1) (f))

1

Antonio Johnson “Straight A’s”

CAPE COMPUTER SCIENCE UNIT 1 CLASS (April 2018)

Name:

Date:

Mantissa and Exponent is a format that allows us to store large numbers as well as fractions. It is

very similar to the scientific notation of numbers Eg. 10.67x103 where 10.67 would be the Mantissa,

3 would be the exponent and 10 would be the base.

To convert a number to Mantissa and exponent (taken from Invitations to Computer Science):

b) Next normalize until the first significant digit is to the right of the decimal point (see

board)

c) The number of times you moved the decimal point to get step (b) in decimal would be

your exponent.

d) Write the sign of the mantissa, the mantissa, sign of the exponent, exponent (may vary

depending on what the question asks)

Eg. Using 8-bit mantissa, and 8-bit exponent calculate 123 in binary floating point.

12310=0.1111011x107 M E

710=00000111 (exponent)

Try This: Using 1-bit sign, 3-bit exponent, and 5-bit mantissa to calculate the following number

001101011. (May/June 2015 Question (1) (f))

Try This: Using 1-bit sign, 3-bit, and 5-bit exponent, calculate 001110110(May/June 2014 Question

(1) (f))

6. Sign-Magnitude

Sign Magnitude is way of representing a number with the first bit being the sign and the remaining

bits being the number.

(see board)

Modulej 1 Objective 2

8. Logic Gates

0 0

2

Antonio Johnson “Straight A’s”

CAPE COMPUTER SCIENCE UNIT 1 CLASS (April 2018)

Name:

Date:

A B A⊕B (A⊕B)’

1

1

1

1

9. Multiplexer

A multiplexer is a device that selects one of multiple input signals and forwards the selected input to

the output line.

Input Lines = 2n

Selector Lines= n

Output Lines= 1

3

Antonio Johnson “Straight A’s”

CAPE COMPUTER SCIENCE UNIT 1 CLASS (April 2018)

Name:

Date:

Try This: Draw a clearly labelled block diagram of a 2:1 multiplexer (May June 2014)

10. Demultiplexer

A demultiplexer is a device that takes a single input line and routes it to one of the several digital

outputs. A demultiplexer has n selector lines, 2n output lines and 1 output lines.

11. Encoder

An encoder is a device

12. Decoder

A decoder converts a code into a set of signals. A decoder has ‘n’ input lines and 2n output lines.

Try This: Draw a clearly labelled block diagram of a 3 to 8 Decoder (May/June 2015 (1)(c))

Module 3

To Define a struct

1. struct structname {

2. int var1;

3. int var2;

4. };

To declare an instance of a struct

1. struct structname struct1, struct2;

To manipulate a struct

1. int main() {

2. struct1.var1 = 10;

3. printf("%d", struct1.var1);

4. return 0;

5. }

To Swap a struct (see board)

4

Antonio Johnson “Straight A’s”

CAPE COMPUTER SCIENCE UNIT 1 CLASS (April 2018)

Name:

Date:

To find the sum of multiples of a number between two boundaries, you must use the % (modulus)

operator. The mod operator gives the remainder of a number and by factor theorem, if a remainder

is 0, then it is a multiple (i.e it is divisible by that number)

5

Antonio Johnson “Straight A’s”

CAPE COMPUTER SCIENCE UNIT 1 CLASS (April 2018)

Name:

Date:

To declare file

FILE *fp

1. fp = fopen(“filename.txt”, ”mode”);

1. while (!feof(fp)) {

2. fscanf(fp, ”conversion_specifier”, & varnum[i], & varstring[i]);

3. }

- 74HC257Uploaded byJoao Silva
- Put Question Paper (Ec-302)Uploaded byAnonymous eWMnRr70q
- DataFlow Modeling in VerilogUploaded byWaqas Ahmed
- 152100279-Basic-Digital-Logic-Design-Notes.pdfUploaded bynandams
- Lecture8 1(Cl Examples)Uploaded bylitoduter
- Lecture 4(1)Uploaded by2456903
- Using Logic Works Fa 07Uploaded byStephen F. Vega Lavergne
- ECEM323 Laboratory Manual (Dante)Uploaded byDanilyn Padillo Lucio
- Digital Electronics 2 Mark Questions AnswersUploaded byDhanaa Dhanagopal
- Module 1 - Combinational LogicUploaded byAriana Ribeiro Lameirinhas
- chapter 2 pretestUploaded byapi-353436617
- 1-8 DEMUXUploaded byNuke-Comm Leakage
- 2010-0010. Verilog Combinational Blocks. Wakerly Chapter_06Uploaded byElliza Ishak
- Hdl Lab Viva Voce-10ecl48Uploaded byabhayshankar123
- 2x4 Demultiplexer TablesUploaded byJagadeesh Kumar
- castec-IIMtrLT30RTSUploaded bysolar control
- i can math ccUploaded byapi-231983114
- 74HC_HCT259Uploaded byladede
- Road Map BEJUploaded byMohammad Syukri
- ade-lab2Uploaded byRam Manohar Nisarg
- Mid semester exam - Computer Fundamentals - (101) - SLIITUploaded bySankha Palihawadana
- MainUploaded byĐỗ Nhật Minh
- Ch-02Uploaded byMrs. Vasanthi Muniasamy
- 'lhioUploaded byDeepak Sharma
- Saving Costs with the SRL16EUploaded byUmar Farooq Zia
- 6-Delay-Fault Testing Tutorial.pptUploaded byAdhi Suruli
- 20160809 - KDC - CELTA - TP8.docxUploaded byoanailie
- 15. Jawapan - pg 113-139Uploaded byBuaya Kudat
- PLCC. (1) (1)Uploaded byArun Singh
- Lecture 1 - Syllabus and ProjectsUploaded byÁo Đen

- Functional Paradigm (1)Uploaded byAntonio Johnson
- UTech Academy ApplicationUploaded byAntonio Johnson
- SampleUploaded byAntonio Johnson
- Document 1Uploaded byAntonio Johnson
- Unit II Marathon 1-FinalUploaded byAntonio Johnson
- file.txtUploaded byAntonio Johnson
- docuemntUploaded byAntonio Johnson
- do- Copy.txtUploaded byAntonio Johnson
- do- Copy.txtUploaded byAntonio Johnson
- customers2.txtUploaded byAntonio Johnson
- NSSDC Season HighlightsUploaded byAntonio Johnson
- Book of Job-1Uploaded byAntonio Johnson
- SAT and ACT Grammar Rules and Punctiuation _ SAT Grammar RulesUploaded byAntonio Johnson
- Kingston College TimeTable 2016-2017Uploaded byAntonio Johnson
- Cxc Poem This is the Dark Time My LoveUploaded byAntonio Johnson
- Read MeUploaded byAntonio Johnson
- Agenda Wednesday19th.docxUploaded byAntonio Johnson
- ExampleUploaded byAntonio Johnson
- test1Uploaded byAntonio Johnson
- Programming Paradigm- Object OrientatedUploaded byAntonio Johnson
- Carry a Candle - Full Score - CopyUploaded byAntonio Johnson
- Agenda Wednesday19thUploaded byAntonio Johnson
- Rastafarian MovementUploaded byAntonio Johnson
- A Stone's ThrowUploaded byAntonio Johnson
- Csec Electrical and Electrical Technology InfoUploaded byAntonio Johnson

- Atmel 8127 AVR 8 Bit Microcontroller ATtiny4 ATtiny5 ATtiny9 ATtiny10 DatasheetUploaded byjuan
- Revit2015_GettingStartedGuide_ImperialMetricUploaded byDSunte Wilson
- Creation of Replication InstanceUploaded bysoma3nath
- V073Uploaded byangara_norman
- Assignment 3Uploaded byUmar Riaz
- iPortable Snow ReadMeUploaded bydissidra
- 4) Information schema & performanc schema.pdfUploaded byRemote MySQL DBA
- 101 Most Usefull WebsitesUploaded byRobin
- Asterisk Dialplan ContextsUploaded bynenad2009
- UT Dallas Syllabus for mis6326.0g1.08s taught by Young Ryu (ryoung)Uploaded byUT Dallas Provost's Technology Group
- Canon Service Mode EEPROM Info 1Uploaded bygomo710
- Estructura Para Key Users Rev PptaUploaded byApolinar Arrieta Romero
- a200Uploaded byKumaraguru Sathiyaseelan
- ZE550ML_ZE551ML_xFSTK_SOP.pdfUploaded byDimaz Hanggoro
- How to apply Amex.docxUploaded byasad
- FactAbout FactoryTalkUploaded bymy pedro
- Wireless Sensor NetworksUploaded byTanvi Sharma
- SAP Solution Magazine v4Uploaded bymuskystoat
- desktop-board-dh67gd-media-briefUploaded byapi-295404564
- umtUploaded byVikas Kumar
- Classification 3D Object Fruits Based on Its Multiple Images Capture Using ConvNetUploaded byAchmad Lukman
- 04_Capacity_management.pdfUploaded bynhandtvt
- HP Pavilion a1600n.c01046378Uploaded bytonehog457011792
- hide vprsUploaded byKabil Rocky
- C++ ExamUploaded byNagarajuTimmisetti
- White Paper PDF or XPS: Choose the Right Document FormatUploaded byigalkap
- Amit Tyagi1[1]Uploaded byIdentically Raman
- Fortinet 201 FG Web FilteringUploaded byBlas Diaz
- Mobile computing pptUploaded bysadhanamca1
- Pixel Perfect Fingerprinting Canvas in HTML5.pdfUploaded byJustin Hayes