Removed unused argument to TriStateBufferConverter's constructor
[Mograsim.git] / plugins / net.mograsim.logic.model.verilog / src / net / mograsim / logic / model / verilog / model / signals / Wire.java
index b6d331c..7e0f2cc 100644 (file)
@@ -1,6 +1,6 @@
 package net.mograsim.logic.model.verilog.model.signals;
 
-public class Wire extends NamedSignal
+public class Wire extends Signal
 {
        public Wire(String name, int width)
        {
@@ -9,6 +9,6 @@ public class Wire extends NamedSignal
 
        public String toDeclarationVerilogCode()
        {
-               return "wire [" + getWidth() + ":0] " + getName() + ";";
+               return "wire [" + (getWidth() - 1) + ":0] " + getName() + ";";
        }
 }