// Filename : multiplier.h
//
// This file was initially generated by SpaceStudio but is meant to be modified
// by the user.
#ifndef MULTIPLIER_H
#define MULTIPLIER_H

#include "spacecomp.h"
#include "abstract_module.h"
#include "application_definitions.h"

#include <stdint.h>

class multiplier: public abstract_module {
	SPACECOMP_START(multiplier, INDEX, multiplier);

public:
	multiplier(SPACECOMP_CTOR_PARAMS(multiplier, INDEX));

	void thread(SPACECOMP_THREAD_PARAMS(multiplier, INDEX, thread));

private:

	int32_t multiply(int32_t operand1, int32_t operand2);
	int32_t read_operand();
	void send_result(int32_t data);

	SPACECOMP_END(multiplier, INDEX, multiplier);
};

#endif
