# The package naming convention is <core_name>_xmdf
|
# The package naming convention is <core_name>_xmdf
|
package provide rom_8x2k_lo_xmdf 1.0
|
package provide rom_8x2k_lo_xmdf 1.0
|
|
|
# This includes some utilities that support common XMDF operations
|
# This includes some utilities that support common XMDF operations
|
package require utilities_xmdf
|
package require utilities_xmdf
|
|
|
# Define a namespace for this package. The name of the name space
|
# Define a namespace for this package. The name of the name space
|
# is <core_name>_xmdf
|
# is <core_name>_xmdf
|
namespace eval ::rom_8x2k_lo_xmdf {
|
namespace eval ::rom_8x2k_lo_xmdf {
|
# Use this to define any statics
|
# Use this to define any statics
|
}
|
}
|
|
|
# Function called by client to rebuild the params and port arrays
|
# Function called by client to rebuild the params and port arrays
|
# Optional when the use context does not require the param or ports
|
# Optional when the use context does not require the param or ports
|
# arrays to be available.
|
# arrays to be available.
|
proc ::rom_8x2k_lo_xmdf::xmdfInit { instance } {
|
proc ::rom_8x2k_lo_xmdf::xmdfInit { instance } {
|
# Variable containg name of library into which module is compiled
|
# Variable containg name of library into which module is compiled
|
# Recommendation: <module_name>
|
# Recommendation: <module_name>
|
# Required
|
# Required
|
utilities_xmdf::xmdfSetData $instance Module Attributes Name rom_8x2k_lo
|
utilities_xmdf::xmdfSetData $instance Module Attributes Name rom_8x2k_lo
|
}
|
}
|
# ::rom_8x2k_lo_xmdf::xmdfInit
|
# ::rom_8x2k_lo_xmdf::xmdfInit
|
|
|
# Function called by client to fill in all the xmdf* data variables
|
# Function called by client to fill in all the xmdf* data variables
|
# based on the current settings of the parameters
|
# based on the current settings of the parameters
|
proc ::rom_8x2k_lo_xmdf::xmdfApplyParams { instance } {
|
proc ::rom_8x2k_lo_xmdf::xmdfApplyParams { instance } {
|
|
|
set fcount 0
|
set fcount 0
|
# Array containing libraries that are assumed to exist
|
# Array containing libraries that are assumed to exist
|
# Examples include unisim and xilinxcorelib
|
# Examples include unisim and xilinxcorelib
|
# Optional
|
# Optional
|
# In this example, we assume that the unisim library will
|
# In this example, we assume that the unisim library will
|
# be magically
|
# be magically
|
# available to the simulation and synthesis tool
|
# available to the simulation and synthesis tool
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type logical_library
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type logical_library
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount logical_library unisim
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount logical_library unisim
|
incr fcount
|
incr fcount
|
|
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo.asy
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo.asy
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type asy
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type asy
|
incr fcount
|
incr fcount
|
|
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo.ngc
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo.ngc
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type ngc
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type ngc
|
incr fcount
|
incr fcount
|
|
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo.sym
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo.sym
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type symbol
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type symbol
|
incr fcount
|
incr fcount
|
|
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo.v
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo.v
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog
|
incr fcount
|
incr fcount
|
|
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo.veo
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo.veo
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog_template
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog_template
|
incr fcount
|
incr fcount
|
|
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo.xco
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo.xco
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type coregen_ip
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type coregen_ip
|
incr fcount
|
incr fcount
|
|
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo_xmdf.tcl
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_lo_xmdf.tcl
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type AnyView
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount type AnyView
|
incr fcount
|
incr fcount
|
|
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount associated_module rom_8x2k_lo
|
utilities_xmdf::xmdfSetData $instance FileSet $fcount associated_module rom_8x2k_lo
|
incr fcount
|
incr fcount
|
|
|
}
|
}
|
|
|
# ::gen_comp_name_xmdf::xmdfApplyParams
|
# ::gen_comp_name_xmdf::xmdfApplyParams
|
|
|