URL
https://opencores.org/ocsvn/soc_maker/soc_maker/trunk
Show entire file |
Details |
Blame |
View Log
Rev 6 |
Rev 10 |
Line 94... |
Line 94... |
|
|
#
|
#
|
# New
|
# New
|
#
|
#
|
NEW_USAGE =
|
NEW_USAGE =
|
" > new <> <> <> # opens a system-on-chip file
|
" > new <> <> <> # opens a system-on-chip file
|
- <> : the SOC name
|
- <> : the SOC name
|
- <> : the SOC version
|
- <> : the SOC id
|
- <> : the toplevel name
|
- <> : the toplevel name
|
"
|
"
|
def do_new( args )
|
def do_new( args )
|
if args.size != 3
|
if args.size != 3
|
puts "three arguments are required:\nusage:\n#{NEW_USAGE}"
|
puts "three arguments are required:\nusage:\n#{NEW_USAGE}"
|
Line 127... |
Line 127... |
puts "only one argument is required:\nusage:\n#{OPEN_USAGE}"
|
puts "only one argument is required:\nusage:\n#{OPEN_USAGE}"
|
else
|
else
|
puts "loading #{args[0]}"
|
puts "loading #{args[0]}"
|
@soc = SOCMaker::from_f( args[0] )
|
@soc = SOCMaker::from_f( args[0] )
|
SOCMaker::lib.add_core( @soc )
|
SOCMaker::lib.add_core( @soc )
|
@soc_inst = SOCMaker::CoreInst.new( "#{@soc.name}#{@soc.version}" )
|
@soc_inst = SOCMaker::CoreInst.new( "#{@soc.version.to_s}" )
|
#puts FMSG if @soc.load_soc( args[ 0 ] ) == nil
|
#puts FMSG if @soc.load_soc( args[ 0 ] ) == nil
|
end
|
end
|
end
|
end
|
|
|
|
|
Line 150... |
Line 150... |
|
|
#
|
#
|
# Add
|
# Add
|
#
|
#
|
ADD_USAGE =
|
ADD_USAGE =
|
" > add <> <> <>
|
" > add <> <>
|
# adds a ip-core from the library to the SOC
|
# adds an ip-core from the library to the SOC
|
- <> : name of the IP core
|
- <> : id of the IP core
|
- <> : version of the IP core
|
|
- <> : instanciation name
|
- <> : instanciation name
|
|
|
"
|
"
|
def do_add( args )
|
def do_add( args )
|
if args.size != 3
|
if args.size != 2
|
puts "three arguments are required:\nusage:\n#{ADD_USAGE}"
|
puts "two arguments are required:\nusage:\n#{ADD_USAGE}"
|
else
|
else
|
puts FMSG if @soc.add_core( args[ 0 ], args[ 1 ], args[ 2 ] ) == nil
|
puts FMSG if @soc.add_core( args[ 0 ], args[ 1 ] ) == nil
|
end
|
end
|
end
|
end
|
|
|
|
|
#
|
#
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.