The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 27th, 2024, 2:35pm
Pages: 1
Send Topic Print
How to replace "wait" statement in synthesis ?!? (Read 2350 times)
AdamPod
New Member
*
Offline



Posts: 2

How to replace "wait" statement in synthesis ?!?
Nov 23rd, 2006, 12:01pm
 
Hi, I need to replace "wait" statement in order to perform synthesis of my behavioral model... Is there any known way to do this ?!? I found on the www.eecs.berkeley.edu/~chinnery/synthesizableVerilog.html website some solution, by it does not fulfil all my requirements. Below is a peace of my code I need to synthesize:

always@(state)
begin  
     case (state)

read:
     begin
           XEN_EEPROM_Read <= 1'b1;
           eeprom_reading <= 1;
           ER <= read_test_count;
           wait (eeprom_reading == 0);
           if (ED_int == EV_test)
                 failure <= 0;
           else
                 failure <= 1;
           parity <= ~parity;
           read_test_count <= read_test_count + 1;
           state <= idle;
     end
.......

eeprom_reading signal is set to zero when appropriate counter reach given value - the whole process is put in separate "always" block. In the rest of the cases there is no more of "wait" statements. I will be glad if anyone knew how rewrite this code properly and could gice my some hint.
Back to top
 
 
View Profile   IP Logged
jbdavid
Community Fellow
*****
Offline



Posts: 378
Silicon Valley
Re: How to replace "wait" statement in synthesis ?
Reply #1 - Dec 8th, 2006, 10:36pm
 
Sorry AdamPod, the bulk of the experience here is with Analog behavioral models... I think the last time I synthesized any HDL was in my VLSI design class at the university probably about 16 years ago..
I only do digital hdl (I call it Verilog-D) for testbench related stuff..
Maybe Janik Begeron's site would have better help?
Good luck.
Back to top
 
 

jbdavid
Mixed Signal Design Verification
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.