Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12452 Discussions

Cyclone III dev. board works inverse logic

Altera_Forum
Honored Contributor II
816 Views

Hi all; 

 

I designed simple two-input "and" gate and connected the output of gate to a led. But led is working inverse. How can I solve this problem?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
123 Views

I guess you connected the fpga output to LED cathode and Vcc to anode, so it lights up when output is low.  

The simplest solution is inverting the and gate result inside fpga. 

Otherwise you should connect the anode to the output and the cathode to ground, but I think this is not possible on your board. Moreover the common practice is driving loads with a current sink (then in an inverted way) rather than a current source, since output stages work more efficiently.
Reply