lib/HDLRuby/hdr_samples/with_channel.rb in HDLRuby-2.1.2 vs lib/HDLRuby/hdr_samples/with_channel.rb in HDLRuby-2.1.5

- old
+ new

@@ -18,21 +18,19 @@ # Sets the writer input ports. writer_input :write_valid, :write_ready # Sets the writer output ports. writer_output :buf, :read_valid, :read_ready - # Defines the reset command for the channel. - command(:reset) do - par do - # Fully locked reader side. - read_valid <= 0 - read_ready <= 0 - # Fully unlocked writer side. - write_valid <= 1 - write_ready <= 1 - end - end + # # Defines the reset command for the channel. + # command(:reset) do + # # Fully locked reader side. + # read_valid <= 0 + # read_ready <= 0 + # # Fully unlocked writer side. + # write_valid <= 1 + # write_ready <= 1 + # end # Defines the reader's access procedure. reader do |blk,target| hif(read_valid) do write_valid <= 0 @@ -104,11 +102,11 @@ input :clk,:rst # Declares the handshaker handshaker([8]).(:hs) - # Sets the reset. - hs.reset.at(rst.posedge) + # # Sets the reset. + # par(rst.posedge) { hs.reset } # Instantiate the producer. producer8(hs).(:producerI).(clk,rst) # Instantiate the consummer.