Forum Discussion

Balaji_G_Intel's avatar
Balaji_G_Intel
Icon for New Contributor rankNew Contributor
6 years ago

Whether the latches in design power-up with a default value 0 ?

According to Quartus Handbook on Topic Power-Up Level - "Registers in the device core hardware power up to 0 in all Altera devices." Do Latches also implemented with same behavior? If so how to enable them. Current default does not seem to have this power-up value.

1 Reply

  • ak6dn's avatar
    ak6dn
    Icon for Regular Contributor rankRegular Contributor

    Physical registers power up to logic zero in the devices, but you can get a register to effectively power up to a logic one by inserting the sense of the logic (and Quartus can do that for you automatically). Thus the declarations (in verilog) 'reg somereg = 0;' and 'reg someother = 1;' are both legal and the registers will effectively power up to 0/1 respectively.

    Latches are built with logic, so they will default to the value you have them assume (ie, can be 0 or 1 or 0/1 (ie, unknown)) depending on how you code the latch.