Skip to content

Commit

Permalink
> generate verilog
Browse files Browse the repository at this point in the history
薛立伟
Linux tianyi-virtual-machine 6.5.0-15-generic OSCPU#15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
 22:18:38 up  1:43,  1 user,  load average: 1.08, 1.00, 0.86
  • Loading branch information
tracer-ysyx authored and wele0612 committed Jan 30, 2024
1 parent 8ba3dd2 commit b9948fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion npc/playground/src/Top_Module.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ import chisel3._
*/
class NVboard_IOs extends Bundle{
val ledr=Output(Vec(16,Bool()))

def loadDefault():Unit={
ledr:=0.U.asTypeOf(io.ledr)
}
}
class Top_Module extends Module {
val io=IO(new NVboard_IOs)

io.ledr:=0.U.asTypeOf(io.ledr)
io.loadDefault()

io.ledr(0):=true.B
io.ledr(1):=false.B
Expand Down

0 comments on commit b9948fd

Please sign in to comment.