Sha256: b9a171db3965d6c26a69de51ade2b1f59f7b0d31ebc7a4488e41392417553e2a

Contents?: true

Size: 385 Bytes

Versions: 100

Compression:

Stored size: 385 Bytes

Contents

require 'HDLRuby'
configure_high

system :dadz do
	input :clk,:res
	signed[31..0].input :a
	signed[31..0].output :dadz
	signed[63..0].inner :tmp_dadz
	
	par(clk.posedge,res.posedge)do
		hif(res==_1)do
			tmp_dadz<=0
		end 
		helse do
			tmp_dadz<=(_00000001000000000000000000000000-a)*a
		end
	end
	dadz<=tmp_dadz[55..24]
end

dadz :dadzI
puts dadzI.to_low.to_yaml

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
HDLRuby-3.4.0 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-3.3.4 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-3.3.3 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-3.3.1 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-3.3.0 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-3.2.0 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-3.1.0 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-3.0.0 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-2.11.12 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-2.11.11 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-2.11.10 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-2.11.9 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-2.11.8 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-2.11.7 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-2.11.5 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-2.11.4 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-2.11.3 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-2.11.2 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-2.11.0 lib/HDLRuby/high_samples/bugs/dadz.rb
HDLRuby-2.10.5 lib/HDLRuby/high_samples/bugs/dadz.rb