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.

how to use wait statement for memory in verilog

Status
Not open for further replies.

Mkanimozhi

Full Member level 4
Joined
Aug 8, 2007
Messages
193
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
3,445
verilog wait

hi to every one
here in the below mentioned code i am getting error on wait sout,

sout is my memory , how to use the meory in wait statement in verilog, i am not getting any error in vhdl.tell me the solution soon.

reg [5:0] sout [2:0];

always
begin
wait sout
for (y=1;y<=nby2by3;y=y+1)
temp[y] =sout[y];
end

regards
kanimozhi
 

wait verilog

Mkanimozhi said:
hi to every one
here in the below mentioned code i am getting error on wait sout,

sout is my memory , how to use the meory in wait statement in verilog, i am not getting any error in vhdl.tell me the solution soon.

reg [5:0] sout [2:0];

always
begin
wait sout
for (y=1;y<=nby2by3;y=y+1)
temp[y] =sout[y];
end

regards
kanimozhi

Is this for Synthesis or simulation alone? If it sim alone, try:

Code:
always @(sout)
begin
 
 for (y=1;y<=nby2by3;y=y+1)
   temp[y] =sout[y];
end

Or even better (if you have SystemVerilog aware tools)

Code:
always_comb
begin
 for (y=1;y<=nby2by3;y=y+1)
   temp[y] =sout[y];
end

HTH
Ajeetha, CVC
Next SV course starting in Feb 09 end. See:
https://sv-verif.blogspot.com for details
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top