Commit c1d59be2 authored by Yuanting Liu's avatar Yuanting Liu

initial commit for new MM2MM M2M tool

parent 2c31abed
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-gen"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.fortiss.af3.multicore</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.xtend.shared.ui.xtendBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.xtend.shared.ui.xtendXPandNature</nature>
</natures>
</projectDescription>
#Fri Dec 03 09:44:37 CET 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Multicore
Bundle-SymbolicName: org.fortiss.af3.multicore; singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: org.fortiss.af3.multicore.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.emf.ecore,
org.eclipse.xtend;bundle-version="1.0.0",
org.eclipse.xpand;bundle-version="1.0.0",
org.eclipse.emf.ecore.xmi;bundle-version="2.5.0",
org.eclipse.emf.edit.ui;bundle-version="2.6.0",
org.antlr.runtime;bundle-version="3.0.0",
com.ibm.icu.source;bundle-version="4.2.1",
org.eclipse.emf.mwe.activities;bundle-version="1.0.0",
org.eclipse.emf.mwe.ui;bundle-version="1.0.0",
org.eclipse.emf.mwe.ui.simpleEditor;bundle-version="1.0.0",
org.eclipse.emf.mwe.utils;bundle-version="1.0.0",
org.eclipse.emf.mwe2.language;bundle-version="1.0.0",
org.eclipse.emf.mwe2.language.ui;bundle-version="1.0.0",
org.eclipse.emf.mwe2.launch;bundle-version="1.0.0",
org.eclipse.jface.text;bundle-version="3.6.0",
org.eclipse.xtend.typesystem.emf;bundle-version="1.0.0",
org.eclipse.xtend.typesystem.emf.ui;bundle-version="1.0.0",
org.eclipse.xtend.check.ui;bundle-version="1.0.0",
org.eclipse.xtend.profiler;bundle-version="1.0.0",
org.eclipse.xtend.shared.ui;bundle-version="1.0.0",
org.eclipse.xtend.ui;bundle-version="1.0.0",
edu.tum.cs.ccts.editor.base;bundle-version="0.3.0",
edu.tum.cs.ccts.errormodel;bundle-version="0.3.0",
edu.tum.cs.ccts.execution;bundle-version="0.3.0",
edu.tum.cs.ccts.library.base;bundle-version="0.3.0",
edu.tum.cs.ccts.model.base;bundle-version="0.3.0",
edu.tum.cs.ccts.operatorpanel;bundle-version="0.3.0",
edu.tum.cs.ccts.typesystem;bundle-version="0.3.0",
edu.tum.cs.ccsm.dev_tools;bundle-version="1.6.1",
edu.tum.cs.ccsm.emf_tools;bundle-version="1.6.1",
edu.tum.cs.ccts.common.architecture;bundle-version="0.3.0",
org.eclipse.xpand.activities;bundle-version="1.0.0",
org.eclipse.xpand.ui;bundle-version="1.0.0",
org.junit4;bundle-version="4.8.1",
edu.tum.cs.rateclipse;bundle-version="1.6.1",
org.eclipse.emf.ecore.xmi.source;bundle-version="2.5.0",
org.eclipse.jface.databinding.source;bundle-version="1.4.0",
org.eclipse.jface.source;bundle-version="3.6.0",
org.eclipse.jface.text.source;bundle-version="3.6.0",
org.eclipse.xtext.xtend;bundle-version="1.0.0",
org.eclipse.xtext.xtend.source;bundle-version="1.0.0",
edu.tum.cs.af3.generator;bundle-version="0.3.0",
edu.tum.cs.af3.generator.embedded.c;bundle-version="0.3.0",
org.apache.commons.logging;bundle-version="1.1.1",
org.fortiss.core;bundle-version="1.0.0",
org.fortiss.emf;bundle-version="1.0.0",
org.fortiss.m2m;bundle-version="1.0.0",
org.eclipse.core.runtime
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
source.. = src/,\
src-gen/
output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml
# <copyright>
# </copyright>
#
# $Id$
pluginName = Multicore Model
providerName = www.example.org
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
<copyright>
</copyright>
$Id$
-->
<plugin>
<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri="www.fortiss.org/multicore"
class="multicore.MulticorePackage"/>
</extension>
</plugin>
// this file is generated automatically
// this file is for P1
#include "P1.h"
void P1 (
alt_u32* send_message_1 ,
alt_u32* send_message_2 ,
alt_u32* recv_message )
{
// the following code is handwriten code for P1,
// it will be replaced by the code generated automatically by code generator
// file end here
}
\ No newline at end of file
// this file is generated automatically
// this file is for P1
#include <stdio.h>
#include <string.h>
#include "system.h"
#include "nios2.h"
#include "altera_avalon_mailbox.h"
#include "altera_avalon_pio_regs.h"
//process P1
void P1
(
alt_u32* send_message_1 ,
alt_u32* send_message_2 ,
alt_u32* recv_message
);
\ No newline at end of file
// this file is generated automatically
// this file is for P1
#include "P1_env.h"
int P1_env()
{
alt_mailbox_dev* send_message_1_dev;
alt_mailbox_dev* send_message_2_dev;
alt_mailbox_dev* recv_message_dev;
send_message_1_dev = altera_avalon_mailbox_open("/dev/[mailbox1]");
send_message_2_dev = altera_avalon_mailbox_open("/dev/[mailbox2]");
recv_message_dev = altera_avalon_mailbox_open("/dev/[mailbox5]");
alt_u32 send_message_1_P1 = 0;
alt_u32 send_message_2_P1 = 0;
alt_u32 recv_message_P1 = 0;
volatile alt_u32 delay = 0 ;
while(1)
{
recv_message_P1 = altera_avalon_mailbox_pend(recv_message_dev);
// call the behavior/automaton function of P1
P1
(
& send_message_1_P1 ,
& send_message_2_P1 ,
& recv_message_P1
);
// wait
delay = 0;
while(delay < 5000000)
{
delay ++;
}
send_message_1_P1 = altera_avalon_mailbox_post(send_message_1_dev);
// wait
delay = 0;
while(delay < 5000000)
{
delay ++;
}
send_message_2_P1 = altera_avalon_mailbox_post(send_message_2_dev);
}
return 0;
}
\ No newline at end of file
// this file is generated automatically
#include "P1.h"
//process P1
int P1_env( );
// file ends here
\ No newline at end of file
// this file is generated automatically
// this file is for P2
#include "P2.h"
void P2 (
alt_u32* recv_message ,
alt_u32* send_message )
{
}
\ No newline at end of file
// this file is generated automatically
// this file is for P2
#include <stdio.h>
#include <string.h>
#include "system.h"
#include "nios2.h"
#include "altera_avalon_mailbox.h"
#include "altera_avalon_pio_regs.h"
//process P2
void P2
(
alt_u32* recv_message ,
alt_u32* send_message
);
\ No newline at end of file
// this file is generated automatically
// this file is for P3
#include "P3.h"
void P3 (
alt_u32* recv_message ,
alt_u32* send_message )
{
}
\ No newline at end of file
// this file is generated automatically
// this file is for P3
#include <stdio.h>
#include <string.h>
#include "system.h"
#include "nios2.h"
#include "altera_avalon_mailbox.h"
#include "altera_avalon_pio_regs.h"
//process P3
void P3
(
alt_u32* recv_message ,
alt_u32* send_message
);
\ No newline at end of file
// this file is generated automatically
#include "P3_P2_env.h"
int P3_P2_env( )
{