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

Navigation to a subsequent screen, Navigation to a subsequent screen can be...

Navigation to a subsequent screen can be specified statically/dynamically Yes, navigation to a subsequent screen can be specified statically.

The average height or weight, A script kept information on potential subjec...

A script kept information on potential subjects for an experiment in a vector of structures known as "subjects".  The following show an example of what the contents may be: >> subj

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

Front page is a software used to make a webpage.

Define the unified modelling language, Define the Unified Modelling Languag...

Define the Unified Modelling Language  (UML) is used to express construct and relationships of complex systems. This was created in response to a request for proposal (RFP) fro

Explain about subsystem and object of object oriented, Explain about subsys...

Explain about subsystem and object of object oriented modeling A subsystem is a grouping of elements of that constitutes a specification of behaviour offered by other contained

What is centralized spc, What is centralized SPC, what are its modes of ope...

What is centralized SPC, what are its modes of operation? In this centralized control, all the control equipment is replaced through a single processor that must be quite power

Explain the role of a bus arbiter in a multiprocessor, Explain the role of ...

Explain the role of a bus arbiter in a multiprocessor configuration. Bus arbiter: Which functions to resolve priority between bus masters and allows only one device at a time t

General principles of pruning, General principles of pruning: The gene...

General principles of pruning: The general principles are such that: 1. Given a node N that can be chosen by player one, thus if there is another node, X, along any path,

Explain the message passing interface, Q. Explain the Message Passing Inter...

Q. Explain the Message Passing Interface? The Message Passing Interface (MPI) is a universal benchmark for providing communication among multiple simultaneous processes on a di

Difference between property get, Set Value is ready to ActiveX Object from ...

Set Value is ready to ActiveX Object from the form. Let Value is retried to ActiveX Object from the form. Get- Assigns the value of an expression to a variable or property.

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