Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

hard code a value?

Is it possible using the schematic drawings to hard code a specific value to something like a register? Quartus has a constant symbol but I'm not sure what to do with it. How do I connect it to things?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I also don't know how to use the constant symbol in a schematic. :mad: In case that you need only a single bit you can use the "gnd" or "vcc" symbol. If you need to assign a value to a bus, you can use the LPM_CONSTANT. The symbol is located under megafunctions -> gates.:)

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello,

    in plain HDL designs, I have constant objects in library work, that can be referenced througout the hierarchy, e. g. as a compilation switch in a VHDL generate statement or a numerical constant in arithmetics. The constant symbold probably performs similar. Or it's local to the bdf generated entity, then it could be referenced in parameter lists (generic instantiations) of subblocks.

    Regards,

    Frank