• Complain

Samir Palnitkar - Verilog HDL: A Guide to Digital Design and Synthesis [With CDROM]

Here you can read online Samir Palnitkar - Verilog HDL: A Guide to Digital Design and Synthesis [With CDROM] full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2003, publisher: Prentice Hall PTR, genre: Science. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    Verilog HDL: A Guide to Digital Design and Synthesis [With CDROM]
  • Author:
  • Publisher:
    Prentice Hall PTR
  • Genre:
  • Year:
    2003
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Verilog HDL: A Guide to Digital Design and Synthesis [With CDROM]: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Verilog HDL: A Guide to Digital Design and Synthesis [With CDROM]" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Samir Palnitkar: author's other books


Who wrote Verilog HDL: A Guide to Digital Design and Synthesis [With CDROM]? Find out the surname, the name of the author of the book and a list of all author's works by series.

Verilog HDL: A Guide to Digital Design and Synthesis [With CDROM] — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Verilog HDL: A Guide to Digital Design and Synthesis [With CDROM]" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Appendix A. Strength Modeling and Advanced Net Definitions
A.1 Strength Levels

Verilog allows signals to have logic values and strength values. Logic values are , , x , and z . Logic strength values are used to resolve combinations of multiple signals and to represent behavior of actual hardware elements as accurately as possible. Several logic strengths are available. shows the strength levels for signals. Driving strengths are used for signal values that are driven on a net. Storage strengths are used to model charge storage in trireg type nets, which are discussed later in this appendix.

Table A-1. Strength Levels

Strength Level

Abbreviation

Degree

Strength Type

supply1

Su1

strongest 1

driving

strong1

St1

Verilog HDL A Guide to Digital Design and Synthesis With CDROM - image 1

driving

pull1

Pu1

driving

large1

La1

storage

weak1

We1

driving

medium1

Me1

storage

small1

Sm1

storage

highz1

HiZ1

weakest1

high impedance

highz

HiZ0

weakest0

high impedance

small0

Sm0

Verilog HDL A Guide to Digital Design and Synthesis With CDROM - image 2

storage

medium0

Me0

storage

weak0

We0

driving

large0

La0

storage

pull0

Pu0

driving

strong0

St0

driving

supply0

Su0

strongest0

driving

A.2 Signal Contention

Logic strength values can be used to resolve signal contention on nets that have multiple drivers.There are many rules applicable to resolution of contention. However, two cases of interest that are most commonly used are described below.

A.2.1 Multiple Signals with Same Value and Different Strength

If two signals with same known value and different strength drive the same net, the signal with the higher strength wins.

In the example shown supply strength is greater than pull Hence Su1 wins - photo 3

In the example shown, supply strength is greater than pull . Hence, Su1 wins.

A.2.2 Multiple Signals with Opposite Value and Same Strength

When two signals with opposite value and same strength combine, the resulting value is x .

A3 Advanced Net Types We discussed resolution of signal contention by using - photo 4

A.3 Advanced Net Types

We discussed resolution of signal contention by using strength levels. There are other methods to resolve contention without using strength levels. Verilog provides advanced net declarations to model logic contention.

A.3.1 tri

The keywords wire and tri have identical syntax and function. However, separate names are provided to indicate the purpose of the net. Keyword wire denotes nets with single drivers, and tri is denotes nets that have multiple drivers. A multiplexer, as defined below, uses the tri declaration.

module mux(out, a, b, control);output out;input a, b, control;tri out;wire a, b, control;bufif0 b1(out, a, control); //drives a when control = 0; z otherwisebufif1 b2(out, b, control); //drives b when control = 1; z otherwiseendmodule

The net is driven by b1 and b2 in a complementary manner. When b1 drives a, b2 is tristated; when b2 drives b, b1 is tristated. Thus, there is no logic contention. If there is contention on a tri net, it is resolved by using strength levels. If there are two signals of opposite values and same strength, the resulting value of the tri net is x .

A.3.2 trireg

Keyword trireg is used to model nets having capacitance that stores values. The default strength for trireg nets is medium . Nets of type trireg are in one of two states:

  • Driven state At least one driver drives a , , or x value on the net. The value is continuously stored in the trireg net. It takes the strength of the driver.

  • Capacitive state All drivers on the net have high impedance ( z) value. The net holds the last driven value. The strength is small , medium , or large (default is medium ).

trireg (large) out;wire a, control;bufif1 (out, a, control); // net out gets value of a when control = 1; //when control = 0, out retains last value of a //instead of going to z . strength is large.
A.3.3 tri0 and tri1

Keywords tri0 and tri1 are used to model resistive pulldown and pullup devices. A tri0 net has a value if nothing is driving the net. Similarly, tri1 net has a value if nothing is driving the net. The default strength is pull .

tri0 out;wire a, control;bufif1 (out, a, control); //net out gets the value of a when control = 1; //when control = 0, out gets the value 0 instead //of z . If out were declared as tri1 , the //default value of out would be instead of .
A.3.4 supply0 and supply1

Keyword supply1 is used to model a power supply. Keyword supply0 is used to model ground. Nets declared as supply1 or supply0 have constant logic value and a strength level supply (strongest strength level).

supply1 vcc; //all nets connected to vcc are connected to power supplysupply0 gnd; //all nets connected to gnd are connected to ground
A.3.5 wor, wand, trior, and triand

When there is logic contention, if we simply use a tri net, we will get an x . This could be indicative of a design problem. However, sometimes the designer needs to resolve the final logic value when there are multiple drivers on the net, without using strength levels. Keywords wor , wand , trior , and triand are used to resolve such conflicts. Net wand perform the and operation on multiple driver logic values. If any value is , the value of the net wand is . Net wor performs the or operation on multiple driver values. If any value is , the net wor is . Nets triand and trior have the same syntax and function as the nets wor and wand . The example below explains the function.

wand out1;wor out2;buf (out1, 1'b0);buf (out1, 1'b1); //out1 is a wand net; gets the final value 1'b0buf (out2, 1'b0);buf (out2, 1'b1); //out2 is a wor net; gets the final value 1'b1
Appendix B. List of PLI Routines

A list of PLI acc_ and tf_ routines is provided. VPI routines are not listed. Names, the argument list, and a brief description of the routine are shown for each PLI routine. For details regarding the use of each PLI routine, refer to the IEEE Standard Verilog Hardware Description Language document.

[1] See the "IEEE Standard Verilog Hardware Description Language" document for details on VPI routines.

B.1 Conventions

Conventions to be used for arguments are shown below.

Convention

Meaning

char *format

Pass formatted string

char *

Pass name of object as a string

underlined arguments

Arguments are optional

*

Pointer to the data type

.........

More arguments of the same type

B.2 Access Routines

Access routines are classified into five categories: handle, next, value change link, fetch, and modify routines.

B.2.1 Handle Routines

Handle routines return handles to objects in the design. The names of handle routines always starts with the prefix acc_handle_ . See .

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Verilog HDL: A Guide to Digital Design and Synthesis [With CDROM]»

Look at similar books to Verilog HDL: A Guide to Digital Design and Synthesis [With CDROM]. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Verilog HDL: A Guide to Digital Design and Synthesis [With CDROM]»

Discussion, reviews of the book Verilog HDL: A Guide to Digital Design and Synthesis [With CDROM] and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.