Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 2 KB

assignment.md

File metadata and controls

63 lines (46 loc) · 2 KB

Lab 1: Jiri Jilek

De Morgan's laws

  1. Equations of all three versions of logic function f(c,b,a):

    Logic function Logic function

  2. Listing of VHDL architecture from design file (code/design.vhd) for all three functions.

    architecture dataflow of gates is
    begin
       f_org_o  <= (not(b_i) and a_i) or (not(c_i) and not(b_i));
       f_nand_o <= (not(b_i) nand (a_i)) nand (not(c_i) nand not(b_i)); -- Function modified acording to equation
       f_nor_o  <= not(((b_i) nor not(a_i)) nor ((c_i) nor (b_i)));  -- Function modified acording to equation
    end architecture dataflow;
    
  3. Table with logic functions' values:

    c b a f(c,b,a)_ORG f(c,b,a)_NAND f(c,b,a)_NOR
    0 0 0 1 1 1
    0 0 1 1 1 1
    0 1 0 0 0 0
    0 1 1 0 0 0
    1 0 0 0 0 0
    1 0 1 1 1 1
    1 1 0 0 0 0
    1 1 1 0 0 0
  4. Screenshot with simulated time waveforms.

    Waveform (click to open picture in new tab)

  5. Link to public EDA Playground example:

    EDA Playgroud project - basic gates

Distributive laws

  1. Equations

    Logic function Logic function

  2. Screenshot with simulated time waveforms.

    Waveform (click to open picture in new tab)

    architecture dataflow of gates is
    begin
          f_left_o  <= (x_i and y_i) or (x_i and z_i);
          f_right_o <= (x_i) and (y_i or z_i);
    end architecture dataflow;
  3. Link to public EDA Playground example:

    EDA Playgroud project - distributive laws