Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 3 pages
Summary

Summary - Verilog

Document preview thumbnail
Preview 1 out of 3 pages

An overview with worked examples on typical coursework or exam questions

Content preview

Verilog
Revision Guide
March 1, 2024


1 Introduction
This revision guide provides an overview of essential Verilog concepts.


2 Data Types
1 // Declaring variables
2 reg [7:0] data ; // 8 - bit register
3 wire [3:0] address ; // 4 - bit wire
4 parameter WIDTH = 8; // Parameter declaration
5

6 // Data types
7 logic // Can represent 4 - state values
8 integer // 32 - bit signed integer
9 real // Floating - point number



3 Control Structures
1 // Conditional statements
2 if ( condition ) begin
3 // Code block
4 end else begin
5 // Code block
6 end
7

8 // Case statement
9 case ( selector )
10 2 ’ b00 : // Code block
11 2 ’ b01 : // Code block
12 default : // Code block
13 endcase



4 Sequential Logic
1 // Always block
2 always @ ( posedge clk ) begin
3 // Code block
4 end
5

6 // Non - blocking assignment
7 always @ ( posedge clk ) begin
8 q <= d ;
9 end


1

Document information

Study
Unknown
Uploaded on
March 1, 2024
Number of pages
3
Written in
2023/2024
Type
Summary
$11.22

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
2
Last sold
-


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions