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.

Whether synthesis tool will realize comparators or not

Status
Not open for further replies.

sky_above

Member level 2
Joined
May 14, 2018
Messages
43
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
375
In a Verilog code for a design the if -else block is as follows inside a state named State5 of a FSM which is a block of the top design. Will the synthesis tool be automatically implement comparators to compare Input1 with Input2 and also another comparator to compare Input3 and reg6? In that case there is no need to write the RTLs for the two comparators. Here reg6 whose content is read by the FSM is a register inside the design. Input1, Input2, Input3 are inputs to the FSM.

Code:
//Combinational part of the FSM
always @ (*)
begin: 

state0: ........
..............
..............
state5: if ((Input1 > Input2) && (Input3 <= reg6))

Enable=1'b0

else if  ((Input1 < Input2) && (Input3 <= reg6))

Enable = 1'b0;

else

Enable = 1'b0;

state6:
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top