1 # The package naming convention is <core_name>_xmdf
2 package provide rom_8x2k_xmdf 1.0
4 # This includes some utilities that support common XMDF operations
5 package require utilities_xmdf
7 # Define a namespace for this package. The name of the name space
9 namespace eval ::rom_8x2k_xmdf {
10 # Use this to define any statics
13 # Function called by client to rebuild the params and port arrays
14 # Optional when the use context does not require the param or ports
15 # arrays to be available.
16 proc ::rom_8x2k_xmdf::xmdfInit { instance } {
17 # Variable containg name of library into which module is compiled
18 # Recommendation: <module_name>
20 utilities_xmdf::xmdfSetData $instance Module Attributes Name rom_8x2k
22 # ::rom_8x2k_xmdf::xmdfInit
24 # Function called by client to fill in all the xmdf* data variables
25 # based on the current settings of the parameters
26 proc ::rom_8x2k_xmdf::xmdfApplyParams { instance } {
29 # Array containing libraries that are assumed to exist
30 # Examples include unisim and xilinxcorelib
32 # In this example, we assume that the unisim library will
34 # available to the simulation and synthesis tool
35 utilities_xmdf::xmdfSetData $instance FileSet $fcount type logical_library
36 utilities_xmdf::xmdfSetData $instance FileSet $fcount logical_library unisim
39 utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k_xmdf.tcl
40 utilities_xmdf::xmdfSetData $instance FileSet $fcount type AnyView
43 utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k.sym
44 utilities_xmdf::xmdfSetData $instance FileSet $fcount type symbol
47 utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k.xco
48 utilities_xmdf::xmdfSetData $instance FileSet $fcount type coregen_ip
51 utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k.vho
52 utilities_xmdf::xmdfSetData $instance FileSet $fcount type vhdl_template
55 utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k.asy
56 utilities_xmdf::xmdfSetData $instance FileSet $fcount type asy
59 utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k.ngc
60 utilities_xmdf::xmdfSetData $instance FileSet $fcount type ngc
63 utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path rom_8x2k.vhd
64 utilities_xmdf::xmdfSetData $instance FileSet $fcount type vhdl
67 utilities_xmdf::xmdfSetData $instance FileSet $fcount associated_module rom_8x2k
72 # ::gen_comp_name_xmdf::xmdfApplyParams