Permalink
Browse files

Fix 'ArgumentError: "VpiHigh" is not a valid VPI property'

This is done by replacing .high! and .low! wigh .t! and .f! in generated
*_design.rb files.

This only affects generation of files using "ruby-vpi generate".
  • Loading branch information...
1 parent 72eef53 commit fd94a11a0bb27f7686d175a6e620810ec8c2e236 @dlitz dlitz committed Apr 17, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 bin/generate/design.rb
View
@@ -1,17 +1,17 @@
<% clock = aModuleInfo.clock_port.name rescue "YOUR_CLOCK_SIGNAL_HERE" %>
# Simulates the design under test for one clock cycle.
def DUT.cycle!
- <%= clock %>.high!
+ <%= clock %>.t!
advance_time
- <%= clock %>.low!
+ <%= clock %>.f!
advance_time
end
<% reset = aModuleInfo.reset_port.name rescue "YOUR_RESET_SIGNAL_HERE" %>
# Brings the design under test into a blank state.
def DUT.reset!
- <%= reset %>.high!
+ <%= reset %>.t!
cycle!
- <%= reset %>.low!
+ <%= reset %>.f!
end

0 comments on commit fd94a11

Please sign in to comment.