25 lines
615 B
Tcl
25 lines
615 B
Tcl
|
|
# keep interface-mess out of the way - keeping it pretty is a waste of time
|
|
|
|
proc ad_alt_intf {type name dir width} {
|
|
|
|
if {(($type eq "clock") && ($dir eq "input"))} {
|
|
add_interface if_${name} clock sink
|
|
add_interface_port if_${name} ${name} clk ${dir} ${width}
|
|
return
|
|
}
|
|
|
|
if {(($type eq "clock") && ($dir eq "output"))} {
|
|
add_interface if_${name} clock source
|
|
add_interface_port if_${name} ${name} clk ${dir} ${width}
|
|
return
|
|
}
|
|
|
|
if {$type eq "signal"} {
|
|
add_interface if_${name} conduit end
|
|
add_interface_port if_${name} ${name} s_${name} ${dir} ${width}
|
|
return
|
|
}
|
|
}
|
|
|