Article ID: 000087019 Content Type: Troubleshooting Last Reviewed: 11/24/2011

In DDR2 and DDR3 SDRAM Controller with UniPHY, Selecting VHDL Gives a Verilog HDL IP Core

Environment

  • Quartus® II Subscription Edition
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT

    Critical Issue

    Description

    If you select VHDL in the MegaWizard interface and generate a DDR2 or DDR3 SDRAM controller with UniPHY IP core, the generated core is in Verilog HDL.

    Resolution

    To generate a VHDL IP core follow these steps:

    1. In a text editor open <Quartus II directory>\ip\altera\uniphy\lib\common_ddrx.tcl.
    2. Search for the string "LANGUAGE" that appears in the following code: append param_str ",LANGUAGE=[get_generation_property HDL_LANGUAGE]"
    3. Change this line to the following code: append param_str ",LANGUAGE=vhdl"
    4. Continue searching for the next occurence of the string "LANGUAGE" which appears in the following code: if {[string compare -nocase [get_generation_property HDL_LANGUAGE] verilog] == 0} { add_file /.v {SYNTHESIS SUBDIR} puts "set_global_assignment -name VERILOG_FILE \[file join $::quartus(qip_path) .v\]" } else { add_file /.vhd {SYNTHESIS SUBDIR} puts "set_global_assignment -name VHDL_FILE \[file join $::quartus(qip_path) .vhd\]" }
    5. Comment out the if line, the else line, and the block of code in the conditional section so that the code in the "else" block always executes, similar to the following code: # if {[string compare -nocase [get_generation_property HDL_LANGUAGE] verilog] == 0} { # add_file /.v {SYNTHESIS SUBDIR} # puts "set_global_assignment -name VERILOG_FILE \[file join $::quartus(qip_path) .v\]" # } else { add_file /.vhd {SYNTHESIS SUBDIR} puts "set_global_assignment -name VHDL_FILE \[file join $::quartus(qip_path) .vhd\]" # }
    6. Use the MegaWizard interface to generate a UniPHY-based IP core.

    To generate a Verilog HDL IP core, restore the original common_ddrx.tcl file.

    Related Products

    This article applies to 1 products

    Intel® Programmable Devices