# \#constraint-solver

**URL:** https://verificationacademy.com/forums/tag/constraint-solver/5486.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Is there any clue to implement a systemverilog like constraint-solver in python](https://verificationacademy.com/forums/t/is-there-any-clue-to-implement-a-systemverilog-like-constraint-solver-in-python/46756)

<div class="topic-metadata">

**Author:** [@yhswarm](https://verificationacademy.com/forums/u/yhswarm)\
**Replies:** 1\
**Last updated:** [April 18, 2024, 4:41pm UTC](https://verificationacademy.com/forums/t/is-there-any-clue-to-implement-a-systemverilog-like-constraint-solver-in-python/46756 "2024-04-18T16:41:17Z")

</div>

Hi, everyone. Is there any way to implement a systemverilog like constraint-solver in python? I’m working on building a random instruction generator which is built by systemverilog before, and it costs a lot of time to …

---

## [Config used inside Constraint block gets an error](https://verificationacademy.com/forums/t/config-used-inside-constraint-block-gets-an-error/33667)

<div class="topic-metadata">

**Author:** [@shahkavish77](https://verificationacademy.com/forums/u/shahkavish77)\
**Replies:** 2\
**Last updated:** [July 28, 2023, 4:49am UTC](https://verificationacademy.com/forums/t/config-used-inside-constraint-block-gets-an-error/33667 "2023-07-28T04:49:32Z")

</div>

Hi, I am writing a constraint, inside which I am using config variable (there are variables inside my config class), but there is runtime error that Error-\[CNST-NPE\] Constraint null pointer error Accessing null poin…

---

## [Constraint solver](https://verificationacademy.com/forums/t/constraint-solver/36264)

<div class="topic-metadata">

**Author:** [@MittalMaru](https://verificationacademy.com/forums/u/MittalMaru)\
**Replies:** 6\
**Last updated:** [July 23, 2022, 9:53am UTC](https://verificationacademy.com/forums/t/constraint-solver/36264 "2022-07-23T09:53:04Z")

</div>

Hello, I’ve written this following constraint. //-------------------------------------------------------- class array ; rand int unsigned len\[\]; constraint c\_len { foreach (…

---

## [Constraint solver issue, solves sometimes, doesn't solve most of the times results in errors](https://verificationacademy.com/forums/t/constraint-solver-issue-solves-sometimes-doesnt-solve-most-of-the-times-results-in-errors/38948)

<div class="topic-metadata">

**Author:** [@pribhi95](https://verificationacademy.com/forums/u/pribhi95)\
**Replies:** 1\
**Last updated:** [April 7, 2021, 12:09am UTC](https://verificationacademy.com/forums/t/constraint-solver-issue-solves-sometimes-doesnt-solve-most-of-the-times-results-in-errors/38948 "2021-04-07T00:09:03Z")

</div>

Question: Array 1, Array 2, randomize them make sure all entries within array are unique. generate array1 and array2 such that at-least one element is common between two arrays. variable 1 should take random value whi…

---

## [Randomization of a variable before all other variables](https://verificationacademy.com/forums/t/randomization-of-a-variable-before-all-other-variables/32669)

<div class="topic-metadata">

**Author:** [@8Blades](https://verificationacademy.com/forums/u/8Blades)\
**Replies:** 5\
**Last updated:** [December 22, 2016, 11:32pm UTC](https://verificationacademy.com/forums/t/randomization-of-a-variable-before-all-other-variables/32669 "2016-12-22T23:32:54Z")

</div>

I have my seq item class in which I want to randomise one variable before all other variables, e.g let’s say I want to solve a before all other variables in following example: class seq\_item extended from class umv\_sequ…

---

## [Issue with Constraint Solver](https://verificationacademy.com/forums/t/issue-with-constraint-solver/32202)

<div class="topic-metadata">

**Author:** [@soumyarayaprolu](https://verificationacademy.com/forums/u/soumyarayaprolu)\
**Replies:** 3\
**Last updated:** [August 31, 2016, 5:22am UTC](https://verificationacademy.com/forums/t/issue-with-constraint-solver/32202 "2016-08-31T05:22:11Z")

</div>

I have a query related to generating constraints : I have a complex scenario where each of the parameters need to be randomized and need to satisfy an arithmetic equation like below rand bit\[3:0\] max\_val; rand bit\[7:0\]…

---

## [Constraint solver timeout debug](https://verificationacademy.com/forums/t/constraint-solver-timeout-debug/31400)

<div class="topic-metadata">

**Author:** [@Sharandiva](https://verificationacademy.com/forums/u/Sharandiva)\
**Replies:** 1\
**Last updated:** [January 12, 2016, 7:40pm UTC](https://verificationacademy.com/forums/t/constraint-solver-timeout-debug/31400 "2016-01-12T19:40:03Z")

</div>

Hi I have been facing a constraint solver timeout issue with my test and it took me a lot more time to debug than I expected. So is there a good way/approach to debug constraint solver timeout? In my case there were on…
