This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package bd; | |
public class BlocoControle { | |
private int dimensaoMatrixMascara; | |
private int dimensaoVetorCodigo; | |
private int dimensaoImagemReferencia; | |
private byte[][] imagemProcessada; | |
BlocoControle() { | |
this.dimensaoMatrixMascara = 3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--n bit_vector comparador | |
--tabela | |
-- = igualdade | |
-- /= ~ igualdade | |
-- < menor que | |
-- <= menor ou igual | |
-- > maior | |
-- >= maior ou igual | |
-- not negado |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LIBRARY ieee; | |
USE ieee.std_logic_1164.all; | |
ENTITY arbitro IS | |
PORT | |
( | |
Clock, Reset: IN STD_LOGIC; | |
r: IN STD_LOGIC_VECTOR (1 TO 3); | |
c: OUT STD_LOGIC_VECTOR (1 TO 3) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function to_integer(sig : std_logic_vector) return integer is | |
variable num : integer := 0; -- descending sig as integer | |
begin | |
for i in sig'range loop | |
if sig(i)='1' then | |
num := num*2+1; | |
else | |
num := num*2; | |
end if; | |
end loop; -- i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.serial.*; | |
import cc.arduino.*; | |
Arduino arduino; | |
PShape pessoas[]; | |
int svg, x, y, startTime, duration, position, deslocation, zoom, ledPin = 13; | |
void setup() { | |
size (700, 500); | |
if (frame != null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper]{report} | |
\usepackage[utf8]{inputenc} | |
\usepackage[brazil]{babel} | |
\usepackage{amsfonts,amssymb,graphicx,enumerate} | |
\usepackage[centertags]{amsmath} | |
\usepackage[lmargin=3cm,rmargin=3cm,tmargin=3cm,bmargin=3cm]{geometry} | |
\usepackage{hyperref} | |
\usepackage{verbatim} | |
\hypersetup{urlcolor=red, colorlinks=true} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.serial.*; | |
import cc.arduino.*; | |
Arduino arduino; | |
color cor = color(30, 90, 80, 40); | |
color cor2 = color(40, 60, 25, 80); | |
void setup() { | |
size(470, 280); | |
arduino = new Arduino(this, Arduino.list()[0], 9600); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://www.libsdl.org/ install instructions tutorials | |
#include <SDL/SDL.h> | |
#include <SDL/SDL_thread.h> | |
#include <iostream> | |
#include <stdlib.h> | |
using namespace std; | |
bool quit = false, consumed = true; | |
int a = 0, b = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# do registrador_run_msim_gate_vhdl.do | |
# if {[file exists gate_work]} { | |
# vdel -lib gate_work -all | |
# } | |
# vlib gate_work | |
# vmap work gate_work | |
# Copying /home/oficinacriativa/altera/12.1/modelsim_ase/linuxaloem/../modelsim.ini to modelsim.ini | |
# Modifying modelsim.ini | |
# ** Warning: Copied /home/oficinacriativa/altera/12.1/modelsim_ase/linuxaloem/../modelsim.ini to modelsim.ini. | |
# Updated modelsim.ini. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static java.lang.Math.abs; | |
import static java.lang.System.out; | |
public class Sobel { | |
public static void main(String[] args) { | |
int nroLinhas = 10, nroColunas = 10; | |
int[][] iRef, g, gx, gy; | |
iRef = new int[nroLinhas][nroColunas]; |