OpenCores
URL https://opencores.org/ocsvn/soc_maker/soc_maker/trunk

Subversion Repositories soc_maker

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /soc_maker/trunk/spec
    from Rev 8 to Rev 9
    Reverse comparison

Rev 8 → Rev 9

/lib_spec.rb
149,7 → 149,7
core_A.class.should be SOCMaker::CoreDef
core_B.class.should be SOCMaker::CoreDef
core_AB_ifc.class.should be SOCMaker::IfcSpc
core_A.static_parameters.size.should be == 2
core_A.static_parameters.size.should be == 3
end
 
end
/soc_def_spec.rb
177,9 → 177,11
@soc.add_core( "mycore", "rel1", "core_inst" ).should_not be == false
end
 
it "should return nil if a connection is added twice" do
# in one of the first version, we returned nil, but now this is
# used to extend a interface
it "should not return nil if a connection is added twice" do
@soc.cons[ :a_con ] = { rule: "or", mapping: [ { :core_a => :ifc_a }, { :core_b => :ifc_b } ] }
@soc.add_connection( "core_a", "ifc_a", "core_c", "ifc_b", "a_con" ).should be == nil
@soc.add_connection( "core_a", "ifc_a", "core_c", "ifc_b", "a_con" ).should_not be == nil
end
 
it "should raise a library error when adding an unknown core" do
192,7 → 194,7
SOCMaker::conf[ :hdl_dir ] = "hdl"
path = File.expand_path "./spec/tmp_build/hdl/a_core"
FileUtils.rmdir( path ) if File.directory?( path )
res = @soc.get_and_ensure_dst_dir!( "a_core" )
res = SOCMaker::Component::get_and_ensure_dst_dir!( "a_core" )
File.directory?( path ).should be == true
res.should be == path
end
/component_spec.rb
219,6 → 219,7
r_name = []
r_dir = []
 
p c.interfaces
c.ports( "i1" ) do |arg_name,arg_dir, arg_default, arg_is_last|
#r_def << arg_def
r_name << arg_name
237,10 → 238,10
 
 
it "should throw an error if an incomplete interface is used" do
file = { "file.vhd".to_sym => SOCMaker::HDLFile.new( "./file.vhd" ) }
 
# three (auto) mandatory ports
ifc_s1 = SOCMaker::IfcSpc.new( "i1", "v1", 'ports' => { p1: { dir: 1}, p2: {dir: 1}, p3: {dir:0} } )
SOCMaker::lib.add_ifc( ifc_s1 )
 
# interface implementaiton with only two of the three ports
p1 = SOCMaker::IfcPort.new( "p1", 1 )

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.