summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/Padding.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/chiselTests/Padding.scala')
-rw-r--r--src/test/scala/chiselTests/Padding.scala11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/test/scala/chiselTests/Padding.scala b/src/test/scala/chiselTests/Padding.scala
index 3fb0f955..c7265c6c 100644
--- a/src/test/scala/chiselTests/Padding.scala
+++ b/src/test/scala/chiselTests/Padding.scala
@@ -3,13 +3,14 @@
package chiselTests
import chisel3._
+import chisel3.NotStrict.CompileOptions
class Padder extends Module {
- val io = new Bundle {
- val a = Bits(INPUT, 4)
- val asp = SInt(OUTPUT, 8)
- val aup = UInt(OUTPUT, 8)
- }
+ val io = IO(new Bundle {
+ val a = Input(UInt.width(4))
+ val asp = Output(SInt.width(8))
+ val aup = Output(UInt.width(8))
+ })
io.asp := io.a.asSInt
io.aup := io.a.asUInt
}