Ddco Lab Manual-1
Ddco Lab Manual-1
NAME : .......................................................................................................................................................................................................................................................................................................................................................................................................................................
USN :.....................................................................................................................................................................................................................................................................................................................................................................................................................................................
Mission
To impart high quality education in Engineering, Technology and Management with a
Difference, Enabling Students to Excel in their Career by
1. Attracting quality Students and preparing them with a strong foundation in fundamentals so as to
achieve distinctions in various walks of life leading to outstanding contributions
2. Imparting value based, need based, choice based and skill based professional education to the
aspiring youth and carving them into disciplined, World class Professionals with social
responsibility
3. Promoting excellence in Teaching, Research and Consultancy that galvanizes academic
consciousness among Faculty and Students
4. Exposing Students to emerging frontiers of knowledge in various domains and make them suitable
for Industry, Entrepreneurship, Higher studies, and Research & Development
5. Providing freedom of action and choice for all the Stake holders with better visibility
Mission
The Department of Computer Science and Engineering will make every effort to promote an
intellectual and an ethical environment in which the strengths and skills of Computer
Professionals will flourish by
1. Imparting Solid foundations and Applied aspects in both Computer Science Theory and
Programming practices
2. Providing Training and encouraging R&D and Consultancy Services in frontier areas of Computer
Science with a Global outlook
3. Fostering the highest ideals of Ethics, Values and creating Awareness on the role of Computing
in Global Environment
4. Educating and preparing the graduates, highly Sought-after, Productive, and Well-respected for
their work culture
5. Supporting and inducing Lifelong Learning practice
PREFACE
We have developed this comprehensive laboratory manual on Digital design & computer
organization with the primary objectives: To make the students comfortable with the Verilog
hardware description language. The manual will help them to learn various digital circuit
modelling issues using Verilog, and some case studies. Through this course students will get
exposure to design of digital circuits using Verilog HDL.
Our profound and sincere efforts will be fruitful only when students acquire the extensive
knowledge by reading this manual and apply the concepts learnt apart from the requirements
specified in Digital design & computer organization Laboratory as prescribed by VTU,
Belagavi.
Department of CSE
ACKNOWLEDGMENT
A material of this scope would not have been possible without the contribution of many people. We
express our sincere gratitude to Mr. Satish R Shetty, Chairman of RNS Group of Companies for
providing magnanimous support in all our endeavors.
We are grateful to Dr. Ramesh Babu H S, Principal, RNSIT and Dr. Kiran P, HOD, CSE for
extending their constant encouragement and support.
Our heartfelt thanks to Mr. Prasanna Kumar M, Mrs. Lakshmi R and Mrs. Supritha N for their
unparalleled contribution throughout the preparation of this comprehensive manual. We also
acknowledge our colleagues for their timely suggestions and unconditional support.
Department of CSE
Sl.
Parameters Excellent Good Needs Improvement
No.
a. Design, implementation Program follows syntax and Program has few logical Syntax and semantics
and demonstration semantics of Verilog errors, moderately of Verilog
(5 marks) programming language. demonstrates all possible programming is not
Demonstrates the complete concepts implemented in clear (1)
knowledge of the program written programs (3)
(5)
b. Result and All expected results are Moderately debugs the Expected results are not
documentation demonstrated successful, all program and Partial demonstrated properly,
(5 marks) errors are debugged with own documentation unable to debug the
practical knowledge and clear (3) errors and no proper
documentation according to the documentation (1)
guidelines (5)
TEST-1
TEST-2 𝟒𝟎 10
Write
Date of Exen. Viva Total Teacher
Program # Lab programs up
Execution (10) (10) 30 Signature
(10)
Total
Marks 240 3𝟎 5
C: RECORD (10) 25
TABLE OF CONTENTS
SL. PAGE
NO. CONTENTS
NO.
INTRODUCTION
LABORATORY PROGRAMS
6 Design Verilog HDL to implement multiplexer like 2:1, 4:1 and 8:1
6.1 Program
6.2 Output
1
Digital Design & Computer Organization Laboratory (BCS302)
SYALLABUS
SEMESTER – III
DIGITAL DESIGN & COMPUTER ORGANIZATION LABORATORY
(Effective from the academic year 2023-2024)
Programs List:
Sl.No Experiments
1 Given a 4-variable logic expression, simplify it using appropriate technique and simulate the same
using basic gates.
2 Design a 4 bit full adder and subtractor and simulate the same using basic gates.
3 Design Verilog HDL to implement simple circuits using structural, Data flow and Behavioural model.
4 Design Verilog HDL to implement Binary Adder-Subtractor – Half and Full Adder, Half and Full
Subtractor.
6 Design Verilog program to implement Different types of multiplexer like 2:1, 4:1 and 8:1.
8 Design Verilog program for implementing various types of Flip-Flops such as SR, JK and D.
Digital Design & Computer Organization Laboratory (BCS302)
● 15 marks for the conduction of the experiment and preparation of laboratory record, and 10 marks
for the test to be conducted after the completion of all the laboratory sessions.
● On completion of every experiment/program in the laboratory, the students shall be evaluated including
viva-voce and marks shall be awarded on the same day.
● The CIE marks awarded in the case of the Practical component shall be based on the continuous
evaluation of the laboratory report. Each experiment report can be evaluated for 10 marks. Marks of all
experiments’ write-ups are added and scaled down to 15 marks.
● The laboratory test (duration 02/03 hours) after completion of all the experiments shall be conducted
for 50 marks and scaled down to 10 marks.
● Scaled-down marks of write-up evaluations and tests added will be CIE marks for the laboratory
component of IPCC for 25 marks.
● The student has to secure 40% of 25 marks to qualify in the CIE of the practical component of the IPCC.
CO-PO MATRIX
COURSE
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2 PSO3 PSO4
OUTCOMES
CO1 3 3 3 1 1 - - - - - - 2 3 3 1 -
CO2 3 3 3 1 - - - - - - - 2 3 2 2 -
CO3 3 3 3 3 3 - - - - - - 2 3 3 1 -
CO4 3 3 3 1 - - - - - - - 2 3 2 2 -
Digital Design & Computer Organization Laboratory (BCS302)
INTRODUCTION
Language Overview
Program Structure
The Verilog language describes a digital system as a set of modules. Each of these modules
has an interface to other modules to describe how they are interconnected. Usually, we place one
module per file but that is not a requirement. The modules may run concurrently, but usually we have
one top level module which specifies a closed system containing both test data and hardware models.
The top-level module invokes instances of other modules.
Modules can represent pieces of hardware ranging from simple gates to complete systems,
e. g., a microprocessor. Modules can either be specified behaviourally or structurally (or a
combination of the two). A behavioural specification defines the behaviour of a digital system
(module) using traditional programming language constructs, e. g., ifs, assignment statements. A
structural specification expresses the behaviour of a digital system (module) as a hierarchical
interconnection of sub modules. At the bottom of the hierarchy the components must be primitives or
specified behaviourally. Verilog primitives include gates, e. g., nand, as well as pass transistors
(switches).
The structure of a module is the following:
module <module name> (<port list>);
<declares>
<module items>
End module
The <module name> is an identifier that uniquely names the module. The <port list> is a list
of input, inout and output ports which are used to connect to other modules. The <declares> section
specifies data objects as registers, memories and wires as wells as procedural constructs such as
functions and tasks.
The <module items> may be initial constructs, always constructs, continuous assignments or
instances of modules.
Digital Design & Computer Organization Laboratory (BCS302)
Simulation
Steps:
1. Start The Xilinx Project Navigator By Using The Desktop Shortcut or By using the Start
→Programs →Xilinx ISE (14.7).
2. Create a New project Select File menu and Then Select New Project.
3. Specify the project Name and Location in pop up Window and click next.
4. To Create New Verilog file Right click on the device name and Select NEW SOURCE.
Select Verilog module in New Source Wizard and Give Suitable name for the Project Click
NEXT for the Define Module Window.
5. Write Behavioral Verilog code in Verilog Editor.