Implementing a resistor, capacitor or conductor in fpga

Do you have a technical question that doesn't really fit a specific console? Want some general info on electronics, hacking, making cookies, etc? Here's the place to ask! Go nuts.

Moderator: Moderators

Post Reply
Posts: 568
Joined: Thu Dec 08, 2005 3:13 pm

Implementing a resistor, capacitor or conductor in fpga

Post by sammy » Thu May 10, 2007 9:52 am

I'm currently looking into buying an fpga board for some simple testing on video game consoles. The language I'm using is VHDL but I don't know that much about it yet.

I was wondering if it was possible to implement a resistor, capacitor or a conductor in an fpga so that external components wouldn't be necessary (particulary for filtering). If it is possible, are there any limitations?

EDIT: I just found this:

Code: Select all

library IEEE;
use IEEE.electrical_systems.all;

entity resistor is
    generic (res : resistance); -- resistance (no initial value)
    port (terminal p1, p2 : electrical);
end entity resistor;

architecture ideal of resistor is
    quantity v across i through p1 to p2;
    -- Fundamental equation
    v == i*res;
end architecture ideal;
I don't fully understand the definition: 'terminal p1,p2' does this state where the resistor is placed?

User avatar
Posts: 6974
Joined: Sun Apr 04, 2004 4:48 pm
Location: Near that one big lake

Post by gannon » Thu May 10, 2007 12:03 pm

Pretty sure...but I'm not a big fan of VHDL :P

Post Reply