3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-12 04:03:45 +00:00

Merge pull request #688 from ZipCPU/rosenfell

Make rose and fell dependent upon LSB only
This commit is contained in:
Clifford Wolf 2018-11-04 10:04:48 +01:00 committed by GitHub
commit 18a4c1cdac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1874,10 +1874,16 @@ skip_dynamic_range_lvalue_expansion:;
newNode = new AstNode(AST_NE, past, present);
else if (str == "\\$rose")
newNode = new AstNode(AST_LOGIC_AND, new AstNode(AST_LOGIC_NOT, past), present);
newNode = new AstNode(AST_LOGIC_AND,
new AstNode(AST_LOGIC_NOT,
new AstNode(AST_BIT_AND, past, mkconst_int(1,false))),
new AstNode(AST_BIT_AND, present, mkconst_int(1,false)));
else if (str == "\\$fell")
newNode = new AstNode(AST_LOGIC_AND, past, new AstNode(AST_LOGIC_NOT, present));
newNode = new AstNode(AST_LOGIC_AND,
new AstNode(AST_BIT_AND, past, mkconst_int(1,false)),
new AstNode(AST_LOGIC_NOT,
new AstNode(AST_BIT_AND, present, mkconst_int(1,false))));
else
log_abort();