Team:ENSPS-Strasbourg/Project

From 2011.igem.org

(Difference between revisions)
(Further Improvements)
 
(58 intermediate revisions not shown)
Line 1: Line 1:
-
<!-- *** What falls between these lines is the Alert Box!  You can remove it from your pages once you have read and understood the alert *** -->
+
{{ENSPS-Strasbourg/Temp}}
-
<html>
+
__NOTOC__
-
<div id="box" style="width: 700px; margin-left: 137px; padding: 5px; border: 3px solid #000; background-color: #fe2b33;">
+
-
<div id="template" style="text-align: center; font-weight: bold; font-size: large; color: #f6f6f6; padding: 5px;">
+
-
This is a template page. READ THESE INSTRUCTIONS.
+
-
</div>
+
-
<div id="instructions" style="text-align: center; font-weight: normal; font-size: small; color: #f6f6f6; padding: 5px;">
+
-
You are provided with this team page template with which to start the iGEM season.  You may choose to personalize it to fit your team but keep the same "look." Or you may choose to take your team wiki to a different level and design your own wiki.  You can find some examples <a href="https://2008.igem.org/Help:Template/Examples">HERE</a>.
+
-
</div>
+
-
<div id="warning" style="text-align: center; font-weight: bold; font-size: small; color: #f6f6f6; padding: 5px;">
+
-
You <strong>MUST</strong> have a team description page, a project abstract, a complete project description, a lab notebook, and a safety page.  PLEASE keep all of your pages within your teams namespace. 
+
-
</div>
+
-
</div>
+
-
</html>
+
-
<!-- *** End of the alert box *** -->
+
=Introduction=
-
{|align="justify"
+
=Choice of the tools=
-
|You can write a background of your team here. Give us a background of your team, the members, etc.  Or tell us more about something of your choosing.
+
The first step was to choose a programming language suitable for making our implementation. Ideally, we wanted to use the same language to program both GUI and file generation.  
-
|[[Image:ENSPS-Strasbourg_logo.png|200px|right|frame]]
+
In a previous project, we have already programed a GUI, in C++ language, with the framework QT creatorMoreover, the C++ is a powerful multi-purpose language which could be suitable for making our file generation. Another advantage of C++ is that we have a C/C++ programming module in our course, and we thought that it was probably better to implement this program with a language we already knew.
-
|-
+
We have so decided to use C++, for its versatility, and because we are quite used to it.
-
|
+
-
''Tell us more about your project.  Give us background. Use this is the abstract of your project. Be descriptive but concise (1-2 paragraphs)''
+
-
|[[Image:ENSPS-Strasbourg_team.png|right|frame|Your team picture]]
+
-
|-
+
-
|
+
-
|align="center"|[[Team:ENSPS-Strasbourg | Team Example]]
+
-
|}
+
-
<!--- The Mission, Experiments --->
+
"Qt creator – presentation:"
 +
[[File:qt_logo.jpg|border|150px|left|link=]]
-
{| style="color:#1b2c8a;background-color:#0c6;" cellpadding="3" cellspacing="1" border="1" bordercolor="#fff" width="62%" align="center"
+
Qt Creator is an integrated development environment (IDE) that provides tools to design and develop applications with the Qt application framework. Qt is designed for developing applications and user interfaces once and deploying them across several desktop and mobile operating systems.
-
!align="center"|[[Team:ENSPS-Strasbourg|Home]]
+
-
!align="center"|[[Team:ENSPS-Strasbourg/Team|Team]]
+
-
!align="center"|[https://igem.org/Team.cgi?year=2010&team_name=ENSPS-Strasbourg Official Team Profile]
+
-
!align="center"|[[Team:ENSPS-Strasbourg/Project|Project]]
+
-
!align="center"|[[Team:ENSPS-Strasbourg/Parts|Parts Submitted to the Registry]]
+
-
!align="center"|[[Team:ENSPS-Strasbourg/Modeling|Modeling]]
+
-
!align="center"|[[Team:ENSPS-Strasbourg/Notebook|Notebook]]
+
-
!align="center"|[[Team:ENSPS-Strasbourg/Safety|Safety]]
+
-
!align="center"|[[Team:ENSPS-Strasbourg/Attributions|Attributions]]
+
-
|}
+
 +
<span id="v1"></span>
 +
Then, we need to find an electronic circuit simulator which enables us to simulate the systems as electronic systems. For that, we choose SMASH (Dolphin), because this software is one of the most accomplished simulation software, so as to simulate both digital and analog electronics.
-
== '''Overall project''' ==
 
-
Your abstract
+
=Version 1 - « Behavioral Code Generator »=
 +
==Introduction==
 +
The first step of the project was to validate the concept of the program. We have so decided to build a first version of the software, with digital models. This version, entitled “Behavioral Code Generator”, permits the user to simulate a logic (or behavioral) version of the reactions of his system. This version enables the biologist to have a quick overview on the system, and could be useful for him before going further into the biobrick's conception<br>
 +
<br>
 +
==Approach==
 +
The aim of this first implementation is to validate the idea of building a software which generates automatically models for each reaction of a system. Those models are electrical models of three basic biological mechanisms (inhibition, complexation and synthesis), written in VHDL, as seen in the [https://2011.igem.org/Team:ENSPS-Strasbourg/Modeling#vhdlmodels Models section]. After that, this generation can be simulated directly with an electronic circuit simulator, as a digital electronic circuit.<br>
 +
<br>
-
== Project Details==
 
 +
==File generation==
 +
The goal is to generate automatically VHDL files which are representative of the different reactions of the system. For that, our approach is to use pattern files, and to fill up those files with the right variables (species, names…), depending on the reactions implemented by the user.<br>
 +
To simulate a system, the electric simulator needs several files:<br>
 +
• One VHDL description per entity<br>
 +
• A test-bench file<br>
 +
===Entity files===
-
=== Part 2 ===
+
====Principle:==== 
 +
At each entity (or each reaction) corresponds a VHDL file. An example of VHDL pattern file is available below:<br>
 +
<br>
 +
[[File:pattern_ex_behav.jpg|border|300px|center|link=]]<br>
 +
This file defines the structure of all the VHDL files which will contain a synthesis reaction. It is the same file for every synthesis reaction the user will create. Then, several parameters have to be changed. All the expressions between the symbols “%%” are attributes of the reaction:<br>
 +
• ENTITY_NAME: Name of the reaction (given by the user)<br>
 +
• PORT_DECLARATION: This section will contain the different variables (species) of the reaction, and if those species are inputs or outputs<br>
 +
• LOGICAL_EQUATION: In this section, the model of the reaction, described by a logical equation, is inserted so as to have the right behavior between inputs and outputs<br>
 +
In the image below, you can see a correctly filled pattern file. Indeed, the entity name has been replaced by the name of the reaction given by the user, the different species involved into the reaction ( ZFP0 and ZFP3 in input, GFP in output), are correctly mapped, and the logical equation is automatically established (in this case GFP is synthetized only if there is ZFP0 (the activator) and not ZFP3 (the repressor) ).<br>
 +
<br>
 +
<span id="how"></span>
 +
[[File:pattern_rempli_behav.jpg|border|300px|center|link=]]<br>
-
=== The Experiments ===
+
===How does it work?===
 +
The C++ code, linked with the GUI, stock the different species and reactions involved in the system. A special Class architecture of the code, based on heritage, enables the program to know exactly which species are involved in which reaction. This heritage structure is explained in the following scheme:<br>
 +
[[File:schem_over_C++.jpg|300px|center|link=]]
 +
Basically, each part of this scheme is a class of our implementation. Each of this class has attributes. The question is: What do I need to know to describe each part? <br>
 +
- The system needs to know 1)how the user wants to call it 2)which are the different reactions involved into it <br>
 +
- Each reaction needs to know 1)its name (given by the user), 2)its type (inhibition, complexation or synthesis) and 3) which are the inputs and output species <br>
 +
- Each species of the system needs to know 1)its name, and 2) its initial value <br>
 +
<br>
 +
Then, we have all the information we need to start building our system. We have so implented several functions and methods so as to extract, list, classify this information, all this amount of data, and process it to build a system. <br>
 +
<br>
-
=== Further Improvements ===
+
[[File:archi_soft.jpg|border|600px|center|link=]]
-
The current work has validated a crucial part of our works, to prove that synthetic biology and digital microelectronics could be correlated, and this part of electronics could be useful for helping biologists to create bio-systems. The current software version enables to create a system with two basic biological mechanisms simulated thanks to a VHDL-AMS modelisation.
+
The software architecture is based on two QT main functionalities, the Main Window and the Manager. The Main window is the interface between the software and the user. From this window, the user can talk with the software, enter the species, parameters, reaction, etc…  The user builds all the reaction blocks with this interface. Then, to generate automatically the VHDL files associated with the system, the Manager analyses the different reactions, makes links between those blocks and generate the simulation files. This Manager is the crucial part of the architecture, and a lot of work has also been done to make the generation as automatic and reliable as possible. This is the invisible part of the work, the immerged part of the Iceberg. When the user press “generate the system”,  this manager is activated and realizes the file generation.
-
For the moment our software asks the user to specify all the species characteristics manually. However there are many databases which already gathered that information like the [http://partsregistry.org/Main_Pagewebsite  http://partsregistry.org/Main_Pagewebsite] . Then we could imagine a program’s module that would get all the available protein, suggests them to the biologist and downloads all the needed characteristics.
+
===Test Bench Generation===
-
Furthermore, the current interface is not as user friendly as we want it to be. A decent drag and drop system would be required, so as to enable the user to easily add new species, blocks and new reactions of his system. Then, the interaction between different blocks would be more visual, and the user could have in real time an overview of the whole system.
+
The Test-bench is necessary to perform a good simulation. This file gathers all the reactions of the system, and builds the links between the different reactions. The test-bench generation is the crucial part of the system generation. An example of a test-bench is available below. <br>
 +
[[File:empty_TB.jpg|border|300px|center|link=]]
-
In the same idea, we could imagine than the software can launch the VHDL simulator (DOLPHIN Smash Vision) directly, with just a button pressed by the user. Then, the system generated could be simulated automatically.
+
Once again, the principle is the same as entity files. Some parameters have to be added to completely fill the file. The principle of the test bench is so to gather the device's entities (or the system's reactions), and interconnect them together.
 +
- TB_ENTITY_NAME: name of the system (given by the user)<br>
-
Concerning the simulation, currently only basic stimuli are available. We could imagine extending the available simulation features for the system.
+
- TB_ARCHITECTURE_NAME: this name is useful for the simulation, and is automatically generated by the program. It is a VHDL specificity, so we are not going into detail here. <br>
 +
- TB_SIGNAL_DECLARATION: the simulator needs to know how many different variables (species) there are into the system. THose variables as represented as signals (another VHDL specificity). So, the program has to list all the species involved, and associate to them a signal.<br>
-
== Results ==
+
- TB_PORT_MAP: This is the crucial part of our work. To perform a simulation, the simulation needs to know how each entity (reaction) is connected. Until know, we have just implemented several blocks separately. Now, those blocks have to be interconnected together.
 +
 
 +
Then, thanks to the Manager code architecture, the test bench is filled with the right values. An example can be seen below.
 +
 
 +
[[File:full_TB.jpg|border|300px|center|link=]] <br>
 +
 
 +
<br>
 +
 
 +
The important part of the test bench is to gather the different components (reactions), and to map them so as to build the system. For gathering the different reactions, there are no specific issues for complexation and synthesis, but the interconnection is getting trickier with the inhibition (this issue is explained in the “Issue Faced” section below. Basically, the program goes into the different reactions, pick up the species, and if those species are the same the program know that they are interconnected. This mechanisms enables the test-bench generation<br>
 +
<br>
 +
 
 +
===Simulation File Generation:===
 +
To perform a simulation into SMASH software, we need to create an additional simulation file. This file gathers all the information the simulation software has to know to simulate the system. There are:
 +
• The list of the VHDL entity files (one file per reaction) to know how many components (reactions) are involved<br>
 +
• The name of the test bench (this file will be elaborated to have the whole system)<br>
 +
• The simulation parameters (start and stop simulation times, step of the simulation)<br>
 +
 
 +
Those parameters are generated automatically, or by the user for the simulation parameters.
 +
 
 +
 
 +
[[File:pat.jpg|border|500px|center|link=]]
 +
 
 +
==Issue Faced==
 +
 
 +
===Inhibition===
 +
 
 +
During the implementation of the program, some issues had to be overcome so as to make the file generation properly working.
 +
 
 +
 
 +
To gather all the reactions together, the initial approach is to give the same species names, and link those names as illustrated in the figure below.
 +
 
 +
[[File:gatherOK.jpg|500px|border|center|link=]] <br>
 +
 
 +
We could imagine than we want to link the output of CPLX1 and one of the input of SYNTH1 (in other words, the protein which is the result of the complexation between A and B is an activator or a repressor for the synthesis of the protein Y). Then, if both has the same name, the link could be done by the implementation.
 +
 
 +
This principle works for complexation and synthesis, but for inhibition, this association gets trickier. The problem is illustrated below:
 +
 
 +
[[File:gatherPB.jpg|500px|border|center|link=]] <br>
 +
 
 +
If we want to use a protein (for example E in the above scheme) as an input of another reaction (for example an activator or repressor of SYNTH1), but if this species E can be inhibited by another one, we could not connect directly neither E nor the Inhibitor as an input of the synthesis.
 +
 
 +
To solve this problem, we have decided to create another species, a fictive species, which is the result of the inhibition (E_inh for example here). Then, we associate this new species as an input for the synthesis reaction. This work has to be done for every species which can be inhibited. This methos is illustrated here:
 +
 
 +
[[File:gatherREFAIT.jpg|500px|border|center|link=]] <br>
 +
 
 +
 
 +
=Version 2 - « Conservative Code Generation »=
 +
 
 +
==Introduction==
 +
 
 +
The first version of the program has validated the concept of our program. Then, we could extend this concept to analog models. With a similar approach, we have built an extension of our software which will enable us to simulate conservative models of the bio-system.
 +
 
 +
==Approach==
 +
 
 +
The approach we use is basically the same than the behavioral version. New pattern files have been created to generate VHDL-AMS files. But this new version has several specificities, because of the language used to describe the reactions. Several new files need to be generated in order to build this new system.
 +
But, as explained in the Models part, the VHDL-AMS models are totally different from the VHDL ones. The VHDL-AMS model is now composed of several electronic elementary elements like resistors, capacitors, etc…
 +
 
 +
 
 +
 
 +
==File generation==
 +
===Entities files===
 +
The generation of the different entities (reactions) is made in the same way than the behavioral ones. A synthesis pattern file is presented below:
 +
 
 +
[[File:Synthesis_pattern.png|border|500px|center|link=]]
 +
 
 +
The filling principle is the same, all the parameters are between “%%” are replaced by the right values.
 +
 
 +
===Other files===
 +
But, to perform the conservative simulation, in addition to the entity (reaction) and test-bench files, we have to generate files for each of the species involved. Each species is represented by a set of those electronic elements, and this set is used or not, depending on the type of the reaction.
 +
The new files which have to be generated are resistor and capacitor representatives of the different species of the system. We will not going into details in this part because it is a VHDL-AMS specificity. But basically, the set of parameters is different depending if the species are input or output of a reaction. If the species is an input, it is represented just as a resistor. If this species is an output, it is represented by a capacitor and a resistor, as explained in the [https://2011.igem.org/Team:ENSPS-Strasbourg/Modeling#vhdlmodels Models part], but also intermediate mRNA has to be generated, also represented as a resistor and a capacitor.
 +
An example of those files is available below:
 +
 
 +
[[File:Capacitor_pattern.png|border|500px|center|link=]]
 +
 
 +
The architecture of the code stays the same as in the section [https://2011.igem.org/Team:ENSPS-Strasbourg/Project#how “How does it work?”].
 +
 
 +
===Test bench===
 +
 
 +
The test bench is generated from a pattern file, with the same manner as the Behavioral test –bench.
 +
 
 +
Here, to gather the different blocks is less tricky than for the behavioral model. Indeed, the inhibition is not useful for this type of models, so the issue with inhibition is absent. Another reason is the specificity of VHDL-AMS language. In fact, the language has to know the different nodes involved in the system. Each node is a place where more than one signal is connected. Then, the program has to specify each node of the system, and several species can be connected to this node, the gathering of the different blocks is so less difficult here.
 +
 
 +
===Simulation File===
 +
The simulation file is the same than the behavioral file.

Latest revision as of 19:58, 21 September 2011


Introduction

Choice of the tools

The first step was to choose a programming language suitable for making our implementation. Ideally, we wanted to use the same language to program both GUI and file generation. In a previous project, we have already programed a GUI, in C++ language, with the framework QT creator. Moreover, the C++ is a powerful multi-purpose language which could be suitable for making our file generation. Another advantage of C++ is that we have a C/C++ programming module in our course, and we thought that it was probably better to implement this program with a language we already knew. We have so decided to use C++, for its versatility, and because we are quite used to it.

"Qt creator – presentation:"

Qt logo.jpg

Qt Creator is an integrated development environment (IDE) that provides tools to design and develop applications with the Qt application framework. Qt is designed for developing applications and user interfaces once and deploying them across several desktop and mobile operating systems.

Then, we need to find an electronic circuit simulator which enables us to simulate the systems as electronic systems. For that, we choose SMASH (Dolphin), because this software is one of the most accomplished simulation software, so as to simulate both digital and analog electronics.


Version 1 - « Behavioral Code Generator »

Introduction

The first step of the project was to validate the concept of the program. We have so decided to build a first version of the software, with digital models. This version, entitled “Behavioral Code Generator”, permits the user to simulate a logic (or behavioral) version of the reactions of his system. This version enables the biologist to have a quick overview on the system, and could be useful for him before going further into the biobrick's conception


Approach

The aim of this first implementation is to validate the idea of building a software which generates automatically models for each reaction of a system. Those models are electrical models of three basic biological mechanisms (inhibition, complexation and synthesis), written in VHDL, as seen in the Models section. After that, this generation can be simulated directly with an electronic circuit simulator, as a digital electronic circuit.


File generation

The goal is to generate automatically VHDL files which are representative of the different reactions of the system. For that, our approach is to use pattern files, and to fill up those files with the right variables (species, names…), depending on the reactions implemented by the user.

To simulate a system, the electric simulator needs several files:
• One VHDL description per entity
• A test-bench file

Entity files

Principle:

At each entity (or each reaction) corresponds a VHDL file. An example of VHDL pattern file is available below:

Pattern ex behav.jpg


This file defines the structure of all the VHDL files which will contain a synthesis reaction. It is the same file for every synthesis reaction the user will create. Then, several parameters have to be changed. All the expressions between the symbols “%%” are attributes of the reaction:
• ENTITY_NAME: Name of the reaction (given by the user)
• PORT_DECLARATION: This section will contain the different variables (species) of the reaction, and if those species are inputs or outputs
• LOGICAL_EQUATION: In this section, the model of the reaction, described by a logical equation, is inserted so as to have the right behavior between inputs and outputs
In the image below, you can see a correctly filled pattern file. Indeed, the entity name has been replaced by the name of the reaction given by the user, the different species involved into the reaction ( ZFP0 and ZFP3 in input, GFP in output), are correctly mapped, and the logical equation is automatically established (in this case GFP is synthetized only if there is ZFP0 (the activator) and not ZFP3 (the repressor) ).

Pattern rempli behav.jpg


How does it work?

The C++ code, linked with the GUI, stock the different species and reactions involved in the system. A special Class architecture of the code, based on heritage, enables the program to know exactly which species are involved in which reaction. This heritage structure is explained in the following scheme:

Schem over C++.jpg

Basically, each part of this scheme is a class of our implementation. Each of this class has attributes. The question is: What do I need to know to describe each part?
- The system needs to know 1)how the user wants to call it 2)which are the different reactions involved into it
- Each reaction needs to know 1)its name (given by the user), 2)its type (inhibition, complexation or synthesis) and 3) which are the inputs and output species
- Each species of the system needs to know 1)its name, and 2) its initial value

Then, we have all the information we need to start building our system. We have so implented several functions and methods so as to extract, list, classify this information, all this amount of data, and process it to build a system.

Archi soft.jpg

The software architecture is based on two QT main functionalities, the Main Window and the Manager. The Main window is the interface between the software and the user. From this window, the user can talk with the software, enter the species, parameters, reaction, etc… The user builds all the reaction blocks with this interface. Then, to generate automatically the VHDL files associated with the system, the Manager analyses the different reactions, makes links between those blocks and generate the simulation files. This Manager is the crucial part of the architecture, and a lot of work has also been done to make the generation as automatic and reliable as possible. This is the invisible part of the work, the immerged part of the Iceberg. When the user press “generate the system”, this manager is activated and realizes the file generation.

Test Bench Generation

The Test-bench is necessary to perform a good simulation. This file gathers all the reactions of the system, and builds the links between the different reactions. The test-bench generation is the crucial part of the system generation. An example of a test-bench is available below.

Empty TB.jpg

Once again, the principle is the same as entity files. Some parameters have to be added to completely fill the file. The principle of the test bench is so to gather the device's entities (or the system's reactions), and interconnect them together. - TB_ENTITY_NAME: name of the system (given by the user)

- TB_ARCHITECTURE_NAME: this name is useful for the simulation, and is automatically generated by the program. It is a VHDL specificity, so we are not going into detail here.
- TB_SIGNAL_DECLARATION: the simulator needs to know how many different variables (species) there are into the system. THose variables as represented as signals (another VHDL specificity). So, the program has to list all the species involved, and associate to them a signal.

- TB_PORT_MAP: This is the crucial part of our work. To perform a simulation, the simulation needs to know how each entity (reaction) is connected. Until know, we have just implemented several blocks separately. Now, those blocks have to be interconnected together.

Then, thanks to the Manager code architecture, the test bench is filled with the right values. An example can be seen below.

Full TB.jpg


The important part of the test bench is to gather the different components (reactions), and to map them so as to build the system. For gathering the different reactions, there are no specific issues for complexation and synthesis, but the interconnection is getting trickier with the inhibition (this issue is explained in the “Issue Faced” section below. Basically, the program goes into the different reactions, pick up the species, and if those species are the same the program know that they are interconnected. This mechanisms enables the test-bench generation

Simulation File Generation:

To perform a simulation into SMASH software, we need to create an additional simulation file. This file gathers all the information the simulation software has to know to simulate the system. There are: • The list of the VHDL entity files (one file per reaction) to know how many components (reactions) are involved
• The name of the test bench (this file will be elaborated to have the whole system)
• The simulation parameters (start and stop simulation times, step of the simulation)

Those parameters are generated automatically, or by the user for the simulation parameters.


Pat.jpg

Issue Faced

Inhibition

During the implementation of the program, some issues had to be overcome so as to make the file generation properly working.


To gather all the reactions together, the initial approach is to give the same species names, and link those names as illustrated in the figure below.

GatherOK.jpg

We could imagine than we want to link the output of CPLX1 and one of the input of SYNTH1 (in other words, the protein which is the result of the complexation between A and B is an activator or a repressor for the synthesis of the protein Y). Then, if both has the same name, the link could be done by the implementation.

This principle works for complexation and synthesis, but for inhibition, this association gets trickier. The problem is illustrated below:

GatherPB.jpg

If we want to use a protein (for example E in the above scheme) as an input of another reaction (for example an activator or repressor of SYNTH1), but if this species E can be inhibited by another one, we could not connect directly neither E nor the Inhibitor as an input of the synthesis.

To solve this problem, we have decided to create another species, a fictive species, which is the result of the inhibition (E_inh for example here). Then, we associate this new species as an input for the synthesis reaction. This work has to be done for every species which can be inhibited. This methos is illustrated here:

GatherREFAIT.jpg


Version 2 - « Conservative Code Generation »

Introduction

The first version of the program has validated the concept of our program. Then, we could extend this concept to analog models. With a similar approach, we have built an extension of our software which will enable us to simulate conservative models of the bio-system.

Approach

The approach we use is basically the same than the behavioral version. New pattern files have been created to generate VHDL-AMS files. But this new version has several specificities, because of the language used to describe the reactions. Several new files need to be generated in order to build this new system. But, as explained in the Models part, the VHDL-AMS models are totally different from the VHDL ones. The VHDL-AMS model is now composed of several electronic elementary elements like resistors, capacitors, etc…


File generation

Entities files

The generation of the different entities (reactions) is made in the same way than the behavioral ones. A synthesis pattern file is presented below:

Synthesis pattern.png

The filling principle is the same, all the parameters are between “%%” are replaced by the right values.

Other files

But, to perform the conservative simulation, in addition to the entity (reaction) and test-bench files, we have to generate files for each of the species involved. Each species is represented by a set of those electronic elements, and this set is used or not, depending on the type of the reaction. The new files which have to be generated are resistor and capacitor representatives of the different species of the system. We will not going into details in this part because it is a VHDL-AMS specificity. But basically, the set of parameters is different depending if the species are input or output of a reaction. If the species is an input, it is represented just as a resistor. If this species is an output, it is represented by a capacitor and a resistor, as explained in the Models part, but also intermediate mRNA has to be generated, also represented as a resistor and a capacitor. An example of those files is available below:

Capacitor pattern.png

The architecture of the code stays the same as in the section “How does it work?”.

Test bench

The test bench is generated from a pattern file, with the same manner as the Behavioral test –bench.

Here, to gather the different blocks is less tricky than for the behavioral model. Indeed, the inhibition is not useful for this type of models, so the issue with inhibition is absent. Another reason is the specificity of VHDL-AMS language. In fact, the language has to know the different nodes involved in the system. Each node is a place where more than one signal is connected. Then, the program has to specify each node of the system, and several species can be connected to this node, the gathering of the different blocks is so less difficult here.

Simulation File

The simulation file is the same than the behavioral file.