Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. berett

    Problem with simple(ish) counter

    OK The process in counter16simple looks fine, if to exclude the problem of single-use operation of tmpoverflow if tmpcount = &quot;1111111111111111&quot; then tmpoverflow <= '1'; end if; If it gets high it never goes down. Questionable from functional...
  2. berett

    Need help for Integer to std_logic_vector conversion.

    You know what? You are right. It shall work anyway and in my comnpiler/simulator (but this one is very often not compatible with those commonly recognised ones ;( ... it all gives the same, proper result. - convert_signed, convert_unsigned, convert_slv, convert(convert) ! (shame) Sorry for...
  3. berett

    Problem with simple(ish) counter

    Wow! Neee fooking chance ... it's just some magic in it there is a magic spell <elsif/if> clk'event and clk= '1' then which makes anything inside the &quot;if&quot; a register clocked with clk first you cannot change this spell (have you seen that action in &quot;Harry Potter&quot;?)...
  4. berett

    Trying to synthesise FSM

    The code would be much more helpful here. There are ca 2.5 different ways of writing the reasonable FSM. Your decision - probably someone here could improve the code, just for fun. Anyway according to &quot;...Is it strictly necessary to assign a value to every output in each possible...
  5. berett

    Need help for Integer to std_logic_vector conversion.

    Hi Your problem may be shown as an example for &quot;What do we need the f***ing integer for?&quot; strictly academic arguments. Why not to keep it all in std_logic_vector and selecting the packages std_logic_signed or std_logic_unsigned for signed/unsigned interpretation of the series of...
  6. berett

    how to design a fixed point multiplier??

    You can use / and * operators for signed/unsigned types (which are defined as the vectors of std_logic type bits) the use ieee.std_numeric.all; clause is needed then. Generally it is all synthesizable. But the algorithms implemented are not the &quot;bestest&quot; presumably. E.g. for...
  7. berett

    same frequency but different duty cycle

    So ... let me say ... now ... Now it is clear that the first VHDLguys reply is just t what you need I.e.: 1. You generate the 7 times faster clock using the PLL or other magic &quot;out of digital world&quot; device 2. You make a 0 to 6 counter with this fast clock 3. You implement a MUX for...
  8. berett

    Algorithm Describing and VHDL

    Yes it is. If your target is simulation only you just write it like in any computer language. E.g. you can write a procedure or function. If your target is hardware you must additionally obey several rules. For algorithms implementation the solution could be e.g. the finite state machine...
  9. berett

    Hi, I am trying to implement

    Hmmm we've got something like that here. But for the moment it represents some non-zero commercial value. And it is very nice. So I cannot provide it. I write this just in case your target is also something commercial ... we can always talk then ;))) However I can address some selected...
  10. berett

    Which is more efficient

    Well in these circumstances the second solution could be better. Surely it would make the synthesis job easier. But now a good synthesis tool would &quot;notice&quot; that there are two identical comparators and eventually remove one of them. Btw such problem could be considered as a test for...
  11. berett

    Help with Max +plus II, can't make library

    Hi More info needed what is there in the *.vhd, plus a few starting lines ? what is your tool /& operating system / ? is there anything reasonable written in the error message? rgds
  12. berett

    polyphase filter in vhdl

    I presume you need the floating point multiplier, available for synthesis. (For fixed point or for the REAL type you just write a*b, providing the appropriate library & package). Traditionally the floating point artihmetics modules were offered as IP soft cores for rather big cash. Since...
  13. berett

    Which is more efficient

    It will be exactly the same - comparator with the output connected to the &quot;enable&quot; pin of the latched flip-flop There is very little risk that the second solution would require additional inverter - if the flip-flop &quot;enable&quot; pin is active low. But then, if aGTEq16 was not...
  14. berett

    ERROR Use &quot;set -loop_iteration_limit XX&quot;

    Hi The soft just want you to enable more iterations of the loop because the code needs more than 64 etc. But the real problem seems the double clk'event statement in the same process which probably makes the synthesizer sick. BTW I can't imagine the appropriate hardware to do the code ... Why...
  15. berett

    vhdl code find error

    ... or just START the process STATUS with BEGIN fifoempty <='0'; fifofull <='0'; notempty <='0'; ... well according to the syntax errors - there are several statements with = instead of <= or := - several ; missing - the construction of the &quot;value&quot; register is...
  16. berett

    glitch

    Well for the moment there are two &quot;end if&quot; missing. Anyway I would suggest a little redesign. First removing frome the sensistivity list anything but clk and rst, these two are enough for the clocked process indeed. Then not mixing the reset with any other action. In this...
  17. berett

    coding help

    The code does not say too much ... BTW it is impossible to simly create 24 MHz from 16 MHz. In digital way - you need some much faster clock, use a counter etc. Otherwise you need something analogue. I don't see any &quot;faster&quot; clock here so I don't see any possibility to get the 24 MHz...
  18. berett

    Hi, Is it correct to have a sign

    The general response is yes - the sensitivity list must contain all the signals from the &quot;right side&quot; ,the conditions etc. (excluding the clocked processes where only the clock and optionally reset is required). Concerning the code presented - it is unusual. It is not common practice...
  19. berett

    Hi all. In part of my code, I ha

    The coding (1-st version) is OK generally. But this may be done by various kinds of hardware. This could be e.g. riddiculously long cascade of MUXes. Slow. And seems like this is the case here - you get time violations. Another solution is the single mux with more complicated logic. Faster...
  20. berett

    Transmission Gates ??

    If I uderstand it well .... you shall just write &quot;something stupid like ...&quot; process(clk,reset) begin if reset = '1' then q <= '0'; elsif clk'event and clk = '1' then q <= d; end if; end process; this is the behavioural description of the rising edge of clk...

Part and Inventory Search

Back
Top