📄 class.ptf
字号:
#
# DO NOT MODIFY THIS FILE
#
CLASS altera_up_avalon_to_external_bus_bridge
{
CB_GENERATOR
{
HDL_FILES
{
FILE
{
use_in_simulation = "1";
use_in_synthesis = "1";
type = "verilog";
filepath = "hdl/Altera_UP_Avalon_to_External_Bus_Bridge.v";
}
FILE
{
use_in_simulation = "1";
use_in_synthesis = "1";
type = "vhdl";
filepath = "hdl/Altera_UP_Avalon_to_External_Bus_Bridge.vhd";
}
}
top_module_name = "Altera_UP_Avalon_to_External_Bus_Bridge.v:Altera_UP_Avalon_to_External_Bus_Bridge";
emit_system_h = "0";
LIBRARIES
{
}
}
MODULE_DEFAULTS global_signals
{
class = "altera_up_avalon_to_external_bus_bridge";
class_version = "6.0";
SYSTEM_BUILDER_INFO
{
Instantiate_In_System_Module = "1";
Has_Clock = "1";
Default_Module_Name = "avalon_to_external_bus_bridge";
Top_Level_Ports_Are_Enumerated = "1";
}
COMPONENT_BUILDER
{
GLS_SETTINGS
{
}
}
PORT_WIRING
{
PORT clk
{
width = "1";
width_expression = "";
direction = "input";
type = "clk";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT reset
{
width = "1";
width_expression = "";
direction = "input";
type = "reset";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
}
WIZARD_SCRIPT_ARGUMENTS
{
Size_Value = "4";
Size_Multiple = "1";
hdl_parameters
{
addr_bits = "18";
data_bits = "16";
addr_low = "1";
byte_en_bits = "2";
}
}
SIMULATION
{
DISPLAY
{
}
}
SLAVE avalon_slave
{
SYSTEM_BUILDER_INFO
{
Bus_Type = "avalon";
Address_Group = "1";
Has_Clock = "0";
Address_Width = "-1";
Address_Alignment = "dynamic";
Data_Width = "8";
Has_Base_Address = "1";
Has_IRQ = "0";
Setup_Time = "0";
Hold_Time = "0";
Read_Wait_States = "peripheral_controlled";
Write_Wait_States = "peripheral_controlled";
Read_Latency = "1";
Maximum_Pending_Read_Transactions = "0";
Active_CS_Through_Read_Latency = "0";
Is_Printable_Device = "0";
Is_Memory_Device = "1";
Is_Readable = "1";
Is_Writable = "1";
Minimum_Uninterrupted_Run_Length = "1";
}
COMPONENT_BUILDER
{
AVS_SETTINGS
{
Setup_Value = "0";
Read_Wait_Value = "1";
Write_Wait_Value = "1";
Hold_Value = "0";
Timing_Units = "cycles";
Read_Latency_Value = "1";
Minimum_Arbitration_Shares = "1";
Active_CS_Through_Read_Latency = "0";
Max_Pending_Read_Transactions_Value = "1";
Address_Alignment = "dynamic";
Is_Printable_Device = "0";
Interleave_Bursts = "0";
interface_name = "Avalon Slave";
external_wait = "1";
Is_Memory_Device = "1";
}
}
PORT_WIRING
{
PORT avalon_address
{
width = "-1";
width_expression = "((ADDR_BITS - 1)) - (0) + 1";
direction = "input";
type = "address";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT avalon_byteenable
{
width = "-1";
width_expression = "((BYTE_EN_BITS - 1)) - (0) + 1";
direction = "input";
type = "byteenable";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT avalon_chipselect
{
width = "1";
width_expression = "";
direction = "input";
type = "chipselect";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT avalon_read
{
width = "1";
width_expression = "";
direction = "input";
type = "read";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT avalon_write
{
width = "1";
width_expression = "";
direction = "input";
type = "write";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT avalon_writedata
{
width = "-1";
width_expression = "((DATA_BITS - 1)) - (0) + 1";
direction = "input";
type = "writedata";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT avalon_readdata
{
width = "-1";
width_expression = "((DATA_BITS - 1)) - (0) + 1";
direction = "output";
type = "readdata";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT avalon_waitrequest
{
width = "1";
width_expression = "";
direction = "output";
type = "waitrequest";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT acknowledge
{
width = "1";
width_expression = "";
direction = "input";
type = "export";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT address
{
width = "32";
width_expression = "";
direction = "output";
type = "export";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT bus_enable
{
width = "1";
width_expression = "";
direction = "output";
type = "export";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT byte_enable
{
width = "-1";
width_expression = "((BYTE_EN_BITS - 1)) - (0) + 1";
direction = "output";
type = "export";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT rw
{
width = "1";
width_expression = "";
direction = "output";
type = "export";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT write_data
{
width = "-1";
width_expression = "((DATA_BITS - 1)) - (0) + 1";
direction = "output";
type = "export";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
PORT read_data
{
width = "-1";
width_expression = "((DATA_BITS - 1)) - (0) + 1";
direction = "input";
type = "export";
is_shared = "0";
vhdl_record_name = "";
vhdl_record_type = "";
}
}
}
}
USER_INTERFACE
{
USER_LABELS
{
name = "Avalon to External Bus Bridge";
technology = "University Program DE1 Board,University Program DE2 Board";
}
WIZARD_UI the_wizard_ui
{
title = "UP Avalon to External Bus Bridge - {{ $MOD }}";
CONTEXT
{
WSA="WIZARD_SCRIPT_ARGUMENTS";
H = "WIZARD_SCRIPT_ARGUMENTS/hdl_parameters";
M = "";
SBI_global_signals = "SYSTEM_BUILDER_INFO";
SBI_avalon_slave = "SLAVE avalon_slave/SYSTEM_BUILDER_INFO";
# The following signals have parameterized widths:
PORT_avalon_address = "SLAVE avalon_slave/PORT_WIRING/PORT avalon_address";
PORT_avalon_byteenable = "SLAVE avalon_slave/PORT_WIRING/PORT avalon_byteenable";
PORT_avalon_writedata = "SLAVE avalon_slave/PORT_WIRING/PORT avalon_writedata";
PORT_avalon_readdata = "SLAVE avalon_slave/PORT_WIRING/PORT avalon_readdata";
PORT_byte_enable = "SLAVE avalon_slave/PORT_WIRING/PORT byte_enable";
PORT_write_data = "SLAVE avalon_slave/PORT_WIRING/PORT write_data";
PORT_read_data = "SLAVE avalon_slave/PORT_WIRING/PORT read_data";
}
# Modify the peripherals parameters
$H/addr_bits = "{{ log2(($WSA/Size_Value * $WSA/Size_Multiple) / ($H/data_bits / 8)) }}";
$H/addr_low = "{{ ceil(log2($H/data_bits / 8)) }}";
$H/byte_en_bits = "{{ ($H/data_bits / 8) }}";
error = "{{
if (($WSA/Size_Value * $WSA/Size_Multiple) <= ($H/data_width / 8))
'The data width must be less than the depth';
else
'';
}}";
# Inform SOPC Builder what is the width and
# depth of the memory mapped peripheral
$PORT_avalon_address/width = "{{ $H/addr_bits; }}";
$PORT_avalon_byteenable/width = "{{ $H/byte_en_bits; }}";
$PORT_avalon_writedata/width = "{{ $H/data_bits; }}";
$PORT_avalon_readdata/width = "{{ $H/data_bits; }}";
$PORT_byte_enable/width = "{{ $H/byte_en_bits; }}";
$PORT_write_data/width = "{{ $H/data_bits; }}";
$PORT_read_data/width = "{{ $H/data_bits; }}";
$SBI_avalon_slave/Address_Width = "{{ $H/addr_bits; }}";
$SBI_avalon_slave/Data_Width = "{{ $H/data_bits; }}";
GROUP
{
GROUP size
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -