aboutsummaryrefslogtreecommitdiffstats
path: root/python/libghdl/thin/vhdl/formatters.py
blob: 9c8bf9afb92f3aaf068315ca6f6eefc1a2483394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from libghdl import libghdl
from ctypes import c_int32, c_char_p

Indent_String = libghdl.vhdl__formatters__indent_string

Allocate_Handle = libghdl.vhdl__formatters__allocate_handle

Get_Length = libghdl.vhdl__formatters__get_length
Get_Length.restype = c_int32

Get_C_String = libghdl.vhdl__formatters__get_c_string
Get_C_String.restype = c_char_p

Free_Handle = libghdl.vhdl__formatters__free_handle
k">begin if rising_edge (clk) then q <= d; end if; r <= std_logic_vector(unsigned(q) + 1); end process; end behav;