in Quartus how can i calculate 2(4bit) number addition process

Discussion in 'Embedded Systems and Microcontrollers' started by ValarVictorius, Dec 6, 2015.

  1. ValarVictorius

    Thread Starter New Member

    Nov 17, 2015
    11
    0
    How can i addition 2 (4 bit) number in altera quartus program with only one mux(multiplexor) and write the result to led's or 7segment screen ?
     
    Last edited: Dec 6, 2015
  2. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    Schematic or VHDL. Which do you prefer?
     
    ValarVictorius likes this.
  3. ValarVictorius

    Thread Starter New Member

    Nov 17, 2015
    11
    0
    i prefer VHDL, but i don't say no to both solution ;)
     
  4. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    What are the inputs and outputs of the multiplexer?
     
  5. ValarVictorius

    Thread Starter New Member

    Nov 17, 2015
    11
    0
    It doesn't matter for me. Make what are you want it ;)
     
  6. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    In Quartus you have two methods of design input. HDL (Hardware Description Language) or schematic entry. When you use schematic entry you usually have access to a library of modules. One of the modules in a library is likely to be a multiplexer of some description. I need to know what kind of multiplexers you have available. What's so hard about that?
     
    ValarVictorius likes this.
  7. ValarVictorius

    Thread Starter New Member

    Nov 17, 2015
    11
    0
    I watched tutorial videos, write some hdl codes. But i don't run my code anywhere.
    Debasedly Ex:
    module part1(SW,LEDR);
    input[9:0] SW;
    output [9:0] LEDR;
    assign LEDR=SW;
    endmodule

    How can i see how my code working ?
     
  8. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    It looks like you are trying to write VHDL. To see your code working you need a functional simulator, or you need to do the syntheses step and load the code into an actual device.
     
Loading...