Need example of Verilog design with control flow hidden

OP (Company: Oxford University) #3444352
Rate this post
• ▲ useful
▼ not useful
Hello,

I am working with behavioral Verilog design. Can anyone help me to get
an idea about how control flow is flattened out in Verilog and people
usually claim that control flow in Verilog is obscure and control flow 
is
encoded in Verilog in data-encoded way.

Can someone give me a small example (say a FSM, or a counter) and help 
me
to understand that how is control flow in Verilog is encoded in 
data-driven way?

I would appreciate any help in this regard.

Many thanks in advance.
Thank You.
#3449781
Rate this post
• ▲ useful
▼ not useful
Rajdeep Mukherjee wrote:
> I would appreciate any help in this regard.

Hint:#1
Book 100 Power Tips --> VERILOG
from EVGENT STAVINOV google for EVGENT STAVINOV
Link:
http://www.amazon.com/100-Power-Tips-FPGA-Designers/dp/1461186293

I got my for free.
LinK:
http://outputlogic.com/100_fpga_power_tips

#############################################################
On EVGENT STAVINOV Homepage a usefull Tips how to Flattener a
Design via Command Line Interface.
#############################################################

Hint#2:
Picoblaze - promgramm ändern ohne neue Synthese / implementierung
Link:
Beitrag "Picoblaze - promgramm ändern ohne neue Synthese / implementierung"
Link:
http://forums.xilinx.com/xlnx/board/message?board.id=PicoBlaze&message.id=3
######################################################################## 
###
Greetings Holger.

http://www.edautils.com/Flattener.html
Guest #3451444
Rate this post
• ▲ useful
▼ not useful
Hello,

Many thanks for your reply.
I would like to clarify here that what I meant by “data-encoded way”. I 
am working with behavioral synthesizable subset of Verilog that allows 
control-flow statements like if-else and switch(case) but does not allow 
repeat, for, while, continue statements. So, in a sense, the behavioral 
code structure in Verilog has a flattened control-flow structure in it 
(without these loop constructs). This is easy to see because you can 
model the effect of while or for loops using only if-then-else and 
switch(case), but in a data-encoded way.

So, the FSM examples in Verilog has the same modeling with flattened 
control-flow. Can you please give me some more insight or references on 
this. From your experience, did you come across any behavioral Verilog 
designs that has an explicit control-flow structure which is not 
flattened.

Also, please inform whether any behavioral synthesis tool allow loop 
constructs like for, while, repeat, an forever?

Many Thanks in advance.
Looking forward.

Regards,
Rajdeep

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.