

Create a test bench to check your function. Package, 60 min.) Write a function for an arithmetic package to subtract (s'EVENT and (To_X01(s) = '1') and (To_X01(s'LAST_VALUE) = '0')) end ġ0 min.) Determine the smallest real in your VHDL environment.ģ0 min.) How many ways are there to stop a VHDL simulator? function rising_edge ( signal s : STD_ULOGIC) return BOOLEAN is begin return In signal s that correspond to a rising edge. If (I = X"AA") then state state state state state state state 'X') ģ0 min) Explain the construction of the IEEE 1164 function to detect the Process variable v2 : INTEGER := 2 begin v2 := v1 wait end process ģ0 min.) Explain and correct the problems with the following: entity R_Bad_1 is port (i : in BIT o out BIT) end Īrchitecture Behave of R_Bad_1 is begin o Y, ZN => Z, A1 => X) ģ0 min.) Analyze and explain the errors in the following: entity And2 is port (A1, A2 : in BIT ZN : out BIT) end Īrchitecture Simple of And2 is begin ZN Data1Swap Data1Swap '0') Įlsif rising_edge(Clk) then case state is when s0 => Skeleton code: variable v1 : INTEGER := 1 process begin v1 := v1+3 wait end process a record declaration for an attribute declaration:Īttribute Location:Coordinate - an attribute declarationīetween processes, 30 min.) Explain and correct the problem with the following The record structure shown: entity Test_Record_1 is end architecture Behave of Test_Record_1 is begin process type Coordinate is record X, Y : INTEGER end record L8: if i+j r r r 100 ns) then wait end if end process ġ5 min.) Write an architecture (based on the following skeleton) that uses L6: for i in 1 to 3 generate L7: for j in 1 to 3 generate entity HW_1 is end architecture Behave of HW_1 is constant M : STRING := "hello, world" signal Ch : CHARACTER := ' ' īegin process begin for i in M'RANGE loop Ch 4 generate L5: C port map (A(i-1), B(j-1), A(i), B(j)) Įnd generate end generate end generate Comment on howĮasy or hard it was to follow the instructions to use the software and suggest Simulate your model (include the output in your answer).

In 'Text Only' mode (Frame or MS Word) on an IBM PC or Apple Macintosh. (use CTRL-D to end typing) on a UNIX machine. Quits) or use cat > hw_1.vhd and type in the code I inserts text, x deletes text, dd deletes Copy the code below to a fileĬalled hw_1.vhd in your VHDL directory (leave Will depend on your computer and simulator). , for example) to run your VHDL simulator (the exact details 10 min.) Set up a new, empty, directory (use mkdir VHDL
