URL
https://opencores.org/ocsvn/soc_maker/soc_maker/trunk
Show entire file |
Details |
Blame |
View Log
Rev 7 |
Rev 9 |
Line 58... |
Line 58... |
include ERR
|
include ERR
|
attr_accessor :path
|
attr_accessor :path
|
attr_accessor :file_dst
|
attr_accessor :file_dst
|
attr_accessor :parameters
|
attr_accessor :parameters
|
|
|
def initialize( path, file_dst, options = {} )
|
def initialize( path, file_dst, optional = {} )
|
init_with( { 'path' => path,
|
init_with( { 'path' => path,
|
'file_dst' => file_dst }.merge( options ) )
|
'file_dst' => file_dst }.merge( optional ) )
|
end
|
end
|
def encode_with( coder )
|
def encode_with( coder )
|
%w[ path file_dst parameters ].
|
%w[ path file_dst parameters ].
|
each { |v| coder[ v ] = instance_variable_get "@#{v}" }
|
each { |v| coder[ v ] = instance_variable_get "@#{v}" }
|
end
|
end
|
Line 124... |
Line 124... |
|
|
end
|
end
|
class SParameterEntry < Parameter
|
class SParameterEntry < Parameter
|
attr_accessor :token
|
attr_accessor :token
|
|
|
def initialize( type, token, options = {} )
|
def initialize( type, token, optional = {} )
|
init_with( { 'type' => type,
|
init_with( { 'type' => type,
|
'token' => token }.merge( options ) )
|
'token' => token }.merge( optional ) )
|
|
|
end
|
end
|
def encode_with( coder )
|
def encode_with( coder )
|
super coder
|
super coder
|
coder[ 'token' ] = @token
|
coder[ 'token' ] = @token
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.