L12 Modeling Memory
L12 Modeling Memory
(EC6L033)
Verilog
Lecture 12: Modeling Memory
Learning Objectives
• Modeling of
https://timetoexplore.net
[30/08/2023, IIT BBS] | [Srinivas Boppu] | [SES] | [EC6L033]
$readmem(h|b)
Four 16-bit data values in hex:
https://timetoexplore.net
[30/08/2023, IIT BBS] | [Srinivas Boppu] | [SES] | [EC6L033]
$readmem(h|b)
Sixteen 8-bit data values in hex (mixing spaces and newlines):
https://timetoexplore.net
[30/08/2023, IIT BBS] | [Srinivas Boppu] | [SES] | [EC6L033]
$readmem(h|b)
Six 3-bit values in binary:
https://timetoexplore.net
[30/08/2023, IIT BBS] | [Srinivas Boppu] | [SES] | [EC6L033]
$readmem(h|b)
Six 16-bit values in hex starting at array position 4:
https://timetoexplore.net
[30/08/2023, IIT BBS] | [Srinivas Boppu] | [SES] | [EC6L033]
Read/Write Memory in Verilog
• In a simple read/write memory model, there is an output
port that provides data when reading (data_out) and an
input port that receives data when writing (data_in).