Forum Discussion
Altera_Forum
Honored Contributor
10 years agoBJT Code needs Debugging
Hi, I'm trying to compile the attached source codes. The NPN & PNP BJTs are in VHDL and the diode code is in verilog. I am using Quartus. Need help debugging. Any help will be ap...
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- That looks to be the same VHDL as you posted in your first post. No. The 'electricalsystem' VHDL package is not synthesisable. I'm unaware of tools that do what you want. Why on earth are you trying to put a BJT into an FPGA? This code will be to assist with a simulation. Cheers, Alex --- Quote End --- Ok. I get it now. Also I know verilog has pmos and nmos switches which are unidirectional which may serve my purposes. My question now is concerning my need for BJTs. I specifically wanted to use PNP because when the current through the gate is low and current in the collector is high, there is some current flow from the collector that passes through the gate. This characteristic is CRUCIAL for my design. Does the pmos primitives in verilog allow for this and if not, how do I configure the pmos so it does posses this characteristic? Would you happen to know how to code for this? Thanks.