+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Newbie level 4
    Points: 221, Level: 2

    Join Date
    Oct 2016
    Posts
    6
    Helped
    0 / 0
    Points
    221
    Level
    2

    8-bit multiplier without using packages in vhdl

    Hello every body

    I need VHDL code for 8-bit unsigned multiplier , but I am not allowed to use std_logic_unsigned/signed package . I am just allowed to use logical gates .it is urgent .Can any one help me ?

    Thanks

    •   Alt16th June 2017, 15:51

      advertising

        
       

  2. #2
    Super Moderator
    Points: 27,795, Level: 40
    ads-ee's Avatar
    Join Date
    Sep 2013
    Location
    USA
    Posts
    6,351
    Helped
    1538 / 1538
    Points
    27,795
    Level
    40

    Re: 8-bit multiplier without using packages in vhdl

    Quote Originally Posted by Majid_Vatan_Parast View Post
    Hello every body

    I need VHDL code for 8-bit unsigned multiplier , but I am not allowed to use std_logic_unsigned/signed package . I am just allowed to use logical gates .it is urgent .Can any one help me ?

    Thanks
    Why, is it because you want someone else to do your homework for you? Can't see any other reason someone would want to design a multiplier with logic gates instead of the traditional way with * or with a IP multiplier.

    Did you ever think that maybe the instructor wants to see if you know the material and not that you can get the answer from someone who does know the material?

    - - - Updated - - -

    It's obvious you haven't done even a basic search....
    "gate level unsigned multiplier" in google produces a plethora of results, with some actual circuits.



    •   Alt16th June 2017, 16:20

      advertising

        
       

  3. #3
    Newbie level 4
    Points: 221, Level: 2

    Join Date
    Oct 2016
    Posts
    6
    Helped
    0 / 0
    Points
    221
    Level
    2

    Re: 8-bit multiplier without using packages in vhdl

    Firstly , we are here to help others . If we do not help them , we can be silent , and leave no comment.

    Secondly , I know the traditional way of multiplying , it is just one line of code ; But as I mentioned I am not allowed ti use package.

    Thirdly , I know the material , I have implemented several operators without using package , and have done a lot of search . Every body prefers to choose easy way , and use '*' operator , like you.

    Fourthly , unsigned multiplying is a trivial part of a bigger project . I have 5 more projects , I have to work on them ,and do not have enough time .



    •   Alt16th June 2017, 18:17

      advertising

        
       

  4. #4
    Advanced Member level 5
    Points: 35,010, Level: 45
    Achievements:
    7 years registered

    Join Date
    Jun 2010
    Posts
    6,414
    Helped
    1868 / 1868
    Points
    35,010
    Level
    45

    Re: 8-bit multiplier without using packages in vhdl

    "*" is not just the easy way, but also the most compatible way. Building your own multiplier is unlikely to be the most efficient implementation (and unlikely to use the built in multipliers). Apart from learning basic logic design, it won't help you in the real world. The only time this ever gets done is as an exercise at university.

    So why don't you have time? Did you not start soon enough? There are plenty of examples out there. Wikipedia even has links to different multiplication methods

    https://en.m.wikipedia.org/wiki/Binary_multiplier



  5. #5
    Super Moderator
    Points: 27,795, Level: 40
    ads-ee's Avatar
    Join Date
    Sep 2013
    Location
    USA
    Posts
    6,351
    Helped
    1538 / 1538
    Points
    27,795
    Level
    40

    Re: 8-bit multiplier without using packages in vhdl

    Quote Originally Posted by Majid_Vatan_Parast
    Firstly , we are here to help others . If we do not help them , we can be silent , and leave no comment.
    I did help you by supplying a search string to find gate designs for a multiplier.

    Secondly
    do you think I missed that the first time? better reread my post.

    Thirdly , I know the material
    I am not entirely convinced you do, if you did you would have coded it yourself by now. It's not hard to write a gate level multiplier, just tedious. Have you tried using a synthesis tool like XST, Vivado, Quartus to build a gate level netlist of a multiplier using the standard "*" and disabling the inference of DSP blocks?

    Fourthly , unsigned multiplying is a trivial part of a bigger project . I have 5 more projects , I have to work on them ,and do not have enough time.
    Ditto what Trickyicky stated...Did you not start soon enough? Maybe your real problem is with your time management skills, out in the real world this is a regular occurrence. Too many projects and too little time to deliver...get used to it.



--[[ ]]--