0% found this document useful (0 votes)
93 views1 page

p1 p2 l1 p1 l1 l2 p2 l1 l3 p1 p2: Course: Hardware Software Co0Design Assignment 1 (10 Marks) Last Date: 3 MRCH 2023

1) The document describes Assignment 1 for a Hardware Software Co-Design course, which is due on March 3rd, 2023 and is worth 10 marks. 2) Students are asked to model a state machine using SystemC that controls different lights (l1, l2, l3) in a home based on which of two buttons (p1, p2) are pressed by entering or leaving different rooms. 3) They must submit a single PDF with the problem statement, FSM diagram, SystemC code with comments, test bench, and any assumptions made. Preferably Modelsim 32-bit software should be used to run the simulation.

Uploaded by

chandu
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)
93 views1 page

p1 p2 l1 p1 l1 l2 p2 l1 l3 p1 p2: Course: Hardware Software Co0Design Assignment 1 (10 Marks) Last Date: 3 MRCH 2023

1) The document describes Assignment 1 for a Hardware Software Co-Design course, which is due on March 3rd, 2023 and is worth 10 marks. 2) Students are asked to model a state machine using SystemC that controls different lights (l1, l2, l3) in a home based on which of two buttons (p1, p2) are pressed by entering or leaving different rooms. 3) They must submit a single PDF with the problem statement, FSM diagram, SystemC code with comments, test bench, and any assumptions made. Preferably Modelsim 32-bit software should be used to run the simulation.

Uploaded by

chandu
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
You are on page 1/ 1

Course: Hardware Software Co0Design

Assignment 1 (10 marks)


Last date: 3rd Mrch 2023
Q. Find a State Machine as the following and as expressed in a floorplan diagram.
At the default state, the lights are all turned off. When you enter the house, you can press one of the 2
push buttons you have, p1 or p2. When you press any of those buttons, the l1 light turns
on. Imagine this is the entrance light, and you can take your jacket off. Once you are done, you decide
which room you want to enter (kitchen or bedroom, for example). If you press the button p1, l1 turns
off andl2 turns on. Instead if you press the button p2, l1 turns off and l3 turns on. Pressing another
time any of the 2 buttons, p1 or p2, the light that is currently on will turn off, and we’ll get back at
the initial state of the system.
Model the system using SystemC and write test bench to run the simulation. You need to submit a single
pdf file containing the problem statement, FSM diagram, zSystemC code, test bench, and assumptions
made if any. The code should be commented on appropriately.
You can preferably use Modelsim 32-bit version provided to you by the Institute.

You might also like