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.

one clocked process + one combinatorial process

Status
Not open for further replies.

promach

Advanced Member level 4
Joined
Feb 22, 2016
Messages
1,199
Helped
2
Reputation
4
Reaction score
5
Trophy points
1,318
Activity points
11,636
For https://github.com/KastnerRG/riffa/blob/master/fpga/riffa_hdl/tx_port_channel_gate_128.v#L95-L107 , are there any reasons to use one clocked process + one combinatorial process ? Will a single clocked process work less better in real hardware implementation ?


Code Verilog - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
always @ (posedge CHNL_CLK) begin
    rChnlTx <= #1 (RST ? 1'd0 : _rChnlTx);
    rChnlLast <= #1 _rChnlLast;
    rChnlLen <= #1 _rChnlLen;
    rChnlOff <= #1 _rChnlOff;
end
 
always @ (*) begin
    _rChnlTx = CHNL_TX;
    _rChnlLast = CHNL_TX_LAST;
    _rChnlLen = CHNL_TX_LEN;
    _rChnlOff = CHNL_TX_OFF;
end

 

Its a style some designers use (and used to be mandated by synthesisors many many years ago).
One is not better than the other (but both have pros and cons).
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top