Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Altera CycloneII Bidirectional Pin Assignment

Status
Not open for further replies.

nag123

Member level 1
Joined
Jun 11, 2007
Messages
33
Helped
6
Reputation
12
Reaction score
1
Trophy points
1,288
Activity points
1,543
altera bidirectional

Hi all,

I am new to altera FPGA design. I have got a problem on bidirectional io pin assignment. I have interfaced Altera CyclonII FPGA with a processor. The processor is able to write the data to FPGA. It's not reading FPGA data. All control srtrobes rd_en, wr_en and cs are ok.
I have a doubt whether I assigned data bus correctly or not. Can anyone suggest me how to assign bidirectional pins? Do I need to set any constraint in assignment editor?

Thanks
 

@ltera CycloneII Bidirectional Pin Assignment

You don't need any FPGA constraint, but it's pure VHDL code.
In the FPGA you can always read the data so

DATA_IN <= CPU_DATA_BUS;

But you need to set the bus in treestate when you don't need to write (in this example CS is active high, so when it's active you can put your data out else you need to keep the bus in treestate).

CPU_DATA_BUS <= DATA_TO_OUT when (CS='1') else (others => 'Z');

Hope it helps
 

check the pin planner , does it correctly instatiate bidir pin for the particular pin, otherwise, just add it
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top