Trenz Electronic Products > Trenz Electronic FPGA Modules

Beginner using FPGA

(1/3) > >>

thef:
Dear Sir,

I am a newbie to vhdl and  have written a simple to make use of the two switches S3 and S4 and output to LED D5. However, I did not see it working after I downloaded using the FWU tools. . I have been trying for the the past week without any luck  :( .Would you be able to advice.

Thank you and best regards

***** vhdl file ********
entity OR2 is
     port (in1, in2: in std_logic;
           out1: out std_logic);
     end OR2;
architecture behavioral_2 of OR2 is
begin
     out1 <= in1 or in2;
end behavioral_2;


********ucf file ***************
NET "in1" LOC = "U23";
NET "in2" LOC = "R22";
NET "out1" LOC = "R20";

Horsa:
Form your UCF section, I assume that you are talking about a Trenz Electronic TE0320 series FPGA module. As you can see from the schematics (SCH-TE0320-00.pdf), push buttons are connected directly to the FPGA input pins. When pressed, the corresponding FPGA input pin senses definitely a low level. To make sure that the FPGA pin senses a high level when released, you have to internally terminate the pin with a pull-up, that otherwise would float.

Please try the following.

********ucf file ***************

--- Code: ---# switch S3 = signal PB1 (push button 1)
NET "in1" LOC = "U23" PULLUP;
# switch S4 = signal PB2 (push button 2)
NET "in2" LOC = "R22" PULLUP;
# LED D5 = signal UL1 (user led 1)
NET "out1" LOC = "R20";
--- End code ---

thef:
I have tested it but after dowloading the code, I did not see the module LED light up at all. I am doing
something wrong ?  :-\ There is also an error on the ucf value. I have made the changes and attached below.

# switch S3 = signal PB1 (push button 1)
NET "in1" LOC = "U23" | PULLUP;
# switch S4 = signal PB2 (push button 2)
NET "in2" LOC = "R22" | PULLUP;
# LED D5 = signal UL1 (user led 1)
NET "out1" LOC = "R20";

Do you have a simple example that I can try and download and try ?

Horsa:
Sorry for the small syntax error in the UCF example, and thank you for correcting it.
Yes, we have.

The first thing you have to tell us though is, whether your DONE LED ("TE0320 Series User Manual" > "5.6.1 System LED D1") lights back on after your Firmware Upgrade Tool finishes transferring the FWU file. That would mean that the configuration process of your FPGA completed successfully.

But still you did not tell us anything about your system. Please tell us exactly:

* what HW chain you have (names and versions)
* what SW chain you have (names and versions)and so on.

thef:
I have TE0320-00-EV02IB  mounted on TE0323-00 for hardware
as for software, I am using Xilinx 12.2(nt)
the USB firmware upgrade 4.1

Are there any switch setting on the TE board that I need to set ? or any configuration in the xilinx that need to be configure ?  ???
Thank you and best regards
Edwin

Navigation

[0] Message Index

[#] Next page

Go to full version