2020-12-07 23:55:22 +01:00
|
|
|
// -*- mode: C++; c-file-style: "cc-mode" -*-
|
|
|
|
|
//*************************************************************************
|
|
|
|
|
// DESCRIPTION: Verilator: Node attributes/ expression widths
|
|
|
|
|
//
|
|
|
|
|
// Code available from: https://verilator.org
|
|
|
|
|
//
|
|
|
|
|
//*************************************************************************
|
|
|
|
|
//
|
2024-01-01 09:19:59 +01:00
|
|
|
// Copyright 2003-2024 by Wilson Snyder. This program is free software; you
|
2020-12-07 23:55:22 +01:00
|
|
|
// can redistribute it and/or modify it under the terms of either the GNU
|
|
|
|
|
// Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
|
// Version 2.0.
|
|
|
|
|
// SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
|
|
|
|
//
|
|
|
|
|
//*************************************************************************
|
|
|
|
|
|
2021-03-04 03:57:07 +01:00
|
|
|
#ifndef VERILATOR_V3RANDOMIZE_METHOD_H_
|
|
|
|
|
#define VERILATOR_V3RANDOMIZE_METHOD_H_
|
2020-12-07 23:55:22 +01:00
|
|
|
|
|
|
|
|
#include "config_build.h"
|
|
|
|
|
#include "verilatedos.h"
|
|
|
|
|
|
2023-09-25 04:12:23 +02:00
|
|
|
#include "V3ThreadSafety.h"
|
|
|
|
|
|
2022-01-08 17:18:23 +01:00
|
|
|
class AstClass;
|
|
|
|
|
class AstFunc;
|
|
|
|
|
class AstNetlist;
|
2020-12-07 23:55:22 +01:00
|
|
|
|
|
|
|
|
class V3Randomize final {
|
|
|
|
|
public:
|
2023-09-25 04:12:23 +02:00
|
|
|
static void randomizeNetlist(AstNetlist* nodep) VL_MT_DISABLED;
|
2020-12-07 23:55:22 +01:00
|
|
|
|
2023-09-25 04:12:23 +02:00
|
|
|
static AstFunc* newRandomizeFunc(AstClass* nodep) VL_MT_DISABLED;
|
|
|
|
|
static AstFunc* newSRandomFunc(AstClass* nodep) VL_MT_DISABLED;
|
2020-12-07 23:55:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // Guard
|