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

How to reduce total amount of disk space in ftp, Q. How to reduce total amo...

Q. How to reduce total amount of disk space in FTP? FTP service compress files to reduce total amount of disk space the files require. Before transferring a file user should te

How many voice channel have a master group, A Master group consists of? ...

A Master group consists of? A master group have 300 voice channels.

Artificial intelligence, 2. The Turing test has often been incorrectly inte...

2. The Turing test has often been incorrectly interpreted as being a test of whether or not a person could distinguish between responses from a computer and responses from a person

What happens if a function module runs in an update task, What happens if a...

What happens if a function module runs in an update task? The system performs the module processing asynchronously.  Instead of carrying out the call immediately, the system w

naming convention in local scope variables, Description Variables show ...

Description Variables show values that can be changed within a procedure or function. Local scope variables are placeholders that reside within a function- or a script-body.

Select-options and parameters statement , The fields specified by select-op...

The fields specified by select-options and parameters statement cannot be grouped together in the selection screen. No, the fields specified by select-options and parameters s

Why we need parallel programming languages, Q. Why we need parallel program...

Q. Why we need parallel programming languages? The parallel programming languages are created for parallel computer environments.  These are developed either by creating new la

Which technique are used to gain on the number pairs, Explain the technique...

Explain the techniques, which are used to gain on the number pairs. In rural areas, subscribers are usually dispersed. This is both unessential and expensive to give a dedicate

Ai applications, AI Applications Search is a crucial component of an AI...

AI Applications Search is a crucial component of an AI system, and the search functions are performed over large quantities of difficult structured data using unstructured inpu

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