text stringlengths 0 207k |
|---|
// software and tools, and its AMPP partner logic functions, and any output |
// files any of the foregoing (including device programming or simulation |
// files), and any associated documentation or information are expressly subject |
// to the terms and conditions of the Altera Program License Subscription |
// Agreement, Altera MegaCore Function License Agreement, or other applicable |
// license agreement, including, without limitation, that your use is for the |
// sole purpose of programming logic devices manufactured by Altera and sold by |
// Altera or its authorized distributors. Please refer to the applicable |
// agreement for further details. |
// $Id: //acds/rel/14.1/ip/merlin/altera_merlin_width_adapter/altera_merlin_width_adapter.sv#1 $ |
// $Revision: #1 $ |
// $Date: 2014/10/06 $ |
// $Author: swbranch $ |
// ----------------------------------------------------- |
// Merlin Width Adapter |
// ----------------------------------------------------- |
`timescale 1 ns / 1 ns |
module altera_merlin_width_adapter |
#( |
parameter IN_PKT_ADDR_L = 0, |
parameter IN_PKT_ADDR_H = 31, |
parameter IN_PKT_DATA_L = 32, |
parameter IN_PKT_DATA_H = 63, |
parameter IN_PKT_BYTEEN_L = 64, |
parameter IN_PKT_BYTEEN_H = 67, |
parameter IN_PKT_TRANS_COMPRESSED_READ = 72, |
parameter IN_PKT_BYTE_CNT_L = 73, |
parameter IN_PKT_BYTE_CNT_H = 77, |
parameter IN_PKT_BURSTWRAP_L = 78, |
parameter IN_PKT_BURSTWRAP_H = 82, |
parameter IN_PKT_BURST_SIZE_L = 83, |
parameter IN_PKT_BURST_SIZE_H = 85, |
parameter IN_PKT_RESPONSE_STATUS_L = 86, |
parameter IN_PKT_RESPONSE_STATUS_H = 87, |
parameter IN_PKT_TRANS_EXCLUSIVE = 88, |
parameter IN_PKT_BURST_TYPE_L = 89, |
parameter IN_PKT_BURST_TYPE_H = 90, |
parameter IN_PKT_ORI_BURST_SIZE_L = 91, |
parameter IN_PKT_ORI_BURST_SIZE_H = 93, |
parameter IN_ST_DATA_W = 110, |
parameter OUT_PKT_ADDR_L = 0, |
parameter OUT_PKT_ADDR_H = 31, |
parameter OUT_PKT_DATA_L = 32, |
parameter OUT_PKT_DATA_H = 47, |
parameter OUT_PKT_BYTEEN_L = 48, |
parameter OUT_PKT_BYTEEN_H = 49, |
parameter OUT_PKT_TRANS_COMPRESSED_READ = 54, |
parameter OUT_PKT_BYTE_CNT_L = 55, |
parameter OUT_PKT_BYTE_CNT_H = 59, |
parameter OUT_PKT_BURST_SIZE_L = 60, |
parameter OUT_PKT_BURST_SIZE_H = 62, |
parameter OUT_PKT_RESPONSE_STATUS_L = 63, |
parameter OUT_PKT_RESPONSE_STATUS_H = 64, |
parameter OUT_PKT_TRANS_EXCLUSIVE = 65, |
parameter OUT_PKT_BURST_TYPE_L = 66, |
parameter OUT_PKT_BURST_TYPE_H = 67, |
parameter OUT_PKT_ORI_BURST_SIZE_L = 68, |
parameter OUT_PKT_ORI_BURST_SIZE_H = 70, |
parameter OUT_ST_DATA_W = 92, |
parameter ST_CHANNEL_W = 32, |
parameter OPTIMIZE_FOR_RSP = 0, |
parameter PACKING = 1, // 1: default packing with avalon slave |
parameter CONSTANT_BURST_SIZE = 1, // 1: This is to optimize for Avalon only system as Avalon always send full size transaction |
parameter RESPONSE_PATH = 0, // 0: this is WA on command path response always merged, 1: this WA is on response path |
// Address alignment can be turned off (an optimisation) if all connected |
// masters only issue aligned addresses. |
parameter ENABLE_ADDRESS_ALIGNMENT = 1 |
) |
( |
input clk, |
input reset, |
output reg in_ready, |
input in_valid, |
input [ST_CHANNEL_W-1:0] in_channel, |
input [IN_ST_DATA_W-1:0] in_data, |
input in_startofpacket, |
input in_endofpacket, |
input out_ready, |
output reg out_valid, |
output reg [ST_CHANNEL_W-1:0] out_channel, |
output reg [OUT_ST_DATA_W-1:0] out_data, |
output reg out_startofpacket, |
output reg out_endofpacket, |
input [2:0] in_command_size_data |
); |
// ------------------------------------------------------------ |
// Local Parameters |
// ------------------------------------------------------------ |
localparam IN_NUMSYMBOLS = IN_PKT_BYTEEN_H - IN_PKT_BYTEEN_L + 1; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.