0% found this document useful (0 votes)
10 views4 pages

Computer Architecture Lab Tasks 2023

The document describes two tasks for a computer architecture and logic design lab. Task 1 involves designing a 2-bit adder circuit using logic gates that is resilient to electromagnetic interference and efficient. Task 2 involves designing an encoder circuit using logic gates to covertly translate four command words into numeric representations for a secure communication network.

Uploaded by

Rehab Khaleel
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views4 pages

Computer Architecture Lab Tasks 2023

The document describes two tasks for a computer architecture and logic design lab. Task 1 involves designing a 2-bit adder circuit using logic gates that is resilient to electromagnetic interference and efficient. Task 2 involves designing an encoder circuit using logic gates to covertly translate four command words into numeric representations for a secure communication network.

Uploaded by

Rehab Khaleel
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

BAHRIA UNIVERSITY, (Karachi Campus)

Department of Software Engineering


Open Ended Lab - II
Semester Fall 2023

Course Title: Computer Architecture & Logic Design Lab Course Code: CEL 220
Course Instructor: Engr. Ramsha Mashood Class: BSE-3(B)
Lab Instructor: Engr. Noor us Sabah Name:_______________
Max. Marks: 06 Marks Reg no:______________
Time: 1 hour Date: 4th January, 2024__

NOTE:
 Try to submit the tasks on LMS in given Time.
 Make folder containing separate Multisim Design files for each task.
 Each Design file name should be in the given format:
[Task No.]_[Enrollment]_[Class & Section] (i.e., Task 01_02-131192-038_BSE 3B)

TASK # 01: (CLO4, Marks: 03)

In a highly restricted technological environment, you're mandated to engineer a 2-bit adder using
logic gates (AND, OR, NOT etc.), facing extreme limitations in gate count and physical space due
to stringent hardware constraints. The task demands precise binary addition of two 2-bit numbers
(A and B) with meticulous carry propagation for higher-order bits.

However, there's an added complexity: the circuit design must operate in an environment with
heightened electromagnetic interference, necessitating sophisticated noise-resistant mechanisms
within the logic gates to maintain accurate computation. Your design must also comply with
stringent power consumption limits, restricting the number of gate interactions to ensure efficient
operation while mitigating thermal issues. This multifaceted challenge demands not only accuracy
in binary addition but also resilience against external interference and optimal energy efficiency
within the confined hardware constraints.
SOLUTION:

VCC
5V
VCC

0
B1 A1
B0 A0

Sum1 Key = Space Key = Space


Key = Space Key = Space

U12 2.5 V
5
2
17
XOR2 U11 Sum2
11
U3 2.5 V
XOR2 1
U6 4
3
9 XOR2 U4
U5
AND2 12 Carry
7 U2
U1 10 OR2 XOR2
6 U8
AND2 2.5 V
13
AND2
U7 8 OR2

AND2
TASK # 02: (CLO4, Marks: 03)

Within a classified communication setup, your task is to create an encoding mechanism discreetly
translating four command words: "NO," "YES," "GO," and "STOP", into specific numeric
representations. These numeric outputs serve as covert triggers for designated operations within a
secure network, ensuring confidentiality without disclosing the actual commands exchanged.
Precision and consistency are paramount; the design, crafted using basic logic gates (AND, OR,
NOT, etc.), must reliably convert each input word to its corresponding numerical value,
guaranteeing error-free encoding while maintaining computational efficiency. The objective is to
engineer an inconspicuous encoder circuit facilitating seamless translation of the specified words
into their numeric equivalents, preserving secrecy and accuracy within this highly confidential
communication network.

Word-to-Number Translation Table:

Commands NO YES GO STOP

Encoded
0 1 4 2
Numbers

TRUTH TABEL:

NO YES GO STOP A0 A1 A2

1 0 0 0 0 0 0

0 1 0 0 1 0 0

0 0 1 0 0 0 1

0 0 0 1 0 1 0

A0 = NO’ YES GO’ STOP’


A1 = NO’ YES’ GO’ STOP
A2 = NO’ YES’ GO STOP’
CIRCUIT DIAGRAM:

VCC
0
VCC
No Yes Go Stop
5V

Key = Space Key = Space Key = Space Key = Space


7

A0

5 U5 2.5 V
1
2 11
4
6
AND4 A1

U6 2.5 V
8
17
3
AND4 A2

U7 2.5 V
9

AND4

G😊☹️D LUCK

Common questions

Powered by AI

The encoding of command words such as 'NO,' 'YES,' 'GO,' and 'STOP' into numeric outputs can be achieved using a sequence of AND, OR, and NOT gates. A truth table guides the logic gate arrangement: for instance, 'NO' becomes 0 through specific signal configurations using these gates. The main security strategy involves obscuring the logic circuit to prevent outsiders from deducing the original commands from their encoded form, embedded within a network as inconspicuous control signals .

A truth table is crucial in designing secure encoders as it comprehensively maps each input condition to its respective encoded output, providing a clear framework for gate wiring. It guides error-checking and circuit verification to ensure accuracy and reliability of the encoded outputs. Designers use these tables to systematically arrange and connect logic gates to achieve the desired encoding while avoiding logical ambiguities .

In a 2-bit adder, XOR gates are used to compute sums of bits independently while considering carries from lower orders. AND gates generate carry bits from two input bits, which are then propagated by OR gates to higher bit orders. This combination ensures the correct calculation of binary addition with carry management across two input numbers .

Preservation of computational efficiency ensures the encoder operates swiftly and reliably, critical for maintaining security and non-detectability in communication. It can be achieved through optimizing logic gate use, reducing redundant operations, and employing efficient algorithms to minimize computational delays and potential bottlenecks .

A circuit can be designed to balance space constraints and performance by using compact component layouts, leveraging multifunctional gates to reduce overall gate count, and ensuring minimal trace length between components to maintain signal integrity. Design strategies like component layering and efficient placement algorithms play key roles in optimizing the physical footprint while meeting performance needs .

To design a 2-bit adder in this environment, it is crucial to use XOR gates for sum computation, AND gates for carry generation, and OR gates for carry propagation. The design must incorporate noise-resistant techniques such as shielding and filtering to manage electromagnetic interference, and use power-efficient gates to comply with power consumption limits. The adder must handle binary inputs, propagate carries precisely, and ensure the physical layout minimizes space and thermal issues .

Ensuring error-free encoding in a network requires precise implementation of logic gates aligned with a comprehensive truth table. Each command word must be distinctly mapped to numerical codes using a systematic arrangement of AND, OR, and NOT gates. Crucially, frequent validation against testing scenarios is needed to identify and correct potential errors, maintaining strict adherence to logical mapping for consistent outputs .

Effective methods for integrating noise-resistant mechanisms include using differential signaling to reduce noise sensitivity, adding capacitors for bypass filtering, and designing with high signal-to-noise ratio components. Employing redundancy in critical paths and designing with layout techniques that segregate noisy lines can substantially enhance circuit resistance to external interference .

In logic circuit design, power consumption can be restricted by selecting low-power components, minimizing gate interaction, and reducing switching activity. Efficiency can be enhanced by designing compact circuits that minimize the number of necessary gates and wiring, thus reducing heat generation and power usage. Strategically deploying power-saving modes during inactivity can further conserve energy .

Designing circuits in high electromagnetic interference (EMI) environments involves challenges like noise interference affecting signal integrity. Solutions include using noise-resistant logic gates, shielding circuits with conductive materials, and employing filters to smooth out electromagnetic noise. Incorporating error-checking mechanisms and optimizing circuit layout can mitigate interference impacts, ensuring reliable logic operations .

You might also like