By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.

Frequently Asked Questions

Find answers to the questions we get asked the most

Hello, how can we help you?

Choose your category to find the help you need quick

Product & Services

What are OrCAD and PSpice?

Left Pointing Arrow

OrCAD and PSpice are circuit design and simulation tools owned by Cadence Design Systems intended for the schematic, layout, and simulation of electronic circuits.

OrCAD operates the schematic and design aspect of circuit creation, while PSpice is used for the simulation of circuits.

How can I download OrCAD Lite?

Left Pointing Arrow

OrCAD® Lite software download is no longer available and has been replaced with our new and improved dedicated OrCAD Viewer, OrCAD Trial, and OrCAD Academic versions that provide more advanced PCB design functionality for everyone.

How long do OrCAD and PSpice free trials last?

Left Pointing Arrow

OrCAD and PSpice free trials last for 30 days. If you’re a student, educator or researcher, you can request a 1 year free license via our Academic Program.

How much do OrCAD and PSpice cost?

Left Pointing Arrow

OrCAD and PSpice costs vary by access and functionality. There are unique functionalities available for purchase for schematic, layout, and simulation that can work with you from any budget range.

Additionally, inquire with Cadence Channel Partners if you are interested in switching to OrCAD and PSpice from another design tool, there may be benefit for you!

How to download OrCAD and PSpice?

Left Pointing Arrow

To download OrCAD and PSpice, create an account if you don’t already have one. Then using the account you created, request your free trial license. After approval, you’ll receive an email with instructions on how to download and install the files necessary.

How to install OrCAD and PSpice? 9.2, 16.6, 17.2, 17.4 and 22.1

Left Pointing Arrow

For older versions of OrCAD and PSpice like 9.2, and 16.6, these are no longer available within our supported frameworks.

To install 17.2 you will need to request the specific 17.2 license and download from a registered Cadence Channel Partner.

The latest release for OrCAD is 22.1 and this is the default installation license you will receive when requesting a trial.

How to open OrCAD and PSpice?

Left Pointing Arrow

Once you’ve downloaded the software, find the Cadence PCB program via your Start menu. Within the program you’ll find a list of schematic, PCB and simulation tools available for you to use.

How to migrate to OrCAD and PSpice?

Left Pointing Arrow

There are often promotions for migrating to OrCAD and PSpice from other tools like KiCAD, Altium Designer, Mentor PADS and more!
Click here to see our migration guides for how to get started quickly when migrating from these other platforms.

Do OrCAD and PSpice work on Mac computers?

Left Pointing Arrow

The downloadable version of OrCAD and PSpice are not available on Mac computers; however, you can use our streaming option with OrCAD and PSpice to run the software on any hardware.

Setting Up OrCAD X

How to add a library in OrCAD Capture?

Left Pointing Arrow

To add a library in OrCAD, go to Place -> Part. Within the Place Part pane, under Libraries, click on the Add Library icon.

You’ll find the default libraries provided for OrCAD in this directory: C:\Cadence\SPB_(your_version)\tools\capture\library

Select all files within the library folder and click Open.

If you want to add your own library, your files must be in .olb format. If they aren’t you’ll have to convert from .xml to .olb. You can do this by going to File -> Import -> Library XML. Browse for the .xml file, leave the defaults and click OK.

Then go to File -> Library and open the .olb file to add it to your library.

How to run a PSpice simulation?

Left Pointing Arrow

To be able to simulate your design you need to have the following ready first: a saved schematic with parts and their connections, a simulation profile that is set up for the analysis you want to run, a part library containing simulation models that correspond to the parts in your circuit and either voltage, current or power probes depending on the results you’re looking for. Once you meet all the requirements, just select Run simulation (it looks like the play button).

How to add a PSpice model in OrCAD Capture?

Left Pointing Arrow

Once you have your PSpice model downloaded to your system from your chosen manufacturer’s website, search for and open the PSpice Model Editor via your start menu.

Select your design entry tool as Capture and click Done. Go to File -> Open and select and open your downloaded model file. Make sure your PSpice model file has either of these file extensions: .text, .cir, .lib, .net.

Go to File -> Export to Capture Library and make sure your file paths are correct before clicking OK.

Then open OrCAD Capture and go to Place -> Part. Within the Place Part pane, under Libraries, click on the Add Library icon. Browse for the directory that your model is in and add it to your library.

How to rotate in OrCAD Capture or PSpice?

Left Pointing Arrow

To rotate an object on your schematic, simply select it so that the object is highlighted, then right click and select rotate or use the keyboard shortcut R.

How to open a schematic in OrCAD Capture and convert an OrCAD schematic to pdf?

Left Pointing Arrow

To open a schematic in OrCAD Capture, go to File -> Open -> Design and select your .dsn file. Then go to File -> Export -> PDF. Select your output directory, provide a PDF file name, and adjust any of the other options available and click OK.

Note #1: Make sure that your schematic theme is set to legacy or light so that your PDF is generated with a light background in case you’re looking to print. You can change your schematic theme settings by going to Options -> Preferences.

Note #2: If you see this error message - ERROR (ORCAP-43004), download and install the recommended ghostscript converter from the URL provided in the error message. Choose the public license that best fits your system requirements. Install the executable to your Programs folder.

Then within the PDF Export GUI, change the directory listed under Converter Path. Browse through your Programs folder for the ghostscript executable and set the new path. Here’s an example of what your path should look like: C:\Program Files\gs\gs10.00.0\bin\gswin64c.exe.

How to create footprints in OrCAD PCB Designer?

Left Pointing Arrow

You can create footprints in OrCAD PCB Designer by going to File -> New. Within the New Drawing GUI, select your Drawing Type as ‘Package symbol’, provide a name for your footprint, and if necessary, you can change the directory where the .dra file will be saved by clicking on Browse and click OK. Then define your design parameters and extents and click OK.

To add pins, go to Layout -> Pins. On the Options pane, select and fill in the necessary details to meet your design needs to create the pins.

For a step-by-step walkthrough please watch this video.

How to create a netlist in OrCAD Capture or PSpice?

Left Pointing Arrow

To create a netlist in OrCAD Capture, go to Tools -> Create Netlist. Within the PCB tab, make sure the ‘Create PCB Editor Netlist’ checkbox is selected. Next to Netlist Files Directory, browse to the directory where you want to save your design files and click OK.

When you simulate your circuit, PSpice automatically generates a PSpice netlist for you. To view the netlist go to PSpice -> View Netlist in the menu. If you haven’t simulated your circuit, go to PSpice -> Create Netlist.

How to create a new part in OrCAD Capture?

Left Pointing Arrow

To create a new part in OrCAD Capture, go to File -> New -> Library. Under Library in the project hierarchy, right click on the .olb file and select New Part. Fill in the necessary details and click OK. Adjust the boundary box and text by clicking and dragging. Place your desired shape (example: Rectangle) by going to Place in the menu. Click and drag to draw your shape.

Then hit escape once you're done drawing your shape to exit the command. Next, add the pins for your part. Go to Place -> Pins, then fill in and adjust the pin property settings based on the pins you need and hit escape to leave the command once you’re done. Make any changes within the property sheet that you see fit and even make adjustments on the canvas, like renaming and rotating text. Then save and close the part you created; it will be visible in your design library.

How to update cache in OrCAD Capture?

Left Pointing Arrow

To update your cache in OrCAD Capture, find and expand the Design Cache folder in the project hierarchy pane. Then find the part(s) you want to update, right click over the part and select update cache.

How to create a Gerber file or BOM in OrCAD?

Left Pointing Arrow

To create a Gerber file in OrCAD PCB Designer, go to Export -> Gerber. Under available films in the Film Control tab, you can select the available films or add any others that you don’t see by right clicking and selecting Add Manual. Make any changes to the Film options for each artwork if necessary, then review the settings within the General Parameters tab. Go back to the Film Control tab, select the films of interest and select Create Artwork.

To create a BOM in OrCAD Capture, right click on your canvas and select Selection Filter. Click on Clear All, only select Parts and click OK. Then window-select the circuit on your canvas, right click and click Edit Properties. Some information may already be pre-populated, but you can always add any necessary or missing properties to the spreadsheet by clicking on the New Property button and filling in its details. Close the property editor and click on the design file (.dsn) within the project hierarchy. Then go to Tools -> Bill of Materials. Complete the information for both fields under Line Item Definition. If you need to change the directory for where your report will save, click on Browse to choose a new path, then click OK. For a step-by step walkthrough of how to generate your BOM watch this video.

How to create a new simulation profile in PSpice?

Left Pointing Arrow

Within OrCAD Capture click on PSpice -> New Simulation. Name your simulation profile (example: schematic name-analysis type), choose whether you want to inherit settings from an already created profile or not, and then select Create. From there, select the settings for your simulation, such as analysis type, options, run time and more, then click OK.

Setting Up PSpice

Can LTSpice use PSpice models?

Left Pointing Arrow

Unfortunately, PSpice models cannot be used directly within LTspice.

What is DC sweep analysis in PSpice?

Left Pointing Arrow

DC Sweep analysis in PSpice allows you to evaluate your circuit’s performance in response to a direct current source. You can sweep your sources, voltages, currents, model parameters or temperatures over a range of values.

How to change PSpice simulation background color?

Left Pointing Arrow

Within the simulation window in PSpice, go to Tools -> Options and click on the Color Settings tab so that you can change the background color of the graph.

How to make a square wave in PSpice?

Left Pointing Arrow

Within OrCAD Capture, go to Place -> Part or use the shortcut P. Type VPULSE in the Part search field, double click on the object from the part list to add/connect it to your circuit and set the necessary parameter values.

Or you can go to Place -> PSpice Component -> Modeling Application -> Sources -> Independent Sources to create a dedicated square pulse. In the Pulse tab, select the fields of interest and fill in the parameters to meet your design needs.

Note: If VPULSE is not visible on your part list, make sure that the PSpice libraries are enabled. Under Libraries in the Place Part pane, select Add Library (Alt + A) and make sure the PSpice library is pointed to this directory: C:\Cadence\SPB_(your version of tool)\tools\capture\library. Select all files and folders, then click on open.

How to measure current and voltage in PSpice?

Left Pointing Arrow

You can measure current and voltage of your circuit in PSpice by adding current and voltage probes to your circuit. Then within the PSpice simulation window, select Trace -> Evaluate Measurements from the PSpice simulation window and create the trace expression to measure current and voltage at any node.

How to use VPULSE in PSpice?

Left Pointing Arrow

VPULSE is used to simulate a step response when performing a transient analysis, it can be applied as an independent source in PSpice. There are 7 parameters that need to be defined for the waveform and they are as follows:

V1 – First Voltage, V2 – Second Voltage, TD – Initial Delay, TR – Absolute Rise Time, TF – Absolute Fall Time, PW – Pulse Width, PER – Period.

You can access and add VPULSE/source to your circuit from Place -> Part in the main toolbar or by using the shortcut P.

What is VOFF in PSpice?

Left Pointing Arrow

VOFF is known as an offset voltage. For transient analysis, VOFF should be set to 0 if you need a pure sinusoid.

How to fix floating nodes in PSpice?

Left Pointing Arrow

Depending on what your error is there are a few things you can check for. Make sure the components connected are creating a complete circuit – check your wire connections. Use parts from the PSpice library, such as the ground symbol – use 0/Source ground.

How to make a transformer in PSpice?

Left Pointing Arrow

To create a transformer model in PSpice, go to Place -> PSpice Component -> Modeling Application within OrCAD Capture. Then within the Modeling Application pane, select System Modules -> Transformer. You can then select your transformer type (example: Flyback), define its parameters and click on Place.

How to plot frequency response in PSpice?

Left Pointing Arrow

To plot the frequency response of your circuit, set up a new simulation profile. Set your analysis type to AC Sweep/Noise, select your sweep type and define any other parameters necessary such as start and stop frequency and points/decade. Add any necessary probes to your circuit and run the simulation. To get the results of the frequency response, select Trace -> Evaluate Measurements from the PSpice simulation window and create the trace expression.

How to simulate logic gates in PSpice?

Left Pointing Arrow

Once you’ve got your logic gates, inputs, outputs and probes set up and connected, go to PSpice -> New Simulation Profile. Name your simulation profile (example: schematic name-analysis type), choose whether you want to inherit settings from an already created profile or not, and click on Create.

Select the settings for your simulation, in this case it will be a Transient Analysis, where you can define the rest of the settings such as run time and click OK. Then just select Run simulation (it looks like the play button). If the simulation window looks empty, go to Trace – Add Trace and select your trace input and output expressions one trace at a time and click OK.

Do OrCAD and PSpice work on Mac computers?

Left Pointing Arrow

The downloadable version of OrCAD and PSpice are not available on Mac computers; however, you can use our streaming option with OrCAD and PSpice to run the software on any hardware.

How to migrate to OrCAD and PSpice?

Left Pointing Arrow

There are often promotions for migrating to OrCAD and PSpice from other tools like KiCAD, Altium Designer, Mentor PADS and more!
Click here to see our migration guides for how to get started quickly when migrating from these other platforms.

How to open OrCAD and PSpice?

Left Pointing Arrow

Once you’ve downloaded the software, find the Cadence PCB program via your Start menu. Within the program you’ll find a list of schematic, PCB and simulation tools available for you to use.

How to install OrCAD and PSpice? 9.2, 16.6, 17.2, 17.4 and 22.1

Left Pointing Arrow

For older versions of OrCAD and PSpice like 9.2, and 16.6, these are no longer available within our supported frameworks.

To install 17.2 you will need to request the specific 17.2 license and download from a registered Cadence Channel Partner.

The latest release for OrCAD is 22.1 and this is the default installation license you will receive when requesting a trial.

How to download OrCAD and PSpice?

Left Pointing Arrow

To download OrCAD and PSpice, create an account if you don’t already have one. Then using the account you created, request your free trial license. After approval, you’ll receive an email with instructions on how to download and install the files necessary.

How much do OrCAD and PSpice cost?

Left Pointing Arrow

OrCAD and PSpice costs vary by access and functionality. There are unique functionalities available for purchase for schematic, layout, and simulation that can work with you from any budget range.

Additionally, inquire with Cadence Channel Partners if you are interested in switching to OrCAD and PSpice from another design tool, there may be benefit for you!

How long do OrCAD and PSpice free trials last?

Left Pointing Arrow

OrCAD and PSpice free trials last for 30 days. If you’re a student, educator or researcher, you can request a 1 year free license via our Academic Program.

How can I download OrCAD Lite?

Left Pointing Arrow

OrCAD® Lite software download is no longer available and has been replaced with our new and improved dedicated OrCAD Viewer, OrCAD Trial, and OrCAD Academic versions that provide more advanced PCB design functionality for everyone.

What are OrCAD and PSpice?

Left Pointing Arrow

OrCAD and PSpice are circuit design and simulation tools owned by Cadence Design Systems intended for the schematic, layout, and simulation of electronic circuits.

OrCAD operates the schematic and design aspect of circuit creation, while PSpice is used for the simulation of circuits.

How to create a new simulation profile in PSpice?

Left Pointing Arrow

Within OrCAD Capture click on PSpice -> New Simulation. Name your simulation profile (example: schematic name-analysis type), choose whether you want to inherit settings from an already created profile or not, and then select Create. From there, select the settings for your simulation, such as analysis type, options, run time and more, then click OK.

How to create a Gerber file or BOM in OrCAD?

Left Pointing Arrow

To create a Gerber file in OrCAD PCB Designer, go to Export -> Gerber. Under available films in the Film Control tab, you can select the available films or add any others that you don’t see by right clicking and selecting Add Manual. Make any changes to the Film options for each artwork if necessary, then review the settings within the General Parameters tab. Go back to the Film Control tab, select the films of interest and select Create Artwork.

To create a BOM in OrCAD Capture, right click on your canvas and select Selection Filter. Click on Clear All, only select Parts and click OK. Then window-select the circuit on your canvas, right click and click Edit Properties. Some information may already be pre-populated, but you can always add any necessary or missing properties to the spreadsheet by clicking on the New Property button and filling in its details. Close the property editor and click on the design file (.dsn) within the project hierarchy. Then go to Tools -> Bill of Materials. Complete the information for both fields under Line Item Definition. If you need to change the directory for where your report will save, click on Browse to choose a new path, then click OK. For a step-by step walkthrough of how to generate your BOM watch this video.

How to update cache in OrCAD Capture?

Left Pointing Arrow

To update your cache in OrCAD Capture, find and expand the Design Cache folder in the project hierarchy pane. Then find the part(s) you want to update, right click over the part and select update cache.

How to create a new part in OrCAD Capture?

Left Pointing Arrow

To create a new part in OrCAD Capture, go to File -> New -> Library. Under Library in the project hierarchy, right click on the .olb file and select New Part. Fill in the necessary details and click OK. Adjust the boundary box and text by clicking and dragging. Place your desired shape (example: Rectangle) by going to Place in the menu. Click and drag to draw your shape.

Then hit escape once you're done drawing your shape to exit the command. Next, add the pins for your part. Go to Place -> Pins, then fill in and adjust the pin property settings based on the pins you need and hit escape to leave the command once you’re done. Make any changes within the property sheet that you see fit and even make adjustments on the canvas, like renaming and rotating text. Then save and close the part you created; it will be visible in your design library.

How to create a netlist in OrCAD Capture or PSpice?

Left Pointing Arrow

To create a netlist in OrCAD Capture, go to Tools -> Create Netlist. Within the PCB tab, make sure the ‘Create PCB Editor Netlist’ checkbox is selected. Next to Netlist Files Directory, browse to the directory where you want to save your design files and click OK.

When you simulate your circuit, PSpice automatically generates a PSpice netlist for you. To view the netlist go to PSpice -> View Netlist in the menu. If you haven’t simulated your circuit, go to PSpice -> Create Netlist.

How to create footprints in OrCAD PCB Designer?

Left Pointing Arrow

You can create footprints in OrCAD PCB Designer by going to File -> New. Within the New Drawing GUI, select your Drawing Type as ‘Package symbol’, provide a name for your footprint, and if necessary, you can change the directory where the .dra file will be saved by clicking on Browse and click OK. Then define your design parameters and extents and click OK.

To add pins, go to Layout -> Pins. On the Options pane, select and fill in the necessary details to meet your design needs to create the pins.

For a step-by-step walkthrough please watch this video.

How to open a schematic in OrCAD Capture and convert an OrCAD schematic to pdf?

Left Pointing Arrow

To open a schematic in OrCAD Capture, go to File -> Open -> Design and select your .dsn file. Then go to File -> Export -> PDF. Select your output directory, provide a PDF file name, and adjust any of the other options available and click OK.

Note #1: Make sure that your schematic theme is set to legacy or light so that your PDF is generated with a light background in case you’re looking to print. You can change your schematic theme settings by going to Options -> Preferences.

Note #2: If you see this error message - ERROR (ORCAP-43004), download and install the recommended ghostscript converter from the URL provided in the error message. Choose the public license that best fits your system requirements. Install the executable to your Programs folder.

Then within the PDF Export GUI, change the directory listed under Converter Path. Browse through your Programs folder for the ghostscript executable and set the new path. Here’s an example of what your path should look like: C:\Program Files\gs\gs10.00.0\bin\gswin64c.exe.

How to rotate in OrCAD Capture or PSpice?

Left Pointing Arrow

To rotate an object on your schematic, simply select it so that the object is highlighted, then right click and select rotate or use the keyboard shortcut R.

How to add a PSpice model in OrCAD Capture?

Left Pointing Arrow

Once you have your PSpice model downloaded to your system from your chosen manufacturer’s website, search for and open the PSpice Model Editor via your start menu.

Select your design entry tool as Capture and click Done. Go to File -> Open and select and open your downloaded model file. Make sure your PSpice model file has either of these file extensions: .text, .cir, .lib, .net.

Go to File -> Export to Capture Library and make sure your file paths are correct before clicking OK.

Then open OrCAD Capture and go to Place -> Part. Within the Place Part pane, under Libraries, click on the Add Library icon. Browse for the directory that your model is in and add it to your library.

How to run a PSpice simulation?

Left Pointing Arrow

To be able to simulate your design you need to have the following ready first: a saved schematic with parts and their connections, a simulation profile that is set up for the analysis you want to run, a part library containing simulation models that correspond to the parts in your circuit and either voltage, current or power probes depending on the results you’re looking for. Once you meet all the requirements, just select Run simulation (it looks like the play button).

How to add a library in OrCAD Capture?

Left Pointing Arrow

To add a library in OrCAD, go to Place -> Part. Within the Place Part pane, under Libraries, click on the Add Library icon.

You’ll find the default libraries provided for OrCAD in this directory: C:\Cadence\SPB_(your_version)\tools\capture\library

Select all files within the library folder and click Open.

If you want to add your own library, your files must be in .olb format. If they aren’t you’ll have to convert from .xml to .olb. You can do this by going to File -> Import -> Library XML. Browse for the .xml file, leave the defaults and click OK.

Then go to File -> Library and open the .olb file to add it to your library.

How to simulate logic gates in PSpice?

Left Pointing Arrow

Once you’ve got your logic gates, inputs, outputs and probes set up and connected, go to PSpice -> New Simulation Profile. Name your simulation profile (example: schematic name-analysis type), choose whether you want to inherit settings from an already created profile or not, and click on Create.

Select the settings for your simulation, in this case it will be a Transient Analysis, where you can define the rest of the settings such as run time and click OK. Then just select Run simulation (it looks like the play button). If the simulation window looks empty, go to Trace – Add Trace and select your trace input and output expressions one trace at a time and click OK.

How to plot frequency response in PSpice?

Left Pointing Arrow

To plot the frequency response of your circuit, set up a new simulation profile. Set your analysis type to AC Sweep/Noise, select your sweep type and define any other parameters necessary such as start and stop frequency and points/decade. Add any necessary probes to your circuit and run the simulation. To get the results of the frequency response, select Trace -> Evaluate Measurements from the PSpice simulation window and create the trace expression.

How to make a transformer in PSpice?

Left Pointing Arrow

To create a transformer model in PSpice, go to Place -> PSpice Component -> Modeling Application within OrCAD Capture. Then within the Modeling Application pane, select System Modules -> Transformer. You can then select your transformer type (example: Flyback), define its parameters and click on Place.

How to fix floating nodes in PSpice?

Left Pointing Arrow

Depending on what your error is there are a few things you can check for. Make sure the components connected are creating a complete circuit – check your wire connections. Use parts from the PSpice library, such as the ground symbol – use 0/Source ground.

What is VOFF in PSpice?

Left Pointing Arrow

VOFF is known as an offset voltage. For transient analysis, VOFF should be set to 0 if you need a pure sinusoid.

How to use VPULSE in PSpice?

Left Pointing Arrow

VPULSE is used to simulate a step response when performing a transient analysis, it can be applied as an independent source in PSpice. There are 7 parameters that need to be defined for the waveform and they are as follows:

V1 – First Voltage, V2 – Second Voltage, TD – Initial Delay, TR – Absolute Rise Time, TF – Absolute Fall Time, PW – Pulse Width, PER – Period.

You can access and add VPULSE/source to your circuit from Place -> Part in the main toolbar or by using the shortcut P.

How to measure current and voltage in PSpice?

Left Pointing Arrow

You can measure current and voltage of your circuit in PSpice by adding current and voltage probes to your circuit. Then within the PSpice simulation window, select Trace -> Evaluate Measurements from the PSpice simulation window and create the trace expression to measure current and voltage at any node.

How to make a square wave in PSpice?

Left Pointing Arrow

Within OrCAD Capture, go to Place -> Part or use the shortcut P. Type VPULSE in the Part search field, double click on the object from the part list to add/connect it to your circuit and set the necessary parameter values.

Or you can go to Place -> PSpice Component -> Modeling Application -> Sources -> Independent Sources to create a dedicated square pulse. In the Pulse tab, select the fields of interest and fill in the parameters to meet your design needs.

Note: If VPULSE is not visible on your part list, make sure that the PSpice libraries are enabled. Under Libraries in the Place Part pane, select Add Library (Alt + A) and make sure the PSpice library is pointed to this directory: C:\Cadence\SPB_(your version of tool)\tools\capture\library. Select all files and folders, then click on open.

How to change PSpice simulation background color?

Left Pointing Arrow

Within the simulation window in PSpice, go to Tools -> Options and click on the Color Settings tab so that you can change the background color of the graph.

What is DC sweep analysis in PSpice?

Left Pointing Arrow

DC Sweep analysis in PSpice allows you to evaluate your circuit’s performance in response to a direct current source. You can sweep your sources, voltages, currents, model parameters or temperatures over a range of values.

Can LTSpice use PSpice models?

Left Pointing Arrow

Unfortunately, PSpice models cannot be used directly within LTspice.

Interested in purchasing?
Request a quote and we’ll get in touch with you!

Explore OrCAD