Skip to content

Margus Roo –

If you're inventing and pioneering, you have to be willing to be misunderstood for long periods of time

  • Cloudbreak Autoscale fix
  • Endast

ERROR: Bad Request;default/org.apache.falcon.FalconWebException::org.apache.falcon.FalconException: java.lang.RuntimeException: java.lang.IllegalStateException: Cluster entity vertex must exist

Posted on July 26, 2016 by margusja

Somehow I started to get: ERROR: Bad Request;default/org.apache.falcon.FalconWebException::org.apache.falcon.FalconException: java.lang.RuntimeException: java.lang.IllegalStateException: Cluster entity vertex must exist

I did not find any solution from internet.

The solution helped me was to delete directory /hadoop/falcon/embeddedmq from falcon server and restart falcon server.

Posted in IT

Basys2 – four bit counter to seven segment led display

Posted on July 6, 2016 - July 6, 2016 by margusja

I have made clocks using different hardware.

Now I started with a Basys2.

I can count the seconds 🙂 that is the most important thing!

Stay tuned soon I have real clock with hours and minutes.

Posted in Elektroonika

VHDL is cool

Posted on May 23, 2016 by margusja

and_or_tb Screen Shot 2016-05-23 at 22.52.21

Posted in Fun, IT

Basys2 and four bit binary to decimal number into seven segment led display

Posted on April 2, 2016 - April 28, 2016 by margusja

2016-03-21 20.22.56At first the good idea is to draw down signals from the  input to the output. Basically it is the truth table:

In the header we can see seven segment display led signals (ca…cg)

Out – decimal number I hope to display and sw3…sw0 input in binary.

-------------------------------------------------
--ca |cb |cc |cd |ce |cf |cg |out|sw3|sw2|sw1|sw0
-------------------------------------------------
-- 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1
-- 0 | 0 | 1 | 0 | 0 | 1 | 0 | 2 | 0 | 0 | 1 | 0
-- 0 | 0 | 0 | 0 | 1 | 1 | 0 | 3 | 0 | 0 | 1 | 1
-- 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 | 0 | 1 | 0 | 0
-- 0 | 1 | 0 | 0 | 1 | 0 | 0 | 5 | 0 | 1 | 0 | 1
-- 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 1 | 1 | 0
-- 0 | 0 | 0 | 1 | 1 | 1 | 1 | 7 | 0 | 1 | 1 | 1
-- 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 1 | 0 | 0 | 0
-- 0 | 0 | 0 | 1 | 1 | 0 | 0 | 9 | 1 | 0 | 0 | 1
-- 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0

Now we have functional relation between the input and the output so lets implement it in VHDL:

process (sw)
BEGIN
case sw is
	when "0001" => segment7 <= "1001111"; -- 1
	when "0010" => segment7 <= "0010010"; -- 2
	when "0011" => segment7 <= "0000110"; -- 3
	when "0100" => segment7 <= "1001100"; -- 4
	when "0101" => segment7 <= "0100100"; -- 5
	when "0110" => segment7 <= "1100000"; -- 6
	when "0111" => segment7 <= "0001111"; -- 7
	when "1000" => segment7 <= "0000000"; -- 8
	when "1001" => segment7 <= "0001100"; -- 9
	when "0000" => segment7 <= "0000001"; -- 0
	when others => segment7 <= "1111111"; -- blank
end case;
END process;

Quite easy :) - full code is locating https://github.com/margusja/binary2decimalLed/blob/master/one.vhd

But this is not I want. In hardware we can not do thinks like case. So lets move closer to the hardware.

Screen Shot 2016-04-06 at 22.36.30
This is not optimized solution but much closer to hardware than previous one. 

Update
Got time and optimized logic.
13087789_1608990496089069_6114430185435126336_n 

And sentences are much better compared previous ones:
--ca <= (not sw3 AND not sw2 AND not sw1 AND sw0) OR (not sw3 AND sw2 AND not sw1 AND not sw0);
ca <= (not sw0 AND sw2 AND not sw3) OR (sw0 AND not sw1 AND  not sw2 AND not sw3);
cb <= (sw0 AND not sw1 AND sw2 AND not sw3) OR (not sw0 AND sw1 AND sw2 AND not sw3);
cc <= (not sw3 AND not sw2 AND sw1 AND not sw0);
--cd <= (not sw3 AND not sw2 AND not sw1 AND sw0) OR (not sw3 AND sw2 AND not sw1 AND not sw0) 
--		OR (not sw3 AND sw2 AND sw1 AND sw0) OR (sw3 AND not sw2 AND not sw1 AND sw0);
cd <= (sw0 AND not sw1 AND not sw2) OR (not sw0 AND not sw1 AND sw2 AND not sw3) OR 
		(sw0 AND sw1 AND sw2 AND not sw3);
--ce <= (not sw3 AND not sw2 AND not sw1 AND sw0) OR (not sw3 AND not sw2 AND sw1 AND sw0) 
--			OR (not sw3 AND sw2 AND not sw1 AND not sw0) OR (not sw3 AND sw2 AND not sw1 AND sw0)
--			OR (not sw3 AND sw2 AND sw1 AND sw0) OR (sw3 AND not sw2 AND not sw1 AND sw0);
ce <= (sw0 AND not sw3) OR (not sw1 AND sw2 AND not sw3) OR (sw0 AND not sw1 AND not sw2);
--cf <= (not sw3 AND not sw2 AND not sw1 AND sw0) OR (not sw3 AND not sw2 AND sw1 AND not sw0)
--		OR (not sw3 AND not sw2 AND sw1 AND sw0) OR (not sw3 AND sw2 AND sw1 AND sw0);
cf <= (sw1 AND not sw2 AND not sw3) OR (sw0 AND not sw2 AND not sw3) OR (sw0 AND sw1 AND not sw3);
--cg <= (not sw3 AND not sw2 AND not sw1 AND sw0) OR (not sw3 AND sw2 AND sw1 AND sw0)
--		OR (not sw3 AND not sw2 AND not sw1 AND not sw0);		
cg <= (not sw1 AND not sw2 AND not sw3) OR (sw0 AND sw1 AND sw2 AND not sw3);
Posted in Elektroonika, IT

First steps in Hortonworks HDF (NiFi)

Posted on April 1, 2016 by margusja

Just downloaded package. Unpacked and run.

Opened GUI and defined simple workflow:

  1. Listen one local directory and if there will be file transport it into HDFS
  2. Listen webpage changes and if there is change then transport it into HDFS

So to create workflow I needed to drag neccessary  component into nifi canvas. After it I configured it and run. And still it looks awesome.

Screen Shot 2016-04-01 at 17.53.13

Posted in IT

Apache-Flink on my machine

Posted on March 31, 2016 - March 31, 2016 by margusja

It is easy to set up and run local flink.

Download it, unpack and run

Screen Shot 2016-03-31 at 22.15.45





Start netcat and insert some content

Screen Shot 2016-03-31 at 22.15.57

 

GUI will give information about the process

Screen Shot 2016-03-31 at 22.09.40 Screen Shot 2016-03-31 at 22.09.20

And result

Screen Shot 2016-03-31 at 22.15.37

 

Posted in IT

Full adder in Basys2 in VHDL

Posted on March 21, 2016 by margusja

Plan – and truth table

2016-03-21 22.14.43

Code in github – https://github.com/margusja/FullAdder

And some pics

a is on, result sum is on

2016-03-21 20.22.19
b is on, result sum is on
2016-03-21 20.22.56
a, b, overflow are on, result sum on and output overflow is on
2016-03-21 22.14.30

Posted in Elektroonika

Basys2 – 30bit counter with leds

Posted on March 1, 2016 - March 1, 2016 by margusja

30 bit counter last 8 bits (22 to 29) connected to leds

Posted in Elektroonika, IT

Lained on ilusad

Posted on February 25, 2016 - February 25, 2016 by margusja

counter

Posted in IT

FPGA

Posted on February 6, 2016 by margusja

Saabus mulle uus mänguasi

2016-02-06 11.04.11

Tegu on arendusplaadiga, kus puudub traditsiooniline arhitektuur, sisseehitatud instruktorid.

Arendajal on kasutada ainult AND, OR ja invert loogikalülitused, millest siis vajaminev funktsionaalsus VHDL keele abil realiseeritakse.

Kui võtta võrdluseks MCU, siis tegu on praktiliselt väikese arvutiga, kus on Harvard arhitektuur. Kasutajal on valida erinevad kõrgkeeled nagu C või realiseerida oma loogika assembler keeles. Samas sõltub kasutaja otseselt arhitektuurist ja kasutatava MCU instruktoritest

Posted in IT

Posts navigation

Older posts
Newer posts

The Master

Categories

  • Apache
  • Apple
  • Assembler
  • Audi
  • BigData
  • BMW
  • C
  • Elektroonika
  • Fun
  • Hadoop
  • help
  • Infotehnoloogia koolis
  • IOT
  • IT
  • IT eetilised
  • Java
  • Langevarjundus
  • Lapsed
  • lastekodu
  • Linux
  • M-401
  • Mac
  • Machine Learning
  • Matemaatika
  • Math
  • MSP430
  • Muusika
  • neo4j
  • openCL
  • Õpetaja identiteet ja tegevusvõimekus
  • oracle
  • PHP
  • PostgreSql
  • ProM
  • R
  • Turvalisus
  • Varia
  • Windows
Proudly powered by WordPress | Theme: micro, developed by DevriX.