Skip to content
Snippets Groups Projects
Commit 23f4c09f authored by Irina LEE's avatar Irina LEE
Browse files

update third test for code generation (eln)

parent 6c57f6fa
No related branches found
No related tags found
1 merge request!72Syscams
# Compiler and linker flags
CXXFLAGS = -g -Wall -I. $(SYSTEMC_INCLUDE_DIRS)
LDFLAGS = $(SYSTEMC_LIBRARY_DIRS)
# List of all ecutables to be compiled
EXECUTABLES = cluster_tb
# .PHONY targets don't generate files
.PHONY: all clean
# Default targets
all: $(EXECUTABLES)
cluster_tb: cluster_tb.cpp eln_in_tdf.h
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $< -lsystemc-ams -lsystemc | c++filt
# Clean rule to delete temporary and generated files
clean:
rm -rf *~ *.o *.dat *.vcd *.dSYM $(EXECUTABLES)
......@@ -7,8 +7,8 @@ int sc_main(int argc, char *argv[])
sca_eln::sca_node in;
eln_in_tdf i_eln_in_tdf("i_eln_in_tdf");
i_eln_in_tdf.in(in);
i_eln_in_tdf.out(out);
i_eln_in_tdf.in(in);
sca_util::sca_trace_file* tfp = sca_util::sca_create_tabular_trace_file("cluster_tb");
sca_util::sca_trace(tfp, out, "out");
......
......@@ -7,8 +7,8 @@
SC_MODULE(eln_in_tdf)
{
sca_tdf::sca_in<double> in;
sca_tdf::sca_out<double> out;
sca_tdf::sca_in<double> in;
sca_eln::sca_c c;
sca_eln::sca_r r;
......@@ -16,8 +16,8 @@ SC_MODULE(eln_in_tdf)
sca_eln::sca_tdf_vsource vin;
SC_CTOR(eln_in_tdf)
: in("in")
, out("out")
: out("out")
, in("in")
, c("c", 1.0, 0.0)
, r("r", 1.0)
, vout("vout", 1.0)
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment