Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

question about verilog behavioral model

Status
Not open for further replies.

alerta

Newbie level 4
Joined
Jul 25, 2005
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,339
the following is a pragraf of Verilog Behavioral Model of Synchronous Mobile SDRAM


task write_task;
begin
begin: write_op
integer i, j, k;
reg [`BIT] tmp_reg;
integer bank_id;
reg [8*8:1] str;

if(~burst_type)
increment_read;
else
interleave_read;

begin: write_seq
for(i = 0; i < WBL; i = i+1)
begin // { for loop
begin
.......


I don't know the meaning of "write_op " and "write_seq", they seems no use,
are they only a mark ,or the standard?
who can tell me,thanks
 

"write_op " and "write_seq", are just the name given to the block of code (from begin to end). This is useful when u want disable the execution of that block of code which is done by saying disable block name. That can be enabled again
 

hai
This is the concept of named blocks in verilog
You can name a block and disable a named block

eg >> begin:write_op
write_op is the name given to this particular block

You can have any number of named blocks in your design with a unique name
 

They are basically the names given to the particular block
 

Those are just the labels of the process. In small codes one may not find it much useful but while writing large code where u might have many process blocks (which may look similar) it is of great use to give the labels. these are for users reference only.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top