Altera_Forum
Honored Contributor
16 years agoAssignment pin problem. Work and do not work?
Hi every one, thank you in advance if someone could help me or tell me some ideas to get my project works. I do not know what problem is:
- My project is done on CyloneIII 3C25 Stater FPGA board. (I reused standard example of CyloneIII 3C25 Stater kit to develop my project. - I built a component on SOPC with interface signals to external device as following: --- Quote Start --- output clk; inout cmd; inout data1; inout data2; inout data3; inout data4; --- Quote End --- With inout signal above, in my verilog code, i do this code segment:
assign cmd = cmd_out_en ? cmd_out : 1'b Z;
assign data1 = data0_out_en ? data0_out : 1'b Z;
assign data2 = data1_out_en ? data1_out : 1'b Z;
assign data3 = data2_out_en ? data2_out : 1'b Z;
assign data4 = data3_out_en ? data3_out : 1'b Z; I meet 2 problem: First) When i finished building SOPC component (every thing is ready for compilation on Quartus8.0), i started Analysis and Synthesis on Quartus8.0. After that, i intended to map my component pins (clk, cmd, data1, data2, data3, data4) with FPGA pin. But in Assignment pin window of Quartus, It did not generate my component pins (clk, cmd, data1, data2, data3, data4). There are some thing was wrong here, if not these my component pins must be see in Assignment pin window. I re-install my PC and Quartus8.0 software. Then did again, this time, these component pins were see in Assignment pin Window. So i pass this problem although do not know the problem where is! Second) When i passed 1st problem above, i started test my project. I used Signal Tap to capture all signals have been listed above. It seem that the segment code i have show above did not work. Because : - cmd always equal cmd_out although cmd_out_en is 0 logic level or 1 logic level - data1, data2, data3, data4 are similar cmd. - About clk, it is a clock signal, i could see it worked in Signal Tap, but i used a oscilloscope to monitored pin of external device that map with this clk pin of my component. it did not reflect wave form of clk pin in signal tap (Oscilloscope always show as only on logic level without changing at all times). I was afraid that it may be external device pins did not connect with pin FPGA, so i had do a simple test and use oscilloscope monitors to compare with my 2nd problem. But this test worked. So, i guess that although in Assignment pin Window of Quartus8.0 have pins of my component, i mapped my component pins to FPGA pin, but it is actual that due to some things, Quartus compilation could not connect my component pins with FPGA pins. Could you help me? I thank you in advance!