Fixed ilang parser: memory width
authorClifford Wolf <clifford@clifford.at>
Wed, 20 Nov 2013 18:55:52 +0000 (19:55 +0100)
committerClifford Wolf <clifford@clifford.at>
Wed, 20 Nov 2013 18:55:52 +0000 (19:55 +0100)
frontends/ilang/parser.y

index 3d474d00559537d7e26dea98a420bbc390f1852c..b889a9989f2356d0f117b8a847bd16cfd5e3591e 100644 (file)
@@ -165,7 +165,7 @@ memory_stmt:
 
 memory_options:
        memory_options TOK_WIDTH TOK_INT {
-               current_wire->width = $3;
+               current_memory->width = $3;
        } |
        memory_options TOK_SIZE TOK_INT {
                current_memory->size = $3;