VHDL Code Examples: Unit Control HLSM and Button Press FSM

Unit Control HLSM

library IEEE;

use IEEE.STD_LOGIC_1164.ALL;

use IEEE.NUMERIC_STD.ALL;

entity UnitControl_HLSM is

   port (clk, rst : in std_logic;

         c : in std_logic;

         A : in unsigned(7 downto 0);

         z : out std_logic);

end UnitControl_HLSM;

architecture Behavior of UnitControl_HLSM is

begin

   process(clk)

      type UC_statetype is (UC_Init, UC_GetInput, UC_UnitOn);

      variable UC_State : UC_statetype;   

      variable V : unsigned(7 downto 0);   

   begin

 

Read More

Architectural Groups: Design Philosophies and Approaches

Group 1: Sensory and Experiential Design

  • Zaha Hadid: “Sensory Explorers” – A group dedicated to creating immersive and unconventional architectural experiences, exploring the intersection of nature, emotion, and quality of life.
  • Herzog and de Meuron: “Nature-inspired Sensations” – A group focused on integrating artistic approaches and colors into architecture, creating unique sensory experiences that draw inspiration from nature and context.
  • SANAA: “Transparent Parks” – A group committed to creating
Read More

R Programming Fundamentals and Statistical Analysis

R Basics

Help and Function Documentation

?lm
help(lm)
help.start()

help.search("lm")
RSiteSearch("regression")
example(lm)

Installing Packages in R

install.packages('sos')

Loading Packages

library(sos)

z <- findFn({'Control Charts'})
z
findFn('Control Charts')

Visualization of Historical Commands

history()

Important Data Types

a <- c(1,2,3)
b <- c(4,6,8)
cbind(a,b)
rbind(a,b)

Mean Calculation (1)

omean <- function(v) {
m <- mean(v)
ifelse(is.na(m), 0, m)
}

Mean Calculation (2)

omean

Read More

VHDL Examples: Muxes, Decoders, Comparators

VHDL Code for a 2-to-1 Mux

LIBRARY ieee;
USE ieee.std_logic_1164.all;

ENTITY mux2to1 IS
    PORT (
        w0, w1, s : IN STD_LOGIC;
        f : OUT STD_LOGIC
    );
END mux2to1;

ARCHITECTURE Behavior OF mux2to1 IS
BEGIN
    WITH s SELECT
    f <= w0 WHEN '0',
         w1 WHEN OTHERS;
END Behavior;

VHDL Using Conditional Signal Assignments

LIBRARY ieee;
USE ieee.std_logic_1164.all;

ENTITY mux2to1 IS
    PORT (
        w0, w1, s : IN STD_LOGIC;
        f : OUT STD_LOGIC
    );
END mux2to1;
Read More

Accessibility and Safety for Disabled Workers: Workplace Ergonomics

Accessibility for Disabled People in the Workplace

Workplaces, including doors, passageways, toilets, and workstations, should be designed for easy access and safe operation for disabled employees.

Essential Services and Resting Areas

  1. Potable water must be readily available.
  2. Sufficient changing rooms should be provided.
  3. Adequate numbers of showers, toilets, and washbasins with hot and cold water should be available.
  4. Rest rooms with tables and seating should be provided.
  5. Pregnant women should have access
Read More

Digital Fluoroscopy and Computed Tomography

Gain Reduction and Digital Fluoroscopy

Gain Reduction: (Inlet Diameter)2 / (Output Diameter)2

Further Conversion Factor: Light Output Intensity / Current Input RX. A larger gain implies a smaller image with increased brightness.

Digital Fluoroscopy

Involves removal or subtraction techniques.

  • Interrogation Time (TI): The time required for the X-ray tube to be switched on and reach the selected level of kV and mA.
  • Extinction Time (TE): The time required for the X-ray tube to be switched off. Digital fluoroscopy
Read More