Can anybody recommend a decent tool to draw logic circuits with gates? I'm after something that is free or open source, and runs on Linux or BSD. I've tried Dia, xfig, tkgate, and they are all somewhat painful. A tool where you can label lines/busses, and design black-box "chips" with input/output pins so that they can be used as components would be great.