Skip to content

Commit

Permalink
fix wrong param type
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-ishitani committed Nov 25, 2024
1 parent b53a97d commit f0415c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rggen/veryl/register/type/external.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
build do
param :strobe_width, {
name: "#{register.name}_strobe_width".upcase,
type: :int, default: configuration.byte_width
type: :u32, default: configuration.byte_width
}
modport :bus_if, {
name: "#{register.name}_bus_if",
Expand Down
2 changes: 1 addition & 1 deletion spec/rggen/veryl/register/type/external_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def create_registers(&body)
expect(registers[0])
.to have_param(
:register_block, :strobe_width,
name: 'REGISTER_0_STROBE_WIDTH', type: :int, default: 4
name: 'REGISTER_0_STROBE_WIDTH', type: :u32, default: 4
)
end

Expand Down

0 comments on commit f0415c5

Please sign in to comment.