Цитата(alexPec @ Aug 13 2012, 13:08)

Незнай как у Вас, а у меня все ноги идущие на флешь сконфигурированы как "Regular IO" или что-то в этом роде, точно не помню.
В топ-левел проекте цепляю их к СОПЦу, на EPCS контроллер. Иначе ругается в фиттере, что те ноги, которые идут на флешь, заняты.
Я тоже столкнулся с тем, что фиттер на это ругается.
А надо ли цеплять на на EPCS контроллер все ноги, идущие на EPCS? Похоже, что не надо, они цепляются Квартусом автоматически.
Вот что об этом написано в Embedded Peripherals IP User Guide, раздел 5. EPCS Serial Flash Controller Core.
Там сказано, что основной способ - это использовать dedicated pins как они есть, а не назначать их как "Regular IO":
The Altera EPCS configuration device connects to the FPGA through dedicated pins on the FPGA, not through general-purpose I/O pins.
In all Altera device families except Cyclone III and Cyclone IV, the EPCS serial flash controller core does not create any I/O ports on the top-level SOPC Builder system module.
If the EPCS device and the FPGA are wired together on a board for configuration using the EPCS device (in other words, active serial configuration mode), no further connection is necessary
between the EPCS serial flash controller core and the EPCS device.
When you compile the SOPC Builder system in the Quartus II software, the EPCS serial flash controller core signals are routed automatically to the device pins for the EPCS device. Если это действительно так, то у меня такой вопрос.
Я весь проект делаю в .bdf и из QSYS использую .bsf.
Как мне тогда правильно воспользоваться вышеприведённым абзацем из описания по EPCS Serial Flash Controller Core?
Просто оставить пины EPCS-контроллера не подключенными даже без подвода к ним символов Input и Output?
Нажмите для просмотра прикрепленного файлаИ назначать ли в .qsf конкретные пины для контактов EPCS-контроллера? Но тогда ( как было сказано выше ) будет ругаться фиттер ....
Как правильно поступить?
А вот в альтернативном варианте с назначением как "Regular IO" действительно все ноги, идущие на EPCS, надо цеплять на EPCS контроллер:
You, however, have the option not to use the dedicated pins on the FPGA (active serial configuration mode) by turning off the respective parameters in the MegaWizard interface.
When this option is turned off or when the target device is a Cyclone III or Cyclone IV device, you have the flexibility to connect the output pins, which are exported to the top-level design, to any EPCS devices.
Perform the following tasks in the Quartus® II software to make the necessary pin assignments:
■ On the Dual-purpose pins page (Assignments > Devices > Device and Pin
Options), ensure that the following pins are assigned to the respective values:
■ Data[0] = Use as regular I/O
■ Data[1] = Use as regularr I/O
■ DCLK = Use as regular I/O
■ FLASH_nCE/nCS0 = Use as regular I/O
■ Using the Pin Planner (Assignments > Pins), ensure that the following pins are
assigned to the respective configuration functions on the device:
■ data0_to_the_epcs_controller = DATA0
■ sdo_from the_epcs_controller = DATA1,ASDO
■ dclk_from_epcs_controller = DCLK
■ sce_from_the_epcs_controller = FLASH_nCEИменно этот вариант судя по всему и использовали alexPec и torik и проблем не было?
Как лучше поступить?
1-й вариант рекомендуется Альтерой как основной, но по нему есть вопросы.
2-й вариант рекомендуется Альтерой как вторичный, но по нему вроде бы всё ясно?
Вообщем, хотелось бы разобраться в этом вопросе.
И ещё, какой из этих 2-х вариантов подходит для случая, когда в EPCS хранится и конфигурационный файл для схемы AS, и программа для NIOS?
P.S. Напоминаю, что речь идёт о Cyclone IV.