From ae7061c4d1f70dd051be0724e3b6e6d3f9ede3a4 Mon Sep 17 00:00:00 2001
From: "Irina Lee [m1]" <irina.lee@etu.upmc.fr>
Date: Thu, 5 Jul 2018 16:18:45 +0200
Subject: [PATCH] deleted generate code (syscams)

---
 .../generated_CPP/distance_sensor.cpp         | 28 ---------------
 .../generated_CPP/sin_source_sink.cpp         | 34 ------------------
 .../generated_H/analog_to_digital.h           | 36 -------------------
 .../generated_H/sin_source.h                  | 29 ---------------
 SysCAMSGenerationCode/generated_H/sink.h      | 29 ---------------
 5 files changed, 156 deletions(-)
 delete mode 100644 SysCAMSGenerationCode/generated_CPP/distance_sensor.cpp
 delete mode 100644 SysCAMSGenerationCode/generated_CPP/sin_source_sink.cpp
 delete mode 100644 SysCAMSGenerationCode/generated_H/analog_to_digital.h
 delete mode 100644 SysCAMSGenerationCode/generated_H/sin_source.h
 delete mode 100644 SysCAMSGenerationCode/generated_H/sink.h

diff --git a/SysCAMSGenerationCode/generated_CPP/distance_sensor.cpp b/SysCAMSGenerationCode/generated_CPP/distance_sensor.cpp
deleted file mode 100644
index d29e192d31..0000000000
--- a/SysCAMSGenerationCode/generated_CPP/distance_sensor.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <systemc-ams>
-#include "analog_to_digital.h"
-
-// Simulation entry point.
-int sc_main(int argc, char *argv[]) {
-
-	using namespace sc_core;
-	using namespace sca_util;
-
-	// Declare signal to interconnect.
-
-	// Instantiate source and sink as well as bind their ports to the signal.
-	analog_to_digital analog_to_digital_1("analog_to_digital_1");
-	analog_to_digital_1.sensorIn(
-	// Configure signal tracing.
-	sca_trace_file* tfp = sca_create_tabular_trace_file("distance_sensor_tb");
-
-
-	// Start simulation.
-	sc_start(100.0, SC_MS);
-
-	// Close trace file and stop simulation to enable clean-up by
-	// asking SystemC to execute all end_of_simulation() callbacks.
-	sca_close_tabular_trace_file(tfp);
-	sc_stop();
-	return 0;
-}
-
diff --git a/SysCAMSGenerationCode/generated_CPP/sin_source_sink.cpp b/SysCAMSGenerationCode/generated_CPP/sin_source_sink.cpp
deleted file mode 100644
index b23af42ee7..0000000000
--- a/SysCAMSGenerationCode/generated_CPP/sin_source_sink.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#include <systemc-ams>
-#include "sink.h"
-#include "sin_source.h"
-
-// Simulation entry point.
-int sc_main(int argc, char *argv[]) {
-
-	using namespace sc_core;
-	using namespace sca_util;
-
-	// Declare signal to interconnect.
-	sca_tdf::sca_signal<double> sig_1("sig_1");
-
-	// Instantiate source and sink as well as bind their ports to the signal.
-	sink sink_1("sink_1");
-	sink_1.in(sig_1);
-
-	sin_source sin_source_2("sin_source_2");
-	sin_source_2.out(sig_1);
-
-	// Configure signal tracing.
-	sca_trace_file* tfp = sca_create_tabular_trace_file("sin_source_sink_tb");
-	sca_trace(tfp, sig_1, "sig_1");
-
-	// Start simulation.
-	sc_start(100.0, SC_MS);
-
-	// Close trace file and stop simulation to enable clean-up by
-	// asking SystemC to execute all end_of_simulation() callbacks.
-	sca_close_tabular_trace_file(tfp);
-	sc_stop();
-	return 0;
-}
-
diff --git a/SysCAMSGenerationCode/generated_H/analog_to_digital.h b/SysCAMSGenerationCode/generated_H/analog_to_digital.h
deleted file mode 100644
index 938aefb0e3..0000000000
--- a/SysCAMSGenerationCode/generated_H/analog_to_digital.h
+++ /dev/null
@@ -1,36 +0,0 @@
-#ifndef ANALOG_TO_DIGITAL_H
-#define ANALOG_TO_DIGITAL_H
-
-#include <cmath>
-#include <iostream>
-#include <systemc-ams>
-
-SCA_TDF_MODULE(analog_to_digital) {
-
-	// TDF port declarations
-	sca_tdf::sca_in<double> sensorIn;
-	// Converter port declarations
-	sca_tdf::sca_de::sca_out<int> soclibOut;
-	sca_tdf::sca_de::sca_in<int> soclibIn;
-
-	// Constructor
-	SCA_CTOR(analog_to_digital)
-	: sensorIn("sensorIn")
-	, soclibOut("soclibOut")
-	, soclibIn("soclibIn")
-	{}
-
-	void set_attributes() {
-		sensorIn.set_rate(1);
-		sensorIn.set_delay(0);
-		soclibOut.set_rate(1);
-		soclibOut.set_delay(0);
-		soclibIn.set_rate(1);
-		soclibIn.set_delay(0);
-	}
-
-	void processing() {  }
-
-};
-
-#endif // ANALOG_TO_DIGITAL_H
\ No newline at end of file
diff --git a/SysCAMSGenerationCode/generated_H/sin_source.h b/SysCAMSGenerationCode/generated_H/sin_source.h
deleted file mode 100644
index 20097c71c2..0000000000
--- a/SysCAMSGenerationCode/generated_H/sin_source.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef SIN_SOURCE_H
-#define SIN_SOURCE_H
-
-#include <cmath>
-#include <iostream>
-#include <systemc-ams>
-
-SCA_TDF_MODULE(sin_source) {
-
-	// TDF port declarations
-	sca_tdf::sca_out<double> out;
-
-	// Constructor
-	SCA_CTOR(sin_source)
-	: out("out")
-	{}
-
-	void set_attributes() {
-		set_timestep(0, sc_core::SC_MS);
-		out.set_timestep(1, sc_core::SC_US);
-		out.set_rate(0);
-		out.set_delay(0);
-	}
-
-	void processing() {  double t = out.get_time().to_seconds();  double x = 1.5 * sin(2.0 * M_PI * 50.0 * t);  out.write(x); }
-
-};
-
-#endif // SIN_SOURCE_H
\ No newline at end of file
diff --git a/SysCAMSGenerationCode/generated_H/sink.h b/SysCAMSGenerationCode/generated_H/sink.h
deleted file mode 100644
index bcf8081484..0000000000
--- a/SysCAMSGenerationCode/generated_H/sink.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef SINK_H
-#define SINK_H
-
-#include <cmath>
-#include <iostream>
-#include <systemc-ams>
-
-SCA_TDF_MODULE(sink) {
-
-	// TDF port declarations
-	sca_tdf::sca_in<double> in;
-
-	// Constructor
-	SCA_CTOR(sink)
-	: in("in")
-	{}
-
-	void set_attributes() {
-		set_timestep(0, sc_core::SC_MS);
-		in.set_timestep(0, sc_core::SC_US);
-		in.set_rate(0);
-		in.set_delay(0);
-	}
-
-	void processing() {  using namespace std;  cout << this->name() << " @ " << this->get_time() << ": "     << in.read() << endl; } 
-
-};
-
-#endif // SINK_H
\ No newline at end of file
-- 
GitLab