AFSD-Assignment # 1 (22 Feb. 2025)
AFSD-Assignment # 1 (22 Feb. 2025)
Note: Show all the required steps while providing answers and don’t change the sequence of
questions. The similarity will be checked using Turnitin. If your response is found plagiarized, it
will be rejected.
1. Imagine you are part of a team tasked with designing a complex digital signal processor
(DSP) for an advanced audio processing application. The DSP needs to handle various
operations such as filtering, modulation, and demodulation of audio signals. Given the
complexity of the DSP and the need for modular design, your team decides to use
hierarchical modeling in Verilog HDL for the development process. As a designer, you are
required to explain hierarchical modeling by presenting a clear example. [10 marks]
2. Consider yourself member of a design team that has to design a digital system for an
advanced robotic arm. The robotic arm requires precise control over its movements, along
with feedback mechanisms for position sensing. As part of the design process, you need to
choose appropriate modeling styles in Verilog HDL to represent different components of
the robotic arm effectively. You need to implement the control logic for the robotic arm's
movement and integrate sensors for position feedback. First, explain the modeling styles,
and justify which modeling style in Verilog HDL would you choose for each of the
following components.
a. The main control unit that computes the desired angles for the robotic arm. [marks
5]
b. The combinational logic that processes sensor data to determinme the current
position of the arm. [marks 5]
c. The overall arrangement of different modules, including the control unit and the
sensors. [marks 5]
3. You are part of a team working on a digital design project to create a simple arithmetic unit
that will perform basic operations like addition, subtraction, AND, OR, and XOR. Your task
is to implement this unit using Verilog HDL, making use of both logical and bitwise
operators. During a team meeting, your lead developer asks you to explain the differences
between logical and bitwise operators, as well as their applications in the design. You need
to clarify these concepts to your team with suitable examples. [marks 10]
4. You are developing an automation system for a smart home system. The system controls
various objects like lights, heating, and security systems based on user preferences and
Page 1 of 2
conditions. One part of the application is responsible for managing the living room lighting.
The logic is designed to turn on the lights if someone is home and it is getting dark outside.
However, there is a missing part in the code that handles what happens when the condition
is not met.
Here is the relevant piece of code:
turnOnLights();
end
What will happen if ‘else’ or ‘actions for else’ are missing. Further, you should complete
`else` clause to ensure the system behaves appropriately when no one is at home or when it
is not dark outside. [marks 10]
5. In the context of your digital design project in Verilog HDL, explain the purpose of
using $stop and $finish system tasks, and how do they differ in terms of controlling the
simulation flow. [marks 5]
Page 2 of 2