1 #include "DelayInputModifier.h"
\r
2 #include "ConnectedInterface.h"
\r
4 DelayInputModifier::DelayInputModifier(ConnectedInterface *_associatedInterface, int _delayLength) : AbstractInputModifier(_associatedInterface) {
\r
5 setDelayLength(_delayLength);
\r
8 void DelayInputModifier::setDelayLength(int _delayLength) {
\r
9 if (_delayLength < 1) _delayLength = 1;
\r
10 delayLength = _delayLength;
\r
13 QList<char>* DelayInputModifier::getModifiedInput(QList<char>* input) {
\r
16 for(int i=0;i<delayLength;i++) pattern->append(0);
\r
17 pattern->append(*input);
\r
21 QString DelayInputModifier::toVHDL(int context, int flags) throw(Exception) {
\r
25 QString DelayInputModifier::getTypeStr() {
\r
29 QString DelayInputModifier::getParametersStr() {
\r
30 return QString::number(delayLength);
\r
33 bool DelayInputModifier::isDelay() {
\r