Methods and apparatus are provided for implementing a programmable device
including a processor core, a hardware accelerator, and secondary
components such as memory. A designer efficiently selects one or more
code sequences for acceleration. A hardware accelerator is generated with
multiple master ports to allow efficient access to memory. Profiling
information can be provided to allow efficient selection of code
sequences.