Jump to content

Verilog text reader

Go to solution Solved by 79wjd,

anyone? 

 

/bump :unsure:

 

Nvm figured it out 

I have to write code that takes a three bit input and determines if it is the correct input. 

 

The purpose is to look for the letter L. So, if the input is: (each column is one input)

[0][1][0][0]

[0][1][0][0]

[0][1][1][0]

then it outputs an L, if it's not then it will go back to the next appropriate step. 

  • Garbage step: nothing matches the required pattern and you must start from scratch -- must have an all 0 input before you can move to the next step. 
  • Step A: Have three 0-bit inputs: [0][0][0] (in a column).
  • Step B: Have three 0-bit inputs followed by three 1-bit inputs.
  • Step C: Have three 0-bit inputs followed by three 1-bit inputs followed by two 0s and and a 1. 
  • Step D: Have three 0-bit inputs followed by three 1-bit inputs followed by two 0s and and a 1 followed by three 0's. 

For example if I have: 

[0][1]

[0][1]

[0][1]

and the next input is

[0]

[0]

[0]

then it will go back to step A. 

Once Step D is reached it will output an L/True. 

 

Code I have: http://pastie.org/private/ufdfasgdjdvginc5cocqq

Output: (the very last L=0 should be L=1)

aio22th.png

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
https://linustechtips.com/topic/308645-verilog-text-reader/
Share on other sites

Link to post
Share on other sites

anyone? 

 

/bump :unsure:

 

Nvm figured it out 

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
https://linustechtips.com/topic/308645-verilog-text-reader/#findComment-4195243
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×