OpenCores
URL https://opencores.org/ocsvn/versatile_counter/versatile_counter/trunk

Subversion Repositories versatile_counter

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /versatile_counter
    from Rev 21 to Rev 22
    Reverse comparison

Rev 21 → Rev 22

/trunk/rtl/verilog/versatile_counter_generator.php
80,7 → 80,7
if ($inputs['rew']=="1") { echo " rew,"; }
 
if ($outputs['q']=="1") { echo " q,"; }
if ($outputs['q_bin']=="1") { echo "q_bin,"; }
if ($outputs['q_bin']=="1") { echo " q_bin,"; }
if ($outputs['z']=="1") { echo " z,"; }
if ($outputs['zq']=="1") { echo " zq,"; }
if ($outputs['level1']=="1") { echo " level1,"; }
116,7 → 116,7
 
echo PHP_EOL . " reg [length:1] qi;" . PHP_EOL;
if ($counter['type']=="LFSR") { echo " reg lfsr_fb";}
if ($counter['type']=="LFSR" and $inputs['rew']==1) { echo ", lfsr_fb_rew;" . PHP_EOL; } else { echo ";" . PHP_EOL; }
if ($counter['type']=="LFSR" and $inputs['rew']==1) { echo ", lfsr_fb_rew;" . PHP_EOL; } else { if ($counter['type']=="LFSR") echo ";" . PHP_EOL; }
if ($inputs['rew']==1) { echo " wire [length:1] q_next, q_next_fw, q_next_rew;" . PHP_EOL; }
else { echo " wire [length:1] q_next;" . PHP_EOL; }
if ($counter['type']=="LFSR" and $inputs['rew']==1) {

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.