Changeset 2894 for proto/Compiler


Ignore:
Timestamp:
Feb 3, 2013, 3:21:53 PM (6 years ago)
Author:
cameron
Message:

Fix final block lookahead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/lookAhead.py

    r2892 r2894  
    6262    else:
    6363        peek_amount = 1
    64     if self.block_mode == "final":
    65       return ast.Call(ast.Name('bitblock::srli<%i>' %  peek_amount, ast.Load()), callnode.args, [], None, None)
    6664    module_name = callnode.args[0].value
    6765    strm = callnode.args[0].attr
     
    7068    b0 = ast.Attribute(module_name, strm, ast.Load())
    7169    b1 = ast.Attribute(ast.Name(module_name.id + "_ahead", ast.Load()), strm, ast.Load())
     70    if self.block_mode == "final":
     71      b1 = ast.Call(ast.Name('simd<1>::constant<0>', ast.Load()), [], [], None, None)
    7272    return ast.Call(ast.Name('pablo_blk_Lookahead_n_<%i>' %  peek_amount, ast.Load()), [b0, b1], [], None, None)
    7373
Note: See TracChangeset for help on using the changeset viewer.