background image

 

AN-6130PCIe 

 

HOLT INTEGRATED CIRCUITS 

 

26 

Appendix – A   CPLD Verilog Source 

A current copy of this source file is included in the Verilog source file on the CD-ROM. 

// Holt PCI_6130 interface  
 
 
module count_osc (rstn, osc_clk, LED, clk,   // clk and reset pins 
 

testpoint,  

 

 

 

 

// test output 

 

add, decoderOutput,  

 

 

 

// address decoder 

 

lclk,blast,blast_q,ads,lwr,RDn,WRn, 

 

// Read Write stobes 

 

LEDRD, LEDWR,   

 

 

 

// LED flashers 

 

Latch,   

 

 

 

 

// 16 latched outputs 

 

DataBus, 

 

 

 

 

// Data bus In/Out (16) 

 

InputBuffer, 

 

 

 

 

// Inputs (16) 

 

nLINTi,  

 

 

 

 

// Interrupt output pin 

 

Latch2, 

 

TP13 

 

); 

 

 

// Misc. Signals 
input   rstn ; 
output  osc_clk ; 
output  [7:0]LED ; 
output  clk ; 
output  testpoint ; 

 

 

// Test OE 

output TP13; 

 

 

 

// Test ADSn 

 
// Inputs 
input lclk; 

 

 

 

// LCLK 50 MHZ input 

input blast; 

 

 

 

// blast input 

input [5:0]add;  

 

 

// inputs LA31-LA26 (6) for decoder 

input [15:0]InputBuffer; 

 

// 16 status input pins 

input ads; 

 

 

 

// ADS input 

input lwr; 

 

 

 

// LW/R input 

//input RT1MC8n, RT2MC8n, IRQn; 

// Interrupt inputs 

 
// InOuts 
inout [15:0]DataBus; 

 

 

// 16 In/out Data Bus pins 

 
// Outputs 
output blast_q; 

 

 

// blast output 

output [4:0]decoderOutput; 

 

// address decoder outputs 

output reg RDn; 

 

 

// /RD output strobe 

output reg WRn; 

 

 

// /WR output strobe 

output reg LEDRD, LEDWR; 

 

// LED flashers for 6130 indication 

output reg [15:0]Latch;  

 

// 16 latched outputs 

output reg [15:0]Latch2; 

 

// 2nd set of latches 

output nLINTi;  

 

 

// Interrupt output to PLX 

 
// Wires 
 
 
// Constants 
`define H6130   

 

8'b11111110 

// HI6130 address decode address 

`define LatchAddress   8'b11111101 

 

// Latches output decode address 

`define InputsAddress  8'b11111011 

 

// Inputs address decode address 

`define Latch2Address  8'b11110111 

 

// Inputs address decode address 

 
// Registers 
reg 

 

[26:0]c_delay ; 

reg 

 

[7:0] add_L; 

reg 

 

[0:0] blastq; 

reg 

 

[3:0] counter;  

reg 

 

[3:0] counter2;  

reg  

oe; 

 

 

 

// output enable for buffer reads 

reg   

[15:0] mux; 

 

 

// internal bus for muxing readback bus' 

 
 

Содержание AN-6130PCIe MIL-STD 1553

Страница 1: ...16 PCI Express PCIe 1 1 slot on a PC running Windows 7 The HI 6130 is a single supply 3 3V rail BC MT RT1 RT2 Multi Terminal device for MIL STD 1553 dual redundant bus communications The card is bundl...

Страница 2: ...documentation and software Topics Introduction Quick Start Guide Hardware Programming Reference Software Customization Summary Schematics and BOM Board Default Setup Set SW2 position 6 set to Off up p...

Страница 3: ...ns 1 5 are user defined These may be used by the demo program in future releases Default DIP switch settings Metal brackets are provided for both full height and low profile PCIe cards Use the correct...

Страница 4: ...in the HI 6130 The MSB bit 15 high indicates the HI 6130 READY is high which means the device is ready for the host to access the memory and registers in the device See the HI 6130 data sheet for more...

Страница 5: ...ke it accessible to the scope probe If no external RT or test equipment is connected to the bus then use a 70 ohm termination resistor on the cable output or the signal will be distorted when viewed w...

Страница 6: ...l Bus bridge and provides the interface between the PCIe slot and the local bus LB A CPLD translates the LB signals into CSn RDn and WRn strobe signals for the HI 6130 timings The CPLD also provides o...

Страница 7: ...tion 4 PLX Debug Utilities Holt uses this utility to program the two EEPROMs The HI 6130 uses a 16 bit data bus 16 bit address bus and three more lines to select the device during reads and writes The...

Страница 8: ...sions D1 ACKIRQ HI 6130 input D2 TP31 CPLD spare pin D3 RAMEDC HI 6130 Error detection correction input Set Low for this program D4 TXINHB HI 6130 Bus B inhibit input D5 TXINHA HI 6130 Bus A inhibit i...

Страница 9: ...ved D6 IRQ 6130 HI 6130 interrupt output D7 N A Not defined D8 AUTOEN Set by the SW2 DIP switch 6 Input to HI 6130 for auto initialization from EEPROM D9 D5 Not used by connected to a pad on the PCB f...

Страница 10: ...n signal is used by the CPLD to time when to de assert the CSn RWn or WRn signals to the HI 6130 and the internal latches and input buffers The ADSn signal from the LB is used by the CPLD to start the...

Страница 11: ...AN 6130PCIe HOLT INTEGRATED CIRCUITS 11 CPLD Functional Block Diagram...

Страница 12: ...R TRANSCEIVER POWER TEST MODE RT2SSF ACKIRQ RT1SSF MR RT2A4 0 AUTOEN RT2AP EECOPY BENDI RAMEDC RT1LOCK MTTCLK RT1A4 0 RT1AP MTSTOFF RT2LOCK RT1ENA RT2ENA BCENA MTENA Host Bus Interface HI 6130 Only IR...

Страница 13: ...HI6130 c with accompanying header file HI6130 h To rebuild these projects the following three items are needed Holt demo projects contained on the CD ROM Microsoft Visual Studio 2012 Not Provided PLX...

Страница 14: ...double click on the PCIe6130Test project file in the PCIe6130 test project folder 1 The Solution Explorer with the source files is shown on the left side If this is not seen then open the Solution Exp...

Страница 15: ...led when the SDK is installed PLX PEX8311 RDK Hardware Reference Manual and the PLX PEX8311 data book Latest versions are available from the PLX website These are not included in the SDK Holt HI 6130...

Страница 16: ...PLX API to access the LB with either PlxPci_PciBarSpaceRead or PlxPci_PciBarSpaceWrite One of the input parameters to these API s is bOffsetAsLocalAddr this parameter controls how the API uses the U32...

Страница 17: ...RATED CIRCUITS 17 Select the Holt PCIe card from the Command menu or press the green icon button on the left and select the device with Dev ID 9056 and Ven ID 10B5 The PEX8311 consists internally of a...

Страница 18: ...SIG obtained by becoming a PCI SIG member or a sub ID obtained from PLX For detailed information on these parameters and the PLX API s refer to the PLX SDK user s guide and data sheet on the PEX8311 F...

Страница 19: ...s It s a good idea to review these two projects when first becoming familiar with the PLX API s These PLX projects do not run on the Holt PCIe card because the LB memory spaces are defined differently...

Страница 20: ...ED CIRCUITS 20 The main menu will appear below Press D to display the HI 6130 system registers with labels followed by the same registers values formatted by beginning and end addressed rows followed...

Страница 21: ...ring the message To view the messages on a scope trigger on the rising edge of this signal with one probe and view the bus signal on another probe at the ABUS test point This waveform shows no RT resp...

Страница 22: ...ansmit occurs on a different bus stub RT1 Demo If an external RT is not immediately available on chip RT1 can be enabled in the HI 6130 by entering command B The waveform below shows the HI 6130 RT1 r...

Страница 23: ...Codes using the Holt API library Optionally use the internal BC to transmit messages to the RT using the BC Major Minor frame demo N The bus connector should be terminated with 75 ohms or connected to...

Страница 24: ...AN 6130PCIe HOLT INTEGRATED CIRCUITS 24 Console main menu and HI 6130 registers SRT enabled showing message traffic received using B command and N command...

Страница 25: ...AN 6130PCIe HOLT INTEGRATED CIRCUITS 25 SRT showing Mode Codes received transmitted from an external BC...

Страница 26: ...ffer 16 status input pins input ads ADS input input lwr LW R input input RT1MC8n RT2MC8n IRQn Interrupt inputs InOuts inout 15 0 DataBus 16 In out Data Bus pins Outputs output blast_q blast output out...

Страница 27: ...01111 led5 Spare CS default add_L 8 b11111111 defaul all OFF endcase 16 bit 3 to 1 multiplexer always begin case add_L LatchAddress mux Latch First latches routed to mux InputsAddress mux InputBuffer...

Страница 28: ...counter2 3 LEDWR 1 b1 turn off led else counter2 counter2 1 end Latched 16 GPIO s For Latch outputs always posedge WRn or negedge rstn begin if rstn Latch 16 b0001000000110000 Defaults LED1 On low TXI...

Страница 29: ...assign DataBus oe mux 16 hZ Read the 16 inputs Misc Logic Interrupt MR assign nLINTi InputBuffer 4 InputBuffer 5 InputBuffer 6 Interrupt pins End of Misc The c_delay counter is used to slow down the...

Страница 30: ...same hardware and software techniques would apply The devices that have a parallel interface would be the easiest to interface on the LB Some suggested ARINC 429 16 bit parallel parts are the HI 3582...

Страница 31: ...the HI 6130 but does have some differences in the registers and pin outs The HI 6120 is simpler to use and cost less than the HI 6130 This change would require a revised board design not an add on bo...

Страница 32: ...the same clock to generate the synchronized strobe signals internal to the CPLD and the CSn RDn and WRn strobe signals to the HI 6130 For a faster LB use up to 66MHz for the LB clock input of the PEX8...

Страница 33: ...elopment Some guidance how to enhance and customize the design with additional MIL STD terminals ARINC 429 protocol IC s Discrete to Digital devices and memory was provided For questions regarding thi...

Страница 34: ...CMX1200C3FTN245I 17 x 17 mm Address decoder Chip Selects RD WR Strobes 6130 RD WR Access LED indicators Status and DIP SW inputs Date Changes 9 19 2013 Rev A 12V 12V to 5V DC DC 3V3 HI 6130 PEX8311 Ti...

Страница 35: ...0 B14 PETn0 B15 GND B16 PRSNT2 B17 GND B18 PRSNT1 A1 12V A2 12V A3 GND A4 JTAG2 A5 JTAG3 A6 JTAG4 A7 JTAG5 A8 3 3V A9 3 3V A10 PERST A11 GND A12 REFCLK A13 REFCLK A14 GND A15 PERp0 A16 PERn0 A17 GND A...

Страница 36: ...61 0 01uF C73 0 01uF U7 LT1963AEST 2 5 VIN 1 GND 2 VOUT 3 RN11 742 08 3 103 J XX 1 2 3 4 5 6 7 8 C53 4 7uF 10V C50 0 1uF C74 0 1uF RN13 742 08 3 103 J XX 1 2 3 4 5 6 7 8 LED7 LED C62 0 1uF C71 0 01uF...

Страница 37: ...E PT9A D8 PT9A PT7A PT9C E8 PT9B PT7B PT9D E9 PT6B PT7D PT10B CLK1 A9 PT6A PT7C PT10A A10 PT6C PT7E PT10C C9 PT6D PT7F PT10D C10 PT8C PT8A PT10E D9 PT8D PT8B PT10F D10 PT5C PT8C PT11A B9 PT5D PT8D PT1...

Страница 38: ...0K 1 2 JP6 Solder Jumper TP13 C86 4 7uF 10V R64 330 1 2 R68 330 1 2 TP11 TP31 Sp L C97 10uF 16V LED8 LED C94 100nF C98 0 1uF pad 1 TP12 OSC2 50 0MHz OE 1 GD 2 OUT 3 VCC 4 LED11 LED C87 100nF C95 100nF...

Страница 39: ...5 0 1uF 1 2 FB2 1 2 1 2 C110 01uF 1 2 C103 0 1uF 1 2 C113 4u7 10V 1 2 C106 0 1uF 1 2 C101 0 1uF 1 2 C107 0 1uF 1 2 C108 0 1uF 1 2 FB3 1 2 C112 0 1uF 1 2 VCCIO2 VCCIO3 Pin name sequence PR 640 1200 228...

Страница 40: ...e Document Number Rev Date Sheet o f Doc PEX 8311 NC BALLS A 7 7 Tuesday August 13 2013 23351 Madero Mission Viejo CA 92691 www holtic com Holt Integrated Circuits U1B PEX83111 N C T1 N C P1 N C W6 N...

Страница 41: ...Viejo CA 92691 A 1 1 www holtic com Title Size Document Number Rev Date Sheet o f NEW HI 6130 PCIe MIL STD 1553 Cable Holt Integrated Circuits 23351 Madero Mission Viejo CA 92691 A 1 1 www holtic com...

Страница 42: ...1 Resistor 10K Ohm 5 1 10W 0603 R4 R5 R12 R21 R22 R26 R27 R39 R40 R43 R44 R 45 R46 R48 R49 R51 R57 R63 R65 R72 R133 P10KGCT ND Panasonic ERJ 3GEYJ103V 29 4 Header 1x3 Male 0 1 Pitch JP2 JP3 JP4 JP5 S1...

Страница 43: ...EVISION HISTORY P N Rev Date Description of Change AN 6130PCIe NEW 09 27 2013 Release AN 6130PCIe A 06 30 2014 Revise for API demo program changes AN 6130PCIe B 03 04 2015 Update board photo on page 1...

Отзывы: