#include #include #if defined(CONFIG_SMP) asm( ".align 4\n" ".globl __write_lock_failed\n" "__write_lock_failed:\n" " " LOCK "addl $" RW_LOCK_BIAS_STR ",(%"__OP"ax)\n" "1: rep; nop\n" " cmpl $" RW_LOCK_BIAS_STR ",(%"__OP"ax)\n" " jne 1b\n" " " LOCK "subl $" RW_LOCK_BIAS_STR ",(%"__OP"ax)\n" " jnz __write_lock_failed\n" " ret\n" ".align 4\n" ".globl __read_lock_failed\n" "__read_lock_failed:\n" " lock ; incl (%"__OP"ax)\n" "1: rep; nop\n" " cmpl $1,(%"__OP"ax)\n" " js 1b\n" " lock ; decl (%"__OP"ax)\n" " js __read_lock_failed\n" " ret\n" ); #endif >index : iCE40/ghdl
clone of https://github.com/ghdl/ghdl
aboutsummaryrefslogtreecommitdiffstats
blob: 48f421618471ccf778e9ebd3d3662b61dedd5b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from libghdl import libghdl
from ctypes import c_bool

Flag_Concurrent_Stmts = c_bool.in_dll(
    libghdl, "vhdl__canon__canon_flag_concurrent_stmts")

Flag_Configurations = c_bool.in_dll(
    libghdl, "vhdl__canon__canon_flag_configurations")

Flag_Associations = c_bool.in_dll(
    libghdl, "vhdl__canon__canon_flag_associations")

Extract_Sequential_Statement_Chain_Sensitivity = \
    libghdl.vhdl__canon__canon_extract_sequential_statement_chain_sensitivity