Method: VerilogTools.system_to_HDLRuby
- Defined in:
- lib/HDLRuby/verilog_hruby.rb
.system_to_HDLRuby(name, args) ⇒ Object
Converts a Verilog HDL system task to a HDLRuby one.
121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/HDLRuby/verilog_hruby.rb', line 121 def self.system_to_HDLRuby(name,args) case name when "$signed" return "(#{args}).as(signed[(#{args}).type.width])" when "$display" return "hprint(#{args})" when "$finish" return "terminate" else raise "Internal error: unsupported system task #{name} yet." end end |