mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-06-06 21:48:52 -04:00
Implement cs0 and cs1 as logic equations, not muxes
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
parent
0590445f3d
commit
e48c0fc7d9
1 changed files with 2 additions and 4 deletions
|
@ -125,14 +125,12 @@ module ram(
|
||||||
//----------------------------------------------------------------
|
//----------------------------------------------------------------
|
||||||
always @*
|
always @*
|
||||||
begin : mem_mux
|
begin : mem_mux
|
||||||
cs0 = 1'h0;
|
cs0 = ~address[14] & cs;
|
||||||
cs1 = 1'h0;
|
cs1 = address[14] & cs;
|
||||||
|
|
||||||
if (address[14]) begin
|
if (address[14]) begin
|
||||||
cs1 = cs;
|
|
||||||
muxed_read_data = read_data1;
|
muxed_read_data = read_data1;
|
||||||
end else begin
|
end else begin
|
||||||
cs0 = cs;
|
|
||||||
muxed_read_data = read_data0;
|
muxed_read_data = read_data0;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue