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.

Help me with synthetic coding style in Verilog

Status
Not open for further replies.

zhangpengyu

Full Member level 3
Joined
Jun 28, 2004
Messages
172
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Activity points
1,164
help for verilog

Hi
guys!

always @( a )
b <= a;

Is this synthetic coding style?
If so,what will the code be synthesized to ?


Thanks!


zhpy
 

Re: help for verilog

that will synthesize to a wire...

a--b

the equlivilant statement would be

assign b = a;

jelydonut
 

help for verilog

yeah,

--
wire a, b;
assign b = a;
--
 

Re: help for verilog

Yes, it is synthisizable code. It is equivalent to assign statement and
there is nothing wrong with that style.

When the design gets complicated, for example, when there are tens
of variables in the sensitivity list, an always @ () statement saves the
day.

Both methods are acceptable and correct coding style. 8)

Kelvin
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top