Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factory registration error #21

Open
geeta-yadav opened this issue Jan 1, 2016 · 0 comments
Open

Factory registration error #21

geeta-yadav opened this issue Jan 1, 2016 · 0 comments

Comments

@geeta-yadav
Copy link

I tried compiling and running the test below:

import esdl;
import uvm;
import std.stdio;
class test_root: uvm_root
{
mixin uvm_component_utils;
}
class TestBench: RootEntity
{
uvm_root_entity!(test_root) tb;
}
class test1: uvm_test
{
mixin uvm_component_utils;
this(string name, uvm_component parent = null){
super(name, parent);
}
override void report() {
writeln("** UVM TEST PASSED **\n");
}
}
void main(string[] argv) {
TestBench tb = new TestBench;
tb.multiCore(2, 0);
tb.elaborate("tb", argv);
tb.simulate();
}

Here is the error which i get:

Starting Phase: CONFIGURE
********** No default timePrecision specified; setting timePrecision to 1.psec
********** No default timeUnit specified; setting timeUnit to 1.nsec
Starting Phase: BIND
Start of Simulation
UVM_WARNING @ #0: reporter [BDTYP] Cannot create a component of type 'test1.test1' because it is not registered with the factory.
UVM_WARNING @ #0: reporter [BDTYP] Object.factory Cannot create an object of type 'test1.test1'.
UVM_WARNING @ #0: reporter [BDTYP] Object.factory created an object but could cast it to uvm_component type 'test1.test1'.
UVM_FATAL @ #0: reporter [INVTST] Requested test from command line +UVM_TESTNAME=test1.test1 not found.

--- UVM Report Summary ---

** Report counts by severity
UVM_FATAL : 1
UVM_WARNING : 3
** Report counts by id
[INVTST] 1
[BDTYP] 3
Segmentation fault (core dumped)

Though i have used "mixin_component_utils" for the factory registration, it gives me the error stating that component is not registered with the factory. Why???

Thanks
Geeta

puneet added a commit to puneet/euvm that referenced this issue Jan 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant