Sistēmas modelēšana, izmantojot modelsim

M

mailsrikanth007

Guest
Hi,

Es esmu mācīšanās systemc un šajā procesā rakstīja testēšanas stendā pusi papildinātāja.kad es centos modelētu to modelsim tas sniedz šādu kļūdu

# Modelis Tehnoloģijas ModelSim SE sccom 6,3 kompilators 4 maijs 2007,05 2007
#
# Ha_tb.cpp: In konstruktors "ha_tb: ha_tb (sc_core: sc_module_name)":
# Ha_tb.cpp: 27: kļūda: nav atbilstošas funkcija zvans "half_adder: half_adder ()"
# Half_adder.h: 10: piezīme: kandidāti ir: half_adder: half_adder (sc_core: sc_module_name)
# Half_adder.h: 4: piezīme: half_adder: half_adder (const half_adder &)
# ** Error: (sccom-6142) Compilation neizdevās.
#
# / Usr/local/MGC/AMS2007.1/modelsim/v6.3/linux/sccom neizdevās.

Kods ir norādīts zemāk

# Ietver "systemc.h"
# Ietver "half_adder.h"

SC_MODULE (ha_tb)
(
sc_signal <bool> t_a, t_b, t_s, t_c;

half_adder ha;

par spēkā neesošu prc_tb ()
(
t_a.write (0);
t_b.write (0);
pagaidīt (5 SC_NS);
t_a.write (0);
t_b.write (1);
pagaidīt (5 SC_NS);
t_a.write (1);
t_b.write (0);
pagaidīt (5 SC_NS);
t_a.write (1);
t_b.write (1);
pagaidīt (5 SC_NS);
)

SC_CTOR (ha_tb)
(
ha.a (t_a);
ha.b (t_b);
ha.s (t_s);
ha.c (t_c);
SC_THREAD (prc_tb);
riska <<t_a <<t_b;
)

);

SC_MODULE_EXPORT (ha_tb);Vai kāds, lūdzu, ļaujiet man zināt precīzu kļūdas ..... būtu ļoti labu ....

 

Welcome to EDABoard.com

Sponsor

Back
Top