gnucap
  • Gnucap overview
  • Installing Gnucap
  • Analysis of a Basic Netlist
  • Subcircuits
  • Components
  • Ideas for flow automation
  • Verilog-AMS
  • Simulations with Python
Powered by GitBook
On this page

Was this helpful?

Ideas for flow automation

Often you want to add build support to run simulations automatically. One way to do this is with CMake as the following example shows:

cmake_minimum_required(VERSION 3.15)

project(flow LANGUAGES )

set(CIRCUIT "src.ckt" CACHE STRING "Circuit")
set(PLOTSCRIPT "plot_tr.p" CACHE STRING "Plot script")

# https://cliutils.gitlab.io/modern-cmake/chapters/basics/variables.html
message(STATUS "Circuit: ${CIRCUIT}")

add_custom_target(sim COMMAND gnucap -b ${CIRCUIT})

add_custom_Target(plot COMMAND gnuplot ${PLOTSCRIPT})
PreviousComponentsNextVerilog-AMS

Last updated 4 years ago

Was this helpful?