#!/bin/bash trap 'echo "ERROR in chparam.sh" >&2; exit 1' ERR cat > chparam1.sv << "EOT" module top #( parameter [31:0] X = 0 ) ( input [31:0] din, output [31:0] dout ); assign dout = X-din; endmodule module top_props #( parameter [31:0] X = 0 ) ( input [31:0] dout ); always @* assert (dout != X); endmodule bind top top_props #(.X(123456789)) props (.*); EOT cat > chparam2.sv << "EOT" module top #( parameter [31:0] X = 0 ) ( input [31:0] din, output [31:0] dout ); assign dout = X-din; always @* assert (dout != 123456789); endmodule EOT if ../../yosys -q -p 'verific -sv chparam1.sv'; then ../../yosys -q -p 'verific -sv chparam1.sv; hierarchy -chparam X 123123123 -top top; prep -flatten' \ -p 'sat -verify -prove-asserts -show-ports -set din[0] 1' \ -p 'sat -falsify -prove-asserts -show-ports -set din[0] 0' ../../yosys -q -p 'verific -sv chparam2.sv; hierarchy -chparam X 123123123 -top top; prep -flatten' \ -p 'sat -verify -prove-asserts -show-ports -set din[0] 1' \ -p 'sat -falsify -prove-asserts -show-ports -set din[0] 0' fi ../../yosys -q -p 'read_verilog -sv chparam2.sv; hierarchy -chparam X 123123123 -top top; prep -flatten' \ -p 'sat -verify -prove-asserts -show-ports -set din[0] 1' \ -p 'sat -falsify -prove-asserts -show-ports -set din[0] 0' rm chparam1.sv rm chparam2.sv /src/misc/util/utilMem.h?h=yosys-experimental'>logtreecommitdiffstats
path: root/src/misc/util/utilMem.h
blob: af5873c0cdfdc08153883791dc0ba4ecab39379d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/**CFile****************************************************************

  FileName    [utilInt.h]

  SystemName  [ABC: Logic synthesis and verification system.]

  PackageName [Memory recycling utilities.]

  Synopsis    [Internal declarations.]

  Author      [Alan Mishchenko]
  
  Affiliation [UC Berkeley]

  Date        [Ver. 1.0. Started - June 20, 2005.]

  Revision    [$Id: utilInt.h,v 1.00 2005/06/20 00:00:00 alanmi Exp $]

***********************************************************************/
 
#ifndef ABC__misc__util__utilMem_h
#define ABC__misc__util__utilMem_h


////////////////////////////////////////////////////////////////////////
///                          INCLUDES                                ///
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
///                         PARAMETERS                               ///
////////////////////////////////////////////////////////////////////////



ABC_NAMESPACE_HEADER_START


extern void * s_vAllocs;   // storage of allocated pointers
extern void * s_vFrees;    // storage of deallocated pointers
extern int s_fInterrupt;   // set to 1 when it is time to backout

////////////////////////////////////////////////////////////////////////
///                         BASIC TYPES                              ///
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
///                      MACRO DEFINITIONS                           ///
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
///                    FUNCTION DECLARATIONS                         ///
////////////////////////////////////////////////////////////////////////

/*=== utilMem.c ==========================================================*/
extern void *       Util_MemRecAlloc( void * pMem );
extern void *       Util_MemRecFree( void * pMem );
extern void         Util_MemStart();
extern void         Util_MemQuit();
extern void         Util_MemRecycle();
extern int          Util_MemRecIsSet();



ABC_NAMESPACE_HEADER_END



#endif

////////////////////////////////////////////////////////////////////////
///                       END OF FILE                                ///
////////////////////////////////////////////////////////////////////////