diff --git a/scala-interface/pom.xml b/scala-interface/pom.xml index e772bf9..29c2b2e 100755 --- a/scala-interface/pom.xml +++ b/scala-interface/pom.xml @@ -1,9 +1,8 @@ - + 4.0.0 uni.hd.cag.rfg rfg-core - 1.5.0-SNAPSHOT + 1.5.1-SNAPSHOT @@ -17,9 +16,9 @@ - scm:git:git://gitlab@lebleu/cag-osys/rfg.git - scm:git:gitlab@lebleu:cag-osys/rfg.git - http://http://lebleu/gitlab/cag-osys/rfg + scm:git:git@github.com:unihd-cag/odfi-rfg.git + scm:git:git@github.com:unihd-cag/odfi-rfg.git + https://github.com/unihd-cag/odfi-rfg HEAD @@ -48,7 +47,7 @@ org.apache.maven.plugins maven-ooxoo-plugin - 3.1.1-SNAPSHOT + 3.1.1 com.idyria.osi.wsb @@ -220,15 +219,10 @@ aib-core 3.1.0 - - com.idyria.osi.tea - tea - 3.1.0 - com.idyria.osi.ooxoo ooxoo-core - 3.1.1-SNAPSHOT + 3.1.1 com.idyria.osi.wsb diff --git a/tcl/generator-verilog/Instances.tm b/tcl/generator-verilog/Instances.tm index 7e5acb9..f46738d 100755 --- a/tcl/generator-verilog/Instances.tm +++ b/tcl/generator-verilog/Instances.tm @@ -244,7 +244,7 @@ odfi::closures::oproc writeRamModule {ramBlock} { # write RF instance odfi::closures::oproc writeRFModule {registerfile} { odfi::common::println "" $resolve - odfi::common::println "[$registerfile name] [$registerfile name]_I (" $resolve + odfi::common::println "[lindex [split [file tail [$registerfile getAttributeValue rfg.osys::rfg::file]] "."] 0] [$registerfile name]_I (" $resolve odfi::common::println " .res_n(res_n)," $resolve odfi::common::println " .clk(clk)," $resolve odfi::common::println " .address([$registerfile name]_address)," $resolve diff --git a/tcl/generator-verilog/VerilogGenerator.tm b/tcl/generator-verilog/VerilogGenerator.tm index 20bb6f0..55e2d4c 100755 --- a/tcl/generator-verilog/VerilogGenerator.tm +++ b/tcl/generator-verilog/VerilogGenerator.tm @@ -41,11 +41,17 @@ namespace eval osys::rfg::generator::verilog { file mkdir $destinationPath set ::options $generator set registerfiles $registerFile + set file_list [$registerFile getAttributeValue rfg.osys::rfg::file] ## Read and parse Verilog Template $registerFile walkDepthFirst { if {[$it isa osys::rfg::RegisterFile]} { - lappend registerfiles $it + if {[lsearch $file_list [$it getAttributeValue rfg.osys::rfg::file]] == -1} { + lappend file_list [$it getAttributeValue rfg.osys::rfg::file] + lappend registerfiles $it + ::puts "This is the file name:" + ::puts [$it getAttributeValue rfg.osys::rfg::file] + } } return true } @@ -54,7 +60,8 @@ namespace eval osys::rfg::generator::verilog { ::puts "VerilogGenerator processing: $::rf > ${destinationPath}[$::rf name].v" namespace eval :: { catch {source ${::osys::rfg::generator::verilog::location}/registerfile_template.tcl} result - $result generate ${dP}[$rf name].v + set name [lindex [split [file tail [$rf getAttributeValue rfg.osys::rfg::file]] "."] 0] + $result generate ${dP}${name}.v } } diff --git a/tcl/generator-verilog/registerfile_template.tcl b/tcl/generator-verilog/registerfile_template.tcl index 8ba7570..61ac579 100644 --- a/tcl/generator-verilog/registerfile_template.tcl +++ b/tcl/generator-verilog/registerfile_template.tcl @@ -1216,7 +1216,7 @@ odfi::closures::oproc writeTriggerBlock {object} { } } -osys::verilogInterface::module [$rf name] { +osys::verilogInterface::module [lindex [split [file tail [$rf getAttributeValue rfg.osys::rfg::file]] "."] 0] { writeAddrComment $rf ## Write RegisterFile Signal Interface writeVModuleInterface $rf