📄 gpif.c
字号:
//---------------------------------------------------------------------------//
// GPIF Program Code for Single
// This program configures the General Programmable Interface (GPIF) for FX2.
// Please do not modify sections of text which are marked as "DO NOT EDIT ...".
//
// DO NOT EDIT ...
// GPIF Initialization
// Interface Timing Async
// Internal Ready Init IntRdy=1
// CTL Out Tristate-able Binary
// SingleWrite WF Select 3
// SingleRead WF Select 2
// FifoWrite WF Select 1
// FifoRead WF Select 0
// Data Bus Idle Drive Tristate
// END DO NOT EDIT
// DO NOT EDIT ...
// GPIF Wave Names
// Wave 0 = FIFORd
// Wave 1 = FIFOWr
// Wave 2 = SnglRd
// Wave 3 = SnglWr
// GPIF Ctrl Outputs Level
// CTL 0 = CONVT# CMOS
// CTL 1 = RD# CMOS
// CTL 2 = WR# CMOS
// CTL 3 = CS# CMOS
// CTL 4 = unsed CMOS
// CTL 5 = unsed CMOS
// GPIF Rdy Inputs
// RDY0 = INT#
// RDY1 = RDY1
// RDY2 = RDY2
// RDY3 = RDY3
// RDY4 = RDY4
// RDY5 = TCXpire
// FIFOFlag = FIFOFlag
// IntReady = IntReady
// END DO NOT EDIT
// DO NOT EDIT ...
//
// GPIF Waveform 0: FIFORd
//
// Interval 0 1 2 3 4 5 6 Idle (7)
// _________ _________ _________ _________ _________ _________ _________ _________
//
// AddrMode Same Val Same Val Same Val Same Val Same Val Same Val Same Val
// DataMode NO Data NO Data NO Data Activate Activate NO Data NO Data
// NextData SameData SameData SameData SameData SameData SameData SameData
// Int Trig No Int No Int No Int No Int No Int No Int No Int
// IF/Wait Wait 2 IF Wait 1 Wait 1 Wait 1 Wait 240 Wait 6
// Term A INT#
// LFunc AND
// Term B INT#
// Branch1 Then 0
// Branch0 Else 2
// Re-Exec No
// Sngl/CRC Default Default Default Default Default Default Default
// CONVT# 1 1 1 1 1 1 0 1
// RD# 1 1 0 0 1 1 1 1
// WR# 1 1 1 1 1 1 1 1
// CS# 1 1 0 0 0 0 1 1
// unsed 1 1 1 1 1 1 1 1
// unsed 1 1 1 1 1 1 1 1
//
// END DO NOT EDIT
// DO NOT EDIT ...
//
// GPIF Waveform 1: FIFOWr
//
// Interval 0 1 2 3 4 5 6 Idle (7)
// _________ _________ _________ _________ _________ _________ _________ _________
//
// AddrMode Same Val Same Val Same Val Same Val Same Val Same Val Same Val
// DataMode NO Data NO Data NO Data NO Data NO Data NO Data NO Data
// NextData SameData SameData SameData SameData SameData SameData SameData
// Int Trig No Int No Int No Int No Int No Int No Int No Int
// IF/Wait Wait 2 Wait 9 IF Wait 1 Wait 1 Wait 1 Wait 1
// Term A INT#
// LFunc AND
// Term B INT#
// Branch1 ThenIdle
// Branch0 ElseIdle
// Re-Exec No
// Sngl/CRC Default Default Default Default Default Default Default
// CONVT# 1 0 1 1 1 1 1 1
// RD# 1 1 1 1 1 1 1 1
// WR# 1 1 1 1 1 1 1 1
// CS# 1 1 1 1 1 1 1 1
// unsed 1 1 1 1 1 1 1 1
// unsed 1 1 1 1 1 1 1 1
//
// END DO NOT EDIT
// DO NOT EDIT ...
//
// GPIF Waveform 2: SnglRd
//
// Interval 0 1 2 3 4 5 6 Idle (7)
// _________ _________ _________ _________ _________ _________ _________ _________
//
// AddrMode Same Val Same Val Same Val Same Val Same Val Same Val Same Val
// DataMode NO Data NO Data Activate Activate Activate Activate Activate
// NextData SameData SameData SameData SameData SameData SameData SameData
// Int Trig No Int No Int No Int No Int No Int No Int No Int
// IF/Wait Wait 2 Wait 2 Wait 3 Wait 1 Wait 1 Wait 1 Wait 1
// Term A
// LFunc
// Term B
// Branch1
// Branch0
// Re-Exec
// Sngl/CRC Default Default Default Default Default Default Default
// CONVT# 1 1 1 1 1 1 1 1
// RD# 1 0 1 1 1 1 1 1
// WR# 1 1 1 1 1 1 1 1
// CS# 1 0 1 1 1 1 1 1
// unsed 1 1 1 1 1 1 1 1
// unsed 1 1 1 1 1 1 1 1
//
// END DO NOT EDIT
// DO NOT EDIT ...
//
// GPIF Waveform 3: SnglWr
//
// Interval 0 1 2 3 4 5 6 Idle (7)
// _________ _________ _________ _________ _________ _________ _________ _________
//
// AddrMode Same Val Same Val Same Val Same Val Same Val Same Val Same Val
// DataMode NO Data NO Data Activate Activate NO Data NO Data NO Data
// NextData SameData SameData SameData SameData SameData SameData SameData
// Int Trig No Int No Int No Int No Int No Int No Int No Int
// IF/Wait Wait 2 Wait 1 Wait 3 Wait 2 Wait 3 Wait 5 Wait 1
// Term A
// LFunc
// Term B
// Branch1
// Branch0
// Re-Exec
// Sngl/CRC Default Default Default Default Default Default Default
// CONVT# 1 1 1 1 1 0 0 1
// RD# 1 1 1 1 1 1 1 1
// WR# 1 1 0 1 1 1 1 1
// CS# 1 0 0 0 1 1 1 1
// unsed 1 1 1 1 1 1 1 1
// unsed 1 1 1 1 1 1 1 1
//
// END DO NOT EDIT
// DO NOT EDIT ...
const char xdata WaveData[128] =
{
// Wave 0
/* LenBr */ 0x02, 0x02, 0x01, 0x01, 0x01, 0xF0, 0x06, 0x07,
/* Opcode*/ 0x00, 0x01, 0x00, 0x02, 0x02, 0x00, 0x00, 0x00,
/* Output*/ 0x3F, 0x3F, 0x35, 0x35, 0x37, 0x37, 0x3E, 0x3F,
/* LFun */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F,
// Wave 1
/* LenBr */ 0x02, 0x09, 0x3F, 0x01, 0x01, 0x01, 0x01, 0x07,
/* Opcode*/ 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
/* Output*/ 0x3F, 0x3E, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F,
/* LFun */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F,
// Wave 2
/* LenBr */ 0x02, 0x02, 0x03, 0x01, 0x01, 0x01, 0x01, 0x07,
/* Opcode*/ 0x00, 0x00, 0x02, 0x02, 0x02, 0x02, 0x02, 0x00,
/* Output*/ 0x3F, 0x35, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F,
/* LFun */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F,
// Wave 3
/* LenBr */ 0x02, 0x01, 0x03, 0x02, 0x03, 0x05, 0x01, 0x07,
/* Opcode*/ 0x00, 0x00, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00,
/* Output*/ 0x3F, 0x37, 0x33, 0x37, 0x3F, 0x3E, 0x3E, 0x3F,
/* LFun */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F,
};
// END DO NOT EDIT
// DO NOT EDIT ...
const char data FlowStates[36] =
{
/* Wave 0 FlowStates */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
/* Wave 1 FlowStates */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
/* Wave 2 FlowStates */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
/* Wave 3 FlowStates */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
// END DO NOT EDIT
// DO NOT EDIT ...
const char data InitData[7] =
{
/* Regs */ 0xA0,0x00,0x00,0x3F,0x8E,0xE4,0x00
};
// END DO NOT EDIT
//--------------------------------------------------------------------//
// GPIF Program Code for Double
// Double AD 05.10.3
// This program configures the General Programmable Interface (GPIF) for FX2.
// Please do not modify sections of text which are marked as "DO NOT EDIT ...".
//
// DO NOT EDIT ...
// GPIF Initialization
// Interface Timing Async
// Internal Ready Init IntRdy=1
// CTL Out Tristate-able Binary
// SingleWrite WF Select 3
// SingleRead WF Select 2
// FifoWrite WF Select 1
// FifoRead WF Select 0
// Data Bus Idle Drive Tristate
// END DO NOT EDIT
// DO NOT EDIT ...
// GPIF Wave Names
// Wave 0 = FIFORd
// Wave 1 = FIFOWr
// Wave 2 = SnglRd
// Wave 3 = SnglWr
// GPIF Ctrl Outputs Level
// CTL 0 = CONVT# CMOS
// CTL 1 = RD# CMOS
// CTL 2 = WR# CMOS
// CTL 3 = CS# CMOS
// CTL 4 = unsed CMOS
// CTL 5 = unsed CMOS
// GPIF Rdy Inputs
// RDY0 = INT#
// RDY1 = RDY1
// RDY2 = RDY2
// RDY3 = RDY3
// RDY4 = RDY4
// RDY5 = TCXpire
// FIFOFlag = FIFOFlag
// IntReady = IntReady
// END DO NOT EDIT
// DO NOT EDIT ...
//
// GPIF Waveform 0: FIFORd
//
// Interval 0 1 2 3 4 5 6 Idle (7)
// _________ _________ _________ _________ _________ _________ _________ _________
//
// AddrMode Same Val Same Val Same Val Same Val Same Val Same Val Same Val
// DataMode NO Data NO Data Activate NO Data Activate NO Data NO Data
// NextData SameData SameData SameData NextData NextData SameData SameData
// Int Trig No Int No Int No Int No Int No Int No Int No Int
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -