You are on page 1of 6

Lab No 2:

Lab Title:
Introduction to Simulation in Xilinx
Design Environment.
Step 1: Create a test fixture for the code.

This lab is in continuation with lab1. After the creation of main module, you
have to create a test-bench file to test your module through simulation. You
already created a module with the name of multimedia in the lab1. Re-open
the created project and your module.

In the drop down menu listed as SOURCES FOR, choose BEHAVIORAL


Right-click on project title listed as XC3S250E in the source window and

select NEW SOURCE. In the New Source window , select VERILOG TEST
FIXTURE from different types of sources and type new source name. Click

Select Top-Level module multimedia for which test module is being

developed. Click NEXT and FINISH if the summary of created file is
correct. This will create a test module with certain code already embedded .

The embedded code provides zero values to all inputs in the initial
procedural block. To modify test inputs, append code in the initial block.

Now click SIMULATE BEHAVIORAL MODEL in the process window.

This will open a new window with timing waveform. Adjust the wave form
by zooming it out and observe if the output signal waveform is correct
according to the input stimulus waveform.

Creating Verilog Test Fixture:

Simulation Waveform
Waveform by zooming it out:
Q 1: What is Simulation?
Ans: Simulation is a process of testing a coded circuit in a software environment. Hardware
Descriptive Language (HDL) coded circuits are tested via a creation of test fixtures in a software
that can be created either in an embedded ISE simulator or a third party simulator like

Q 2: Are delays like #10 synthesizable?

Ans: No it is not synthesizable because it is very short period of time.
Q 3: How does initial block in test fixture execute?
Ans: We can execute it by adding all inputs and performing the operation to simulate
Behavioral model.

Q 4: How can you add a cursor in your waveform?

Ans: By clicking the drop down menu of the upper toolbar.
Q 5: What is the purpose of adding cursors?
Ans: If a person wants to take some specific points then is feasibility for use through which
we can add a new cursor.

Questions Rating Remarks

(1 to 5)
We learn about
1. To what extent did you learn on the material in the 4 software & about
lab? coding

Yes, I can do
2. Are you able to apply knowledge gained in the lab to 4
similar problems?
Yes, but only to that
3. Are you able to analyze and interpret data recorded 4 limited codes
in the lab?

Only related to
4. Are you able to identify, formulate and solve 4 code, which we
electrical engineering problems based on the
knowledge acquired in the lab?

Yes, I can
5. Can you design a system, component or process to 4
fulfill certain specifications based on the knowledge
acquired in the lab?
Yes, can work in
6. Were you able to function as a group in the lab? 5 group for better

Not at all, but still

7. Were you able to interpret effectively the procedures 3 satisfied
and questions asked in the lab? performance in lab.
Yes it has because
8. Comment whether your work in the lab has an impact 4 coding is very
on the society. important.