Try to use 'kB' instead of 'KB' with lower case 'k'. As well use mem-size
unit with 'B', I mean, 'MB'.

Sounds like weird, but it is convetion things.

Em sexta-feira, 21 de novembro de 2014, Sahar Pilevar via gem5-users <
gem5-users@gem5.org> escreveu:

> Hi all,
> after I compile gem5 by this command:
> scons PROTOCOL=MESI_CMP_directory build/ALPHA/gem5.opt
> I wanted to build it by:build/ALPHA/gem5.opt configs/example/ruby_fs.py -n
> 4 --ruby --cpu-clock=1GHz --caches --l1i_size=16KB --l1i_assoc=2
> --l1d_size=16KB --l1d_assoc=2 --l2cache --l2_size=512KB --l2_assoc=8
> --mem-type=lpddr2_s4_1066_x32 --mem-size=512M
> but I found ruby_fs.py is removed.
> then i decided to build it by:
> build/ALPHA/gem5.opt configs/example/fs.py -n 4 --ruby --cpu-clock=1GHz
> --caches --l1i_size=16KB --l1i_assoc=2 --l1d_size=16KB --l1d_assoc=2
> --l2cache --l2_size=512KB --l2_assoc=8 --mem-type=lpddr2_s4_1066_x32
> --mem-size=512M
>
> but I face this error:
> Error: could not create sytem for ruby protocol MOESI_CMP_directory
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/home/sahar/gem5/src/python/m5/main.py", line 388, in main
>     exec filecode in scope
>   File "configs/example/fs.py", line 297, in <module>
>     test_sys = build_test_system(np)
>   File "configs/example/fs.py", line 139, in build_test_system
>     test_sys._dma_ports)
>   File "/home/sahar/gem5/configs/ruby/Ruby.py", line 191, in create_system
>     % protocol)
>   File "<string>", line 1, in <module>
>   File "/home/sahar/gem5/configs/ruby/MOESI_CMP_directory.py", line 83, in
> create_system
>     is_icache = True)
>   File "/home/sahar/gem5/src/python/m5/SimObject.py", line 1044, in
> __init__
>     setattr(self, key, val)
>   File "/home/sahar/gem5/src/python/m5/SimObject.py", line 1122, in
> __setattr__
>     value = param.convert(value)
>   File "/home/sahar/gem5/src/python/m5/params.py", line 212, in convert
>     return self.ptype(value)
>   File "/home/sahar/gem5/src/python/m5/params.py", line 677, in __init__
>     self.value = convert.toMemorySize(value)
>   File "/home/sahar/gem5/src/python/m5/util/convert.py", line 250, in
> toMemorySize
>     return long(value[:-1])
> ValueError: invalid literal for long() with base 10: '16K'
> Error setting param L1Cache.size to 16KB
>
> Can anybody help me out with this ?
> thanks,
> Sahar
>
>


-- 

--
Atenciosamente,
Matheus Alcântara Souza
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to