Your site can now have its own contact form, on your own domain, with every message sent straight to your inbox.
- Joined
Plus, more news for your Tuesday.
Our first ever print edition is live and kicking around Glasgow
$[border.style=solid,width=1,radius=6 $[border.color=0000,width=12 @jcm@wafrn.jcm.re asked:
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity my_code is
generic(
WIDTH : integer := 640;
HEIGHT : integer := 480;
CONSOLE_COLUMNS : integer := WIDTH / 8;
CONSOLE_ROWS : integer := HEIGHT / 8
);
port(
clk : in std_logic;
rst : in std_logic;
px : in integer range 0 to WIDTH - 1;
py : in integer range 0 to HEIGHT - 1;
hsync : in std_logic;
vsync : in std_logic;
col : in integer range 0 to CONSOLE_COLUMNS - 1;
row : in integer range 0 to CONSOLE_ROWS - 1;
char : out integer range 0 to 127 := 0;
foreground_color : out std_logic_vector(23 downto 0) := (others => '0');
background_color : out std_logic_vector(23 downto 0) := (others => '1');
uart_data : out std_logic_vector(7 downto 0) := (others => '0');
uart_ready : in std_logic;
uart_valid : out std_logic := '0'
);
end my_code;
architecture rtl of my_code is
constant IMAGE_WIDTH : integer := 117;
constant IMAGE_HEIGHT : integer := 52;
type image_type is array (0 to IMAGE_HEIGHT-1) of std_logic_vector(0 to IMAGE_WIDTH-1);
constant image : image_type := (
"000000000111111111111111111111111111111111111111111111000000000000000000011111111111111111111111111111111100000000000",
"000000000111111111111111111111111111111111111111111111000000000000000000111111111111111111111111111111111111100000000",
"000000000111111111111111111111111111111111111111111111000000000000000001111111111111111111111111111111111111111000000",
"000000000111111111111111111111111111111111111111111111100000000000000011111111111111111111111111111111111111111110000",
"000000001111111111111111111111111111111111111111111111100000000000000011111111111111111111111111111111111111111111000",
"000000001111111111111111111111111111111111111111111111100000000000000111111111111111111111111111111111111111111111100",
"000000001111111111111111111111111111111111111111111111110000000000001111111111111111111111111111111111111111111111110",
"000000001111111111110000000111111111111111111111111111110000000000011111111111111111111111110000000111111111111111111",
"000000011111111111110000000000111111111111111111111111110000000000011111111111111111111111110000000000111111111111111",
"000000011111111111110000000000011111111111111111111111111000000000111111111111111111111111110000000000011111111111111",
"000000011111111111100000000000001111111111111111111111111000000001111111111111011111111111100000000000001111111111111",
"000000011111111111100000000000000111111111111011111111111000000011111111111110011111111111100000000000000111111111111",
"000000111111111111100000000000000111111111111011111111111100000111111111111100111111111111100000000000000111111111111",
"000000111111111111100000000000000111111111111011111111111100000111111111111000111111111111100000000000000111111111111",
"000000111111111111000000000000001111111111111001111111111100001111111111110000111111111111100000000000001111111111111",
"000000111111111111000000000000001111111111111001111111111110011111111111110000111111111111000000000000001111111111111",
"000001111111111111000000000000001111111111110001111111111110111111111111100000111111111111000000000000001111111111111",
"000001111111111111000000000000011111111111110000111111111110111111111111000001111111111111000000000000011111111111110",
"000001111111111111000000000000111111111111110000111111111111111111111110000001111111111111000000000000111111111111110",
"000001111111111110000000000001111111111111100000111111111111111111111100000001111111111110000000000001111111111111100",
"000001111111111110000000000111111111111111000000011111111111111111111000000001111111111110000000000111111111111111000",
"000011111111111110000000111111111111111110000000011111111111111111110000000011111111111110000000111111111111111110000",
"000011111111111111111111111111111111111100000000011111111111111111100000000011111111111111111111111111111111111100000",
"000011111111111111111111111111111111111000000000001111111111111111100000000011111111111111111111111111111111111000000",
"000011111111111111111111111111111111110000000000001111111111111111000000000011111111111111111111111111111111110000000",
"000111111111111111111111111111111111000000000000000111111111111110000000000111111111111111111111111111111111000000000",
"000111111111111111111111111111111100000000000000000111111111111100000000000111111111111111111111111111111100000000000",
"000111111111111111111111111111100000000000000000000111111111111000000000000111111111111111111111111111100000000000000",
"000111111111111111111111111100000000000000000000000011111111110000000000000111111111111111111111111100000000000000000",
"000111111111111111111100000000000000000000000000000011111111100000000000000111111111111111111100000000000000000000000",
"000000000000000000000000000000000000000000000000000011111111100000000000000000000000000000000000000000000000000000000",
"000000000000000000000000000000000000000000000000000001111111000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000000000000000000000000000000001111110000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000000000000000000000000000000001111100000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000000000000000000000000000000000111000000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000000001111111111111111111111111111111111111111111111111111000000000000000000000000000000000000",
"000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000",
"000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000",
"000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000",
"000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000",
"011111111111111111111110011111001111111001111111000000011111111100000011111111100000001111111111111111111111100000000",
"111111111111111111111110011111001111111001111111001111001111111100111111111111001111100111111111111111111111110000000",
"111111111111111111111111001110011111111001111111001111100111111100111111111110011111110011111111111111111111111000000",
"111111111111111111111111101100111111111001111111001111100111111100000011111110011111110011111111111111111111111000000",
"111111111111111111111111100101111111111001111111001111100111111100111111111110011111110011111111111111111111110000000",
"011111111111111111111111110001111111111001111111001111001111111100111111111111001111100111111111111111111111100000000",
"000011111111111111111111111011111111111001111111000000011111111100000011111111100000001111111111111111111110000000000",
"000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000",
"000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000",
"000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000",
"000000000000000000000000000001111111111111111111111111111111111111111111111111111100000000000000000000000000000000000"
);
constant SPEED : integer := 8;
signal position_x : integer range -SPEED to WIDTH + SPEED := 0;
signal position_y : integer range -SPEED to HEIGHT + SPEED := 0;
signal random_bit : std_logic := '0';
signal color : std_logic_vector(23 downto 0) := x"FFFFFF";
signal trans_color : std_logic_vector(23 downto 0) := x"FFFFFF";
component OSCG is
generic (
DIV : integer := 128
);
port (
OSC : out std_logic
);
end component;
type rgb_key_array_t is array (0 to 4) of std_logic_vector(23 downto 0);
constant rgb_key_array : rgb_key_array_t := (x"5bcffa", x"f5abb9", x"ffffff", x"f5abb9", x"5bcffa");
begin
char <= 0;
background_color <= trans_color when image((py - position_y)/2)((px - position_x)/2) = '1' and
px >= position_x and px < position_x + IMAGE_WIDTH2 and
py >= position_y and py < position_y + IMAGE_HEIGHT2
else (not trans_color);
trans_color <= rgb_key_array((py / (HEIGHT / 5)) mod 5);
foreground_color <= (others => '1');
rng : OSCG port map (
OSC => random_bit
);
process(clk)
variable old_vsync : std_logic := '0';
variable speed_x : integer range -SPEED to SPEED := SPEED;
variable speed_y : integer range -SPEED to SPEED := SPEED;
begin
if rising_edge(clk) then
if vsync = '0' and old_vsync = '1' then
if position_x + speed_x + IMAGE_WIDTH2 >= WIDTH then
speed_x := -SPEED;
position_x <= WIDTH - IMAGE_WIDTH2 - 1;
color <= color(22 downto 0) & random_bit;
elsif position_x + speed_x < 0 then
speed_x := SPEED;
position_x <= 0;
color <= color(22 downto 0) & random_bit;
else
position_x <= position_x + speed_x;
end if;
if position_y + speed_y + IMAGE_HEIGHT2 >= HEIGHT then
speed_y := -SPEED;
position_y <= HEIGHT - IMAGE_HEIGHT2 - 1;
color <= color(22 downto 0) & random_bit;
elsif position_y + speed_y < 0 then
speed_y := SPEED;
position_y <= 0;
color <= color(22 downto 0) & random_bit;
else
position_y <= position_y + speed_y;
end if;
end if;
old_vsync := vsync;
end if;
end process;
end architecture;]]
Success!
UART Output
UtilizationCellUsedAvailableUsageDCCA2563.6%EHXPLLL1250.0%MULT18X18D1283.6%TRELLIS_COMB1253242885.2%TRELLIS_FF152242880.6%TRELLIS_IO111975.6%
TimingClockAchievedConstraint$glbnet$clkp36.02 MHz25 MHz$glbnet$clkt361.01 MHz250 MHz
Code
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity my_code is
generic(
WIDTH : integer := 640;
HEIGHT : integer := 480;
CONSOLE_COLUMNS : integer := WIDTH / 8;
CONSOLE_ROWS : integer := HEIGHT / 8
);
port(
clk : in std_logic;
rst : in std_logic;
px : in integer range 0 to WIDTH - 1;
py : in integer range 0 to HEIGHT - 1;
hsync : in std_logic;
vsync : in std_logic;
col : in integer range 0 to CONSOLE_COLUMNS - 1;
row : in integer range 0 to CONSOLE_ROWS - 1;
char : out integer range 0 to 127 := 0;
foreground_color : out std_logic_vector(23 downto 0) := (others => '0');
background_color : out std_logic_vector(23 downto 0) := (others => '1');
uart_data : out std_logic_vector(7 downto 0) := (others => '0');
uart_ready : in std_logic;
uart_valid : out std_logic := '0'
);
end my_code;
architecture rtl of my_code is
constant IMAGE_WIDTH : integer := 117;
constant IMAGE_HEIGHT : integer := 52;
type image_type is array (0 to IMAGE_HEIGHT-1) of std_logic_vector(0 to IMAGE_WIDTH-1);
constant image : image_type := (
"000000000111111111111111111111111111111111111111111111000000000000000000011111111111111111111111111111111100000000000",
"000000000111111111111111111111111111111111111111111111000000000000000000111111111111111111111111111111111111100000000",
"000000000111111111111111111111111111111111111111111111000000000000000001111111111111111111111111111111111111111000000",
"000000000111111111111111111111111111111111111111111111100000000000000011111111111111111111111111111111111111111110000",
"000000001111111111111111111111111111111111111111111111100000000000000011111111111111111111111111111111111111111111000",
"000000001111111111111111111111111111111111111111111111100000000000000111111111111111111111111111111111111111111111100",
"000000001111111111111111111111111111111111111111111111110000000000001111111111111111111111111111111111111111111111110",
"000000001111111111110000000111111111111111111111111111110000000000011111111111111111111111110000000111111111111111111",
"000000011111111111110000000000111111111111111111111111110000000000011111111111111111111111110000000000111111111111111",
"000000011111111111110000000000011111111111111111111111111000000000111111111111111111111111110000000000011111111111111",
"000000011111111111100000000000001111111111111111111111111000000001111111111111011111111111100000000000001111111111111",
"000000011111111111100000000000000111111111111011111111111000000011111111111110011111111111100000000000000111111111111",
"000000111111111111100000000000000111111111111011111111111100000111111111111100111111111111100000000000000111111111111",
"000000111111111111100000000000000111111111111011111111111100000111111111111000111111111111100000000000000111111111111",
"000000111111111111000000000000001111111111111001111111111100001111111111110000111111111111100000000000001111111111111",
"000000111111111111000000000000001111111111111001111111111110011111111111110000111111111111000000000000001111111111111",
"000001111111111111000000000000001111111111110001111111111110111111111111100000111111111111000000000000001111111111111",
"000001111111111111000000000000011111111111110000111111111110111111111111000001111111111111000000000000011111111111110",
"000001111111111111000000000000111111111111110000111111111111111111111110000001111111111111000000000000111111111111110",
"000001111111111110000000000001111111111111100000111111111111111111111100000001111111111110000000000001111111111111100",
"000001111111111110000000000111111111111111000000011111111111111111111000000001111111111110000000000111111111111111000",
"000011111111111110000000111111111111111110000000011111111111111111110000000011111111111110000000111111111111111110000",
"000011111111111111111111111111111111111100000000011111111111111111100000000011111111111111111111111111111111111100000",
"000011111111111111111111111111111111111000000000001111111111111111100000000011111111111111111111111111111111111000000",
"000011111111111111111111111111111111110000000000001111111111111111000000000011111111111111111111111111111111110000000",
"000111111111111111111111111111111111000000000000000111111111111110000000000111111111111111111111111111111111000000000",
"000111111111111111111111111111111100000000000000000111111111111100000000000111111111111111111111111111111100000000000",
"000111111111111111111111111111100000000000000000000111111111111000000000000111111111111111111111111111100000000000000",
"000111111111111111111111111100000000000000000000000011111111110000000000000111111111111111111111111100000000000000000",
"000111111111111111111100000000000000000000000000000011111111100000000000000111111111111111111100000000000000000000000",
"000000000000000000000000000000000000000000000000000011111111100000000000000000000000000000000000000000000000000000000",
"000000000000000000000000000000000000000000000000000001111111000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000000000000000000000000000000001111110000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000000000000000000000000000000001111100000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000000000000000000000000000000000111000000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000000001111111111111111111111111111111111111111111111111111000000000000000000000000000000000000",
"000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000000000",
"000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000",
"000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000",
"000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000",
"011111111111111111111110011111001111111001111111000000011111111100000011111111100000001111111111111111111111100000000",
"111111111111111111111110011111001111111001111111001111001111111100111111111111001111100111111111111111111111110000000",
"111111111111111111111111001110011111111001111111001111100111111100111111111110011111110011111111111111111111111000000",
"111111111111111111111111101100111111111001111111001111100111111100000011111110011111110011111111111111111111111000000",
"111111111111111111111111100101111111111001111111001111100111111100111111111110011111110011111111111111111111110000000",
"011111111111111111111111110001111111111001111111001111001111111100111111111111001111100111111111111111111111100000000",
"000011111111111111111111111011111111111001111111000000011111111100000011111111100000001111111111111111111110000000000",
"000000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000",
"000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000",
"000000000000000000011111111111111111111111111111111111111111111111111111111111111111111111110000000000000000000000000",
"000000000000000000000000000001111111111111111111111111111111111111111111111111111100000000000000000000000000000000000"
);
constant SPEED : integer := 8;
signal position_x : integer range -SPEED to WIDTH + SPEED := 0;
signal position_y : integer range -SPEED to HEIGHT + SPEED := 0;
signal random_bit : std_logic := '0';
signal color : std_logic_vector(23 downto 0) := x"FFFFFF";
signal trans_color : std_logic_vector(23 downto 0) := x"FFFFFF";
component OSCG is
generic (
DIV : integer := 128
);
port (
OSC : out std_logic
);
end component;
type rgb_key_array_t is array (0 to 4) of std_logic_vector(23 downto 0);
constant rgb_key_array : rgb_key_array_t := (x"5bcffa", x"f5abb9", x"ffffff", x"f5abb9", x"5bcffa");
begin
char <= 0;
background_color <= trans_color when image((py - position_y)/2)((px - position_x)/2) = '1' and
px >= position_x and px < position_x + IMAGE_WIDTH*2 and
py >= position_y and py < position_y + IMAGE_HEIGHT*2
else (not trans_color);
trans_color <= rgb_key_array((py / (HEIGHT / 5)) mod 5);
foreground_color <= (others => '1');
rng : OSCG port map (
OSC => random_bit
);
process(clk)
variable old_vsync : std_logic := '0';
variable speed_x : integer range -SPEED to SPEED := SPEED;
variable speed_y : integer range -SPEED to SPEED := SPEED;
begin
if rising_edge(clk) then
if vsync = '0' and old_vsync = '1' then
if position_x + speed_x + IMAGE_WIDTH*2 >= WIDTH then
speed_x := -SPEED;
position_x <= WIDTH - IMAGE_WIDTH*2 - 1;
color <= color(22 downto 0) & random_bit;
elsif position_x + speed_x < 0 then
speed_x := SPEED;
position_x <= 0;
color <= color(22 downto 0) & random_bit;
else
position_x <= position_x + speed_x;
end if;
if position_y + speed_y + IMAGE_HEIGHT*2 >= HEIGHT then
speed_y := -SPEED;
position_y <= HEIGHT - IMAGE_HEIGHT*2 - 1;
color <= color(22 downto 0) & random_bit;
elsif position_y + speed_y < 0 then
speed_y := SPEED;
position_y <= 0;
color <= color(22 downto 0) & random_bit;
else
position_y <= position_y + speed_y;
end if;
end if;
old_vsync := vsync;
end if;
end process;
end architecture;
#FPGA # Icepi Zero #HDL #VHDL
Of Bonsai and ongoing projects related to the Setouchi Triennale.
Favole del reincanto
Molteplicità, immaginario, rivoluzione
Fantasmi, sciamani e oracoli: un atlante per uscire dal disincanto.
Sogni, ninfe, demoni, fantasmi, miti, conversazioni con animali e montagne, insegnamenti impartiti da piante, efficacia simbolica: l’incanto è scomparso dalle nostre vite. Chi si azzarda a menzionarlo viola i più basilari canoni epistemologici che reggono il nostro mondo ed è subito squalificato come ignorante o folle. Suscita sospetto, però, che il tabù dell’incanto entri in azione proprio quando il processo storico della modernità comincia a produrre spettri e incubi su scala industriale: il mondo si popola di fantasmi e nessuno ne può più parlare. Perfino il pensiero rivoluzionario si è conformato a questo precetto, abbandonando l’immaginario alla violenza del fascismo: un errore storico enorme, perché ha comportato la smobilitazione di intelligenza e sensibilità dal terreno più cruciale per qualsiasi forma di cambiamento. Unendo archeologia della modernità, antropologia e yearning, questo libro analizza il nesso che lega disincanto e totalitarismo; osserva gli effetti rovinosi che esso ha prodotto sulla vita di umani e non umani; e tratteggia un modo altro di pensare la rivoluzione, la molteplicità e il rapporto con l’immaginario, il preindividuale e l’invisibile. Un libro di antropologia, ecologia e filosofia, scritto come una fiaba. Un libro per tornare a meravigliarsi e scrollarsi di dosso la paura, nell’anno della paura globale.
Private prison company CoreCivic confirmed that someone in its custody died on Oct. 24 in one of the housing units.
Written by Kate Morrissey, Edited by Lauren J. Mapp
Author's note: This is a breaking news story and may be updated as more information becomes available.
A person in the custody of Immigration and Customs Enforcement died Saturday at Otay Mesa Detention Center.
Private prison company CoreCivic, which operates the detention facility, confirmed the death via email to D
I hear this provocative idea a lot.
Could a second Dan Sullivan upend the Senate race?
Le Paradoxe de Fermi est un sujet très discuté et débattu depuis des décennies. Mais est-il vraiment un paradoxe ?
After years of delays, appeals, denials, and litigation, the City’s most secretive agency may finally be forced to cough up a tranche of public documents.
This year, solar will represent 10% of power generation. Abundant, clean energy is great news - but there's more work to do to make sure every community benefits.
Nolita residents and nearby small business owners are at the end of their rope with the Dante-affiliated coffee shop's crowd.
Could a second Dan Sullivan upend the Senate race?
At a Hochul campaign stop, the youth ask, "Who's Hochul?" And more news to start your week.
For Israel’s generals, peace is merely a bargaining chip – an outlook that will outlast whoever wins next week’s election
The introduction where we explain our blog’s purpose in detail is on our “About Us” page. Instead, here we simply talk about the reason for our nicknames – Elettrona and Gifter.
Posted in: #fediblog, #introduction, #personal
[...]
La presentazione dove spieghiamo in dettaglio cosa è questo sito web, sta nella pagina “Cosa Facciamo”. Qui ci limitiamo invece ad approfondire il motivo dei nostri soprannomi – Elettrona e Gifter.
Pubblicato in: #fediblog, #introduzione, #personale
[...]
The root of all evil. We don't want to leave any wiggle room about where we stand, but we do intend to explain why we want nothing to do with this increasingly fashionable phenomenon: performative activism, as easy to pull off as it is harmful. Our fictional stories can wait a little longer; this plague of our times deserves a post of its own.
Posted in: #fediblog, #internet
[...]
@alexisbushnell submitted my complaint