How do we prevent selected parameters of a module, Computer Engineering

Assignment Help:

How  do  I  prevent  selected  parameters  of  a  module  from  being  overridden  during instantiation?

If a specific parameter within a module must be prevented from being overridden, then it must be  declared  using  the  localparam  construct,  rather  than  parameter  construct.  Localparam construct has been introduced from Verilog-2001. Note that a localparam variable is fully identical to being  defined  as  a  parameter,  too.  In  the  below example,  localparam  construct  is  used  to specify num_bits, and thus trying to override it directly gives an error message.

1458_cse.png

Consider that, though, that, since width and depth are specified using the parameter construct, they can be overridden at the time of instantiation or using defparam, and thus will indirectly override the num_bits values. Usually, localparam constructs are useful in defining new and localized identifiers whose values are derived from regular parameters.

 

 


Related Discussions:- How do we prevent selected parameters of a module

Show organisation of clos network, Q. Show Organisation of Clos network? ...

Q. Show Organisation of Clos network? Clos network: This network was designed by Clos (1953).  It's a non-blocking network and offers full connectivity similar to crossbar netw

Construct a shift register from S-R flip-flops, Construct a shift register ...

Construct a shift register from S-R flip-flops. Explain its working. Ans: S-R Flip-Flop Shift Register: Shift registers can be built through using SR flip-flops. Fig.(a)

Define about the objects, Define about the Objects The object notation...

Define about the Objects The object notation is the same in basic form as that for a class. There are three differences among the notations, these are given below: With

What are primary keys and foreign keys, What are primary keys and foreign k...

What are primary keys and foreign keys? Primary keys are the unique identifiers for every row. They must have unique values and cannot be null. Due to their significance in rel

State about sixth generation electronic computers, Sixth Generation (1990 -...

Sixth Generation (1990 - ) This  generation  begun  with  many  gains  in  parallel  computing,  both  in  hardware area and in improved understanding of how to build up algori

What is frontpage, Front page is a software used to make a webpage.

Front page is a software used to make a webpage.

Balance - principles of composition, Balance The balance of an image ca...

Balance The balance of an image can be thought of as the distribution of visual weight within the piece. A piece of art can be structured so that the elements create a sense of

Illustrate domain name system, Q. Illustrate Domain Name System? Domain...

Q. Illustrate Domain Name System? Domain name is a name which is given to a network for ease of reference. Domain refers to a group of computers which are known by a single com

Determine the 2's complement subtraction, Perform 2's complement subtractio...

Perform 2's complement subtraction of (7) 10 - (11) 10 . Ans. 2's Complements Subtraction of (7) 10 - (11) 10 Firstly convert the decimal numbers 7 and 11 to there binary e

Pvm communication model, Q. PVM communication model? A nonblocking rece...

Q. PVM communication model? A nonblocking receive as soon as returns with either data or a flag that data hasn't arrived while a blocking receive returns only when data is in r

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd