|
1 | 1 | /*
|
2 |
| - * Copyright (c) 1999-2010 Stephen Williams ([email protected]) |
| 2 | + * Copyright (c) 1999-2013 Stephen Williams ([email protected]) |
3 | 3 | *
|
4 | 4 | * This source code is free software; you can redistribute it
|
5 | 5 | * and/or modify it in source code form under the terms of the GNU
|
@@ -260,18 +260,16 @@ const char* PGBuiltin::gate_name() const
|
260 | 260 | }
|
261 | 261 |
|
262 | 262 | PGModule::PGModule(perm_string type, perm_string name, list<PExpr*>*pins)
|
263 |
| -: PGate(name, pins), bound_type_(0), overrides_(0), pins_(0), |
| 263 | +: PGate(name, pins), bound_type_(0), type_(type), overrides_(0), pins_(0), |
264 | 264 | npins_(0), parms_(0), nparms_(0), msb_(0), lsb_(0)
|
265 | 265 | {
|
266 |
| - type_ = type; |
267 | 266 | }
|
268 | 267 |
|
269 | 268 | PGModule::PGModule(perm_string type, perm_string name,
|
270 | 269 | named<PExpr*>*pins, unsigned npins)
|
271 |
| -: PGate(name, 0), bound_type_(0), overrides_(0), pins_(pins), |
| 270 | +: PGate(name, 0), bound_type_(0), type_(type), overrides_(0), pins_(pins), |
272 | 271 | npins_(npins), parms_(0), nparms_(0), msb_(0), lsb_(0)
|
273 | 272 | {
|
274 |
| - type_ = type; |
275 | 273 | }
|
276 | 274 |
|
277 | 275 | PGModule::PGModule(Module*type, perm_string name)
|
|
0 commit comments