Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| programmable-logic:guides:microblaze-adding-ddr [2021/06/08 16:42] – Arthur Brown | programmable-logic:guides:microblaze-adding-ddr [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Adding DDR Memory to a Microblaze Design ====== | ====== Adding DDR Memory to a Microblaze Design ====== | ||
| - | ===== Add the MIG IP and Connect its Input and Output Ports ===== | + | |
| + | ===== Add the MIG IP ===== | ||
| + | / | ||
| When creating a design with DDR, it's best to add the DDR interface first, as it is typically also used to generate the clock or clocks that will be used by the rest of your design. | When creating a design with DDR, it's best to add the DDR interface first, as it is typically also used to generate the clock or clocks that will be used by the rest of your design. | ||
| Line 9: | Line 11: | ||
| </ | </ | ||
| ---- | ---- | ||
| + | ===== MIG Clocking ===== | ||
| <columns 100% 50%> | <columns 100% 50%> | ||
| Delete the " | Delete the " | ||
| Line 34: | Line 36: | ||
| It's important to note that the " | It's important to note that the " | ||
| - | --> Open this dropdown to learn how to add your board' | ||
| - | <WRAP group> | ||
| {{section> | {{section> | ||
| + | |||
| ---- | ---- | ||
| - | < | + | |
| + | < | ||
| Find the set_property and create_clock constraints for your board' | Find the set_property and create_clock constraints for your board' | ||
| Line 47: | Line 49: | ||
| {{ : | {{ : | ||
| </ | </ | ||
| - | </ | ||
| - | <-- | ||
| - | ---- | ||
| + | ---- | ||
| + | ===== MIG Reset ===== | ||
| <columns 100% 50%> | <columns 100% 50%> | ||
| Next, the MIG's reset pin will be connected to the board' | Next, the MIG's reset pin will be connected to the board' | ||
| Line 64: | Line 65: | ||
| </ | </ | ||
| ---- | ---- | ||
| + | |||
| + | ===== Other MIG Ports ===== | ||
| + | |||
| + | The MIG block may have other ports which will need to be connected to ensure that it works correctly. This section discusses each of those ports. | ||
| --> Open this dropdown if your MIG has a " | --> Open this dropdown if your MIG has a " | ||
| Line 71: | Line 76: | ||
| {{add-const.png? | {{add-const.png? | ||
| </ | </ | ||
| + | ---- | ||
| <columns 100% 50%> | <columns 100% 50%> | ||
| Double click on the block to open it's configuration wizard and modify it to have a Value of " | Double click on the block to open it's configuration wizard and modify it to have a Value of " | ||
| Line 77: | Line 82: | ||
| {{configure-const.png? | {{configure-const.png? | ||
| </ | </ | ||
| + | ---- | ||
| <columns 100% 50%> | <columns 100% 50%> | ||
| Connect its output port to the " | Connect its output port to the " | ||
| Line 85: | Line 90: | ||
| <-- | <-- | ||
| ---- | ---- | ||
| + | |||
| + | ===== Additional Clocks ===== | ||
| + | If your design requires more clocks than just the ui_clk provided by the MIG, you will need to add a clocking wizard IP that is driven by the MIG's ui_clk. | ||
| <columns 100% 50%> | <columns 100% 50%> | ||
| - | At the end of this process, | + | Use the Add IP button to search for and add a Clocking Wizard to the design. |
| < | < | ||
| - | {{mig-block-design-final.png?600|}} | + | {{add-clocking-wizard-ip.png?600|}} |
| </ | </ | ||
| + | ---- | ||
| + | <columns 100% 50%> | ||
| + | Manually connect the Clocking Wizard' | ||
| + | < | ||
| + | {{connect-wizard.png? | ||
| + | </ | ||
| + | ---- | ||
| + | <columns 100% 50%> | ||
| + | Finally, double-click on the Clocking Wizard to open and configure it. The third tab, //Output Clocks// contains all of the settings required to specify how many clocks you need, and of what frequencies. The screenshot to the right shows the wizard configured to create a 100 MHz clk_out1 and a 50 MHz clk_out2. | ||
| - | ===== Connect the MIG to the Microblaze Processor ===== | + | If your design requires additional clocks (such as for an ext_spi_clock pin), they should be added here. |
| - | FIXME | + | < |
| + | {{configure-clocks.png? | ||
| + | </ | ||
| + | **Note:** //If you aren't sure that you have all of the clocks you need, don't worry, you can always come back and add them by reconfiguring this IP. This task can be performed whenever in the design process it becomes necessary.// | ||
| + | ---- | ||
| + | ===== MIG Success ===== | ||
| + | <columns 100% 50%> | ||
| + | At the end of this process, the block design will look something like this: | ||
| + | < | ||
| + | {{connect-wizard.png? | ||
| + | </ | ||
| + | ---- | ||
| + | ===== Connect the MIG to the Microblaze Processor ===== | ||
| + | <columns 100% 50%> | ||
| + | To connect the MIG's AXI interface to the processor, click the **Run Connection Automation** button in the green banner at the top of the block design. | ||
| + | < | ||
| + | {{ : | ||
| + | </ | ||
| + | ---- | ||
| + | <columns 100% 50%> | ||
| + | In the dialog that pops up, you will be presented with several options for interfaces that can be connected to other interfaces. Both the Microblaze' | ||
| + | < | ||
| + | {{ : | ||
| + | </ | ||

